LP#1831781: add eg-help-popover Angular component
[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 import {EgHelpPopoverComponent} from '@eg/share/eg-help-popover/eg-help-popover.component';
25
26 /**
27  * Imports the EG common modules and adds modules common to all staff UI's.
28  */
29
30 @NgModule({
31   declarations: [
32     StaffBannerComponent,
33     ComboboxComponent,
34     ComboboxEntryComponent,
35     OrgSelectComponent,
36     AccessKeyDirective,
37     AccessKeyInfoComponent,
38     ToastComponent,
39     StringComponent,
40     TitleComponent,
41     OpChangeComponent,
42     FmRecordEditorComponent,
43     DateSelectComponent,
44     BucketDialogComponent,
45     BibSummaryComponent,
46     TranslateComponent,
47     AdminPageComponent,
48     EgHelpPopoverComponent
49   ],
50   imports: [
51     EgCommonModule,
52     GridModule
53   ],
54   exports: [
55     EgCommonModule,
56     GridModule,
57     StaffBannerComponent,
58     ComboboxComponent,
59     ComboboxEntryComponent,
60     OrgSelectComponent,
61     AccessKeyDirective,
62     AccessKeyInfoComponent,
63     ToastComponent,
64     StringComponent,
65     TitleComponent,
66     OpChangeComponent,
67     FmRecordEditorComponent,
68     DateSelectComponent,
69     BucketDialogComponent,
70     BibSummaryComponent,
71     TranslateComponent,
72     AdminPageComponent,
73     EgHelpPopoverComponent
74   ]
75 })
76
77 export class StaffCommonModule {
78     static forRoot(): ModuleWithProviders {
79         return {
80             ngModule: StaffCommonModule,
81             providers: [ // Export staff-wide services
82                 AccessKeyService,
83                 AudioService,
84                 StringService,
85                 ToastService
86             ]
87         };
88     }
89 }
90