2022-03-11 10:53:32 -08:00
|
|
|
import { BrowserModule } from '@angular/platform-browser'
|
|
|
|
|
import { NgModule } from '@angular/core'
|
|
|
|
|
import { AppRoutingModule } from './app-routing.module'
|
|
|
|
|
import { AppComponent } from './app.component'
|
|
|
|
|
import {
|
|
|
|
|
NgbDateAdapter,
|
|
|
|
|
NgbDateParserFormatter,
|
|
|
|
|
NgbModule,
|
|
|
|
|
} from '@ng-bootstrap/ng-bootstrap'
|
|
|
|
|
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'
|
|
|
|
|
import { DocumentListComponent } from './components/document-list/document-list.component'
|
|
|
|
|
import { DocumentDetailComponent } from './components/document-detail/document-detail.component'
|
|
|
|
|
import { DashboardComponent } from './components/dashboard/dashboard.component'
|
|
|
|
|
import { TagListComponent } from './components/manage/tag-list/tag-list.component'
|
|
|
|
|
import { DocumentTypeListComponent } from './components/manage/document-type-list/document-type-list.component'
|
2022-03-22 22:01:46 -07:00
|
|
|
import { CorrespondentListComponent } from './components/manage/correspondent-list/correspondent-list.component'
|
2022-03-11 10:53:32 -08:00
|
|
|
import { LogsComponent } from './components/manage/logs/logs.component'
|
|
|
|
|
import { SettingsComponent } from './components/manage/settings/settings.component'
|
|
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
|
|
|
|
import { DatePipe, registerLocaleData } from '@angular/common'
|
|
|
|
|
import { NotFoundComponent } from './components/not-found/not-found.component'
|
|
|
|
|
import { ConfirmDialogComponent } from './components/common/confirm-dialog/confirm-dialog.component'
|
2022-03-22 22:01:46 -07:00
|
|
|
import { CorrespondentEditDialogComponent } from './components/common/edit-dialog/correspondent-edit-dialog/correspondent-edit-dialog.component'
|
|
|
|
|
import { TagEditDialogComponent } from './components/common/edit-dialog/tag-edit-dialog/tag-edit-dialog.component'
|
|
|
|
|
import { DocumentTypeEditDialogComponent } from './components/common/edit-dialog/document-type-edit-dialog/document-type-edit-dialog.component'
|
2022-03-11 10:53:32 -08:00
|
|
|
import { TagComponent } from './components/common/tag/tag.component'
|
|
|
|
|
import { PageHeaderComponent } from './components/common/page-header/page-header.component'
|
|
|
|
|
import { AppFrameComponent } from './components/app-frame/app-frame.component'
|
|
|
|
|
import { ToastsComponent } from './components/common/toasts/toasts.component'
|
|
|
|
|
import { FilterEditorComponent } from './components/document-list/filter-editor/filter-editor.component'
|
|
|
|
|
import { FilterableDropdownComponent } from './components/common/filterable-dropdown/filterable-dropdown.component'
|
|
|
|
|
import { ToggleableDropdownButtonComponent } from './components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component'
|
|
|
|
|
import { DateDropdownComponent } from './components/common/date-dropdown/date-dropdown.component'
|
|
|
|
|
import { DocumentCardLargeComponent } from './components/document-list/document-card-large/document-card-large.component'
|
|
|
|
|
import { DocumentCardSmallComponent } from './components/document-list/document-card-small/document-card-small.component'
|
|
|
|
|
import { BulkEditorComponent } from './components/document-list/bulk-editor/bulk-editor.component'
|
|
|
|
|
import { NgxFileDropModule } from 'ngx-file-drop'
|
|
|
|
|
import { TextComponent } from './components/common/input/text/text.component'
|
|
|
|
|
import { SelectComponent } from './components/common/input/select/select.component'
|
|
|
|
|
import { CheckComponent } from './components/common/input/check/check.component'
|
|
|
|
|
import { SaveViewConfigDialogComponent } from './components/document-list/save-view-config-dialog/save-view-config-dialog.component'
|
|
|
|
|
import { TagsComponent } from './components/common/input/tags/tags.component'
|
|
|
|
|
import { SortableDirective } from './directives/sortable.directive'
|
|
|
|
|
import { CookieService } from 'ngx-cookie-service'
|
|
|
|
|
import { CsrfInterceptor } from './interceptors/csrf.interceptor'
|
|
|
|
|
import { SavedViewWidgetComponent } from './components/dashboard/widgets/saved-view-widget/saved-view-widget.component'
|
|
|
|
|
import { StatisticsWidgetComponent } from './components/dashboard/widgets/statistics-widget/statistics-widget.component'
|
|
|
|
|
import { UploadFileWidgetComponent } from './components/dashboard/widgets/upload-file-widget/upload-file-widget.component'
|
|
|
|
|
import { WidgetFrameComponent } from './components/dashboard/widgets/widget-frame/widget-frame.component'
|
|
|
|
|
import { PdfViewerModule } from 'ng2-pdf-viewer'
|
|
|
|
|
import { WelcomeWidgetComponent } from './components/dashboard/widgets/welcome-widget/welcome-widget.component'
|
|
|
|
|
import { YesNoPipe } from './pipes/yes-no.pipe'
|
|
|
|
|
import { FileSizePipe } from './pipes/file-size.pipe'
|
|
|
|
|
import { FilterPipe } from './pipes/filter.pipe'
|
|
|
|
|
import { DocumentTitlePipe } from './pipes/document-title.pipe'
|
|
|
|
|
import { MetadataCollapseComponent } from './components/document-detail/metadata-collapse/metadata-collapse.component'
|
|
|
|
|
import { SelectDialogComponent } from './components/common/select-dialog/select-dialog.component'
|
|
|
|
|
import { NgSelectModule } from '@ng-select/ng-select'
|
|
|
|
|
import { NumberComponent } from './components/common/input/number/number.component'
|
2022-03-22 22:01:46 -07:00
|
|
|
import { SafeUrlPipe } from './pipes/safeurl.pipe'
|
|
|
|
|
import { SafeHtmlPipe } from './pipes/safehtml.pipe'
|
2022-03-11 10:53:32 -08:00
|
|
|
import { CustomDatePipe } from './pipes/custom-date.pipe'
|
|
|
|
|
import { DateComponent } from './components/common/input/date/date.component'
|
|
|
|
|
import { ISODateTimeAdapter } from './utils/ngb-iso-date-time-adapter'
|
|
|
|
|
import { LocalizedDateParserFormatter } from './utils/ngb-date-parser-formatter'
|
|
|
|
|
import { ApiVersionInterceptor } from './interceptors/api-version.interceptor'
|
|
|
|
|
import { ColorSliderModule } from 'ngx-color/slider'
|
|
|
|
|
import { ColorComponent } from './components/common/input/color/color.component'
|
|
|
|
|
import { DocumentAsnComponent } from './components/document-asn/document-asn.component'
|
2021-02-28 12:40:25 +01:00
|
|
|
|
2022-03-31 19:42:08 -07:00
|
|
|
import localeBe from '@angular/common/locales/be'
|
2022-03-11 10:53:32 -08:00
|
|
|
import localeCs from '@angular/common/locales/cs'
|
|
|
|
|
import localeDa from '@angular/common/locales/da'
|
|
|
|
|
import localeDe from '@angular/common/locales/de'
|
|
|
|
|
import localeEnGb from '@angular/common/locales/en-GB'
|
|
|
|
|
import localeEs from '@angular/common/locales/es'
|
|
|
|
|
import localeFr from '@angular/common/locales/fr'
|
|
|
|
|
import localeIt from '@angular/common/locales/it'
|
|
|
|
|
import localeLb from '@angular/common/locales/lb'
|
|
|
|
|
import localeNl from '@angular/common/locales/nl'
|
|
|
|
|
import localePl from '@angular/common/locales/pl'
|
|
|
|
|
import localePt from '@angular/common/locales/pt'
|
|
|
|
|
import localeRo from '@angular/common/locales/ro'
|
|
|
|
|
import localeRu from '@angular/common/locales/ru'
|
2022-03-13 09:13:25 -07:00
|
|
|
import localeSl from '@angular/common/locales/sl'
|
2022-03-22 22:26:59 -07:00
|
|
|
import localeSr from '@angular/common/locales/sr'
|
2022-03-13 09:13:25 -07:00
|
|
|
import localeSv from '@angular/common/locales/sv'
|
2022-03-26 13:52:15 -07:00
|
|
|
import localeTr from '@angular/common/locales/tr'
|
2022-03-10 10:00:20 -08:00
|
|
|
import localeZh from '@angular/common/locales/zh'
|
2021-01-17 00:15:45 +01:00
|
|
|
|
2022-03-31 19:42:08 -07:00
|
|
|
registerLocaleData(localeBe)
|
2022-02-19 23:26:21 -08:00
|
|
|
registerLocaleData(localeCs)
|
|
|
|
|
registerLocaleData(localeDa)
|
|
|
|
|
registerLocaleData(localeDe)
|
|
|
|
|
registerLocaleData(localeEnGb)
|
|
|
|
|
registerLocaleData(localeEs)
|
2021-01-17 00:15:45 +01:00
|
|
|
registerLocaleData(localeFr)
|
2022-02-19 23:26:21 -08:00
|
|
|
registerLocaleData(localeIt)
|
|
|
|
|
registerLocaleData(localeLb)
|
2021-01-17 00:15:45 +01:00
|
|
|
registerLocaleData(localeNl)
|
2022-02-19 23:26:21 -08:00
|
|
|
registerLocaleData(localePl)
|
2022-03-11 10:53:32 -08:00
|
|
|
registerLocaleData(localePt, 'pt-BR')
|
|
|
|
|
registerLocaleData(localePt, 'pt-PT')
|
2021-02-28 12:40:25 +01:00
|
|
|
registerLocaleData(localeRo)
|
2021-03-07 10:07:42 +01:00
|
|
|
registerLocaleData(localeRu)
|
2022-03-13 09:13:25 -07:00
|
|
|
registerLocaleData(localeSl)
|
2022-03-22 22:26:59 -07:00
|
|
|
registerLocaleData(localeSr)
|
2021-05-04 17:01:39 +02:00
|
|
|
registerLocaleData(localeSv)
|
2022-03-26 13:52:15 -07:00
|
|
|
registerLocaleData(localeTr)
|
2022-03-10 10:00:20 -08:00
|
|
|
registerLocaleData(localeZh)
|
2020-10-27 01:10:18 +01:00
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
declarations: [
|
|
|
|
|
AppComponent,
|
|
|
|
|
DocumentListComponent,
|
|
|
|
|
DocumentDetailComponent,
|
|
|
|
|
DashboardComponent,
|
|
|
|
|
TagListComponent,
|
|
|
|
|
DocumentTypeListComponent,
|
2022-03-22 22:01:46 -07:00
|
|
|
CorrespondentListComponent,
|
2020-10-27 01:10:18 +01:00
|
|
|
LogsComponent,
|
|
|
|
|
SettingsComponent,
|
|
|
|
|
NotFoundComponent,
|
|
|
|
|
CorrespondentEditDialogComponent,
|
2020-12-13 14:28:37 +01:00
|
|
|
ConfirmDialogComponent,
|
2020-10-27 01:10:18 +01:00
|
|
|
TagEditDialogComponent,
|
|
|
|
|
DocumentTypeEditDialogComponent,
|
|
|
|
|
TagComponent,
|
|
|
|
|
PageHeaderComponent,
|
|
|
|
|
AppFrameComponent,
|
|
|
|
|
ToastsComponent,
|
|
|
|
|
FilterEditorComponent,
|
2020-12-18 16:03:52 -08:00
|
|
|
FilterableDropdownComponent,
|
2020-12-19 22:31:14 -08:00
|
|
|
ToggleableDropdownButtonComponent,
|
2020-12-18 16:03:52 -08:00
|
|
|
DateDropdownComponent,
|
2020-10-27 01:10:18 +01:00
|
|
|
DocumentCardLargeComponent,
|
2020-10-28 18:02:30 +01:00
|
|
|
DocumentCardSmallComponent,
|
2020-12-14 23:14:19 -08:00
|
|
|
BulkEditorComponent,
|
2020-10-28 18:02:30 +01:00
|
|
|
TextComponent,
|
|
|
|
|
SelectComponent,
|
2020-10-30 22:46:43 +01:00
|
|
|
CheckComponent,
|
2020-11-04 13:10:23 +01:00
|
|
|
SaveViewConfigDialogComponent,
|
2020-11-08 16:58:06 +01:00
|
|
|
TagsComponent,
|
2020-11-22 22:35:39 +01:00
|
|
|
SortableDirective,
|
|
|
|
|
SavedViewWidgetComponent,
|
|
|
|
|
StatisticsWidgetComponent,
|
|
|
|
|
UploadFileWidgetComponent,
|
2020-12-06 01:25:12 +01:00
|
|
|
WidgetFrameComponent,
|
2020-12-07 23:42:18 +01:00
|
|
|
WelcomeWidgetComponent,
|
2020-12-08 16:09:47 +01:00
|
|
|
YesNoPipe,
|
2020-12-11 14:30:59 +01:00
|
|
|
FileSizePipe,
|
2020-12-13 11:29:12 -08:00
|
|
|
FilterPipe,
|
2020-12-11 20:14:48 +01:00
|
|
|
DocumentTitlePipe,
|
2020-12-13 15:13:43 +01:00
|
|
|
MetadataCollapseComponent,
|
2021-01-03 13:09:16 +01:00
|
|
|
SelectDialogComponent,
|
2021-01-14 13:35:21 +01:00
|
|
|
NumberComponent,
|
2022-03-22 22:01:46 -07:00
|
|
|
SafeUrlPipe,
|
|
|
|
|
SafeHtmlPipe,
|
2021-02-24 18:00:26 +01:00
|
|
|
CustomDatePipe,
|
2021-02-25 11:32:22 +01:00
|
|
|
DateComponent,
|
2021-03-30 19:07:29 +02:00
|
|
|
ColorComponent,
|
2022-03-11 10:53:32 -08:00
|
|
|
DocumentAsnComponent,
|
2020-10-27 01:10:18 +01:00
|
|
|
],
|
|
|
|
|
imports: [
|
|
|
|
|
BrowserModule,
|
|
|
|
|
AppRoutingModule,
|
|
|
|
|
NgbModule,
|
|
|
|
|
HttpClientModule,
|
|
|
|
|
FormsModule,
|
2020-10-27 17:35:10 +01:00
|
|
|
ReactiveFormsModule,
|
2020-11-02 01:26:21 +01:00
|
|
|
NgxFileDropModule,
|
2021-03-10 22:38:33 +01:00
|
|
|
PdfViewerModule,
|
2021-02-25 11:32:22 +01:00
|
|
|
NgSelectModule,
|
2022-03-11 10:53:32 -08:00
|
|
|
ColorSliderModule,
|
2020-10-27 01:10:18 +01:00
|
|
|
],
|
|
|
|
|
providers: [
|
2020-11-11 20:19:57 +01:00
|
|
|
DatePipe,
|
2022-03-11 10:53:32 -08:00
|
|
|
CookieService,
|
|
|
|
|
{
|
2020-11-11 20:19:57 +01:00
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
|
useClass: CsrfInterceptor,
|
2022-03-11 10:53:32 -08:00
|
|
|
multi: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
2021-02-24 22:27:43 +01:00
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
|
useClass: ApiVersionInterceptor,
|
2022-03-11 10:53:32 -08:00
|
|
|
multi: true,
|
2020-12-11 01:40:42 -08:00
|
|
|
},
|
2020-12-18 14:55:21 -08:00
|
|
|
FilterPipe,
|
2021-02-24 18:00:26 +01:00
|
|
|
DocumentTitlePipe,
|
2022-03-11 10:53:32 -08:00
|
|
|
{ provide: NgbDateAdapter, useClass: ISODateTimeAdapter },
|
|
|
|
|
{ provide: NgbDateParserFormatter, useClass: LocalizedDateParserFormatter },
|
2020-10-27 01:10:18 +01:00
|
|
|
],
|
2022-03-11 10:53:32 -08:00
|
|
|
bootstrap: [AppComponent],
|
2020-10-27 01:10:18 +01:00
|
|
|
})
|
2022-03-11 10:53:32 -08:00
|
|
|
export class AppModule {}
|