LP1821382 Add Items to Bucket menu action
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / common.module.ts
1 import {NgModule, ModuleWithProviders} from '@angular/core';
2 import {EgCommonModule} from '@eg/common.module';
3 import {AudioService} from '@eg/share/util/audio.service';
4 import {GridModule} from '@eg/share/grid/grid.module';
5 import {StaffBannerComponent} from './share/staff-banner.component';
6 import {ComboboxComponent} from '@eg/share/combobox/combobox.component';
7 import {ComboboxEntryComponent} from '@eg/share/combobox/combobox-entry.component';
8 import {OrgSelectComponent} from '@eg/share/org-select/org-select.component';
9 import {AccessKeyDirective} from '@eg/share/accesskey/accesskey.directive';
10 import {AccessKeyService} from '@eg/share/accesskey/accesskey.service';
11 import {AccessKeyInfoComponent} from '@eg/share/accesskey/accesskey-info.component';
12 import {OpChangeComponent} from '@eg/staff/share/op-change/op-change.component';
13 import {ToastService} from '@eg/share/toast/toast.service';
14 import {ToastComponent} from '@eg/share/toast/toast.component';
15 import {StringComponent} from '@eg/share/string/string.component';
16 import {StringService} from '@eg/share/string/string.service';
17 import {TitleComponent} from '@eg/share/title/title.component';
18 import {FmRecordEditorComponent} from '@eg/share/fm-editor/fm-editor.component';
19 import {DateSelectComponent} from '@eg/share/date-select/date-select.component';
20 import {BucketDialogComponent} from '@eg/staff/share/buckets/bucket-dialog.component';
21 import {BibSummaryComponent} from '@eg/staff/share/bib-summary/bib-summary.component';
22 import {TranslateComponent} from '@eg/staff/share/translate/translate.component';
23 import {AdminPageComponent} from '@eg/staff/share/admin-page/admin-page.component';
24
25 /**
26  * Imports the EG common modules and adds modules common to all staff UI's.
27  */
28
29 @NgModule({
30   declarations: [
31     StaffBannerComponent,
32     ComboboxComponent,
33     ComboboxEntryComponent,
34     OrgSelectComponent,
35     AccessKeyDirective,
36     AccessKeyInfoComponent,
37     ToastComponent,
38     StringComponent,
39     TitleComponent,
40     OpChangeComponent,
41     FmRecordEditorComponent,
42     DateSelectComponent,
43     BucketDialogComponent,
44     BibSummaryComponent,
45     TranslateComponent,
46     AdminPageComponent
47   ],
48   imports: [
49     EgCommonModule,
50     GridModule
51   ],
52   exports: [
53     EgCommonModule,
54     GridModule,
55     StaffBannerComponent,
56     ComboboxComponent,
57     ComboboxEntryComponent,
58     OrgSelectComponent,
59     AccessKeyDirective,
60     AccessKeyInfoComponent,
61     ToastComponent,
62     StringComponent,
63     TitleComponent,
64     OpChangeComponent,
65     FmRecordEditorComponent,
66     DateSelectComponent,
67     BucketDialogComponent,
68     BibSummaryComponent,
69     TranslateComponent,
70     AdminPageComponent
71   ]
72 })
73
74 export class StaffCommonModule {
75     static forRoot(): ModuleWithProviders {
76         return {
77             ngModule: StaffCommonModule,
78             providers: [ // Export staff-wide services
79                 AccessKeyService,
80                 AudioService,
81                 StringService,
82                 ToastService
83             ]
84         };
85     }
86 }
87