LP1869898 Holdings responds to broadcasted changes
[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 {CommonWidgetsModule} from '@eg/share/common-widgets.module';
4 import {AudioService} from '@eg/share/util/audio.service';
5 import {GridModule} from '@eg/share/grid/grid.module';
6 import {CatalogCommonModule} from '@eg/share/catalog/catalog-common.module';
7 import {StaffBannerComponent} from './share/staff-banner.component';
8 import {AccessKeyDirective} from '@eg/share/accesskey/accesskey.directive';
9 import {AccessKeyService} from '@eg/share/accesskey/accesskey.service';
10 import {AccessKeyInfoComponent} from '@eg/share/accesskey/accesskey-info.component';
11 import {OpChangeComponent} from '@eg/staff/share/op-change/op-change.component';
12 import {TitleComponent} from '@eg/share/title/title.component';
13 import {BucketDialogComponent} from '@eg/staff/share/buckets/bucket-dialog.component';
14 import {BibSummaryComponent} from '@eg/staff/share/bib-summary/bib-summary.component';
15 import {EgHelpPopoverComponent} from '@eg/share/eg-help-popover/eg-help-popover.component';
16 import {DatetimeValidatorDirective} from '@eg/share/validators/datetime_validator.directive';
17 import {MultiSelectComponent} from '@eg/share/multi-select/multi-select.component';
18 import {NotBeforeMomentValidatorDirective} from '@eg/share/validators/not_before_moment_validator.directive';
19 import {PatronBarcodeValidatorDirective} from '@eg/share/validators/patron_barcode_validator.directive';
20 import {BroadcastService} from '@eg/share/util/broadcast.service';
21
22 /**
23  * Imports the EG common modules and adds modules common to all staff UI's.
24  */
25
26 @NgModule({
27   declarations: [
28     StaffBannerComponent,
29     AccessKeyDirective,
30     AccessKeyInfoComponent,
31     TitleComponent,
32     OpChangeComponent,
33     BucketDialogComponent,
34     BibSummaryComponent,
35     EgHelpPopoverComponent,
36     DatetimeValidatorDirective,
37     MultiSelectComponent,
38     NotBeforeMomentValidatorDirective,
39     PatronBarcodeValidatorDirective,
40   ],
41   imports: [
42     EgCommonModule,
43     CommonWidgetsModule,
44     GridModule,
45     CatalogCommonModule
46   ],
47   exports: [
48     EgCommonModule,
49     CommonWidgetsModule,
50     GridModule,
51     CatalogCommonModule,
52     StaffBannerComponent,
53     AccessKeyDirective,
54     AccessKeyInfoComponent,
55     TitleComponent,
56     OpChangeComponent,
57     BucketDialogComponent,
58     BibSummaryComponent,
59     EgHelpPopoverComponent,
60     DatetimeValidatorDirective,
61     MultiSelectComponent,
62     NotBeforeMomentValidatorDirective,
63     PatronBarcodeValidatorDirective
64   ]
65 })
66
67 export class StaffCommonModule {
68     static forRoot(): ModuleWithProviders<StaffCommonModule> {
69         return {
70             ngModule: StaffCommonModule,
71             providers: [ // Export staff-wide services
72                 AccessKeyService,
73                 AudioService,
74                 BroadcastService
75             ]
76         };
77     }
78 }
79