LP#1852321: (follow-up) modernize loadChildren invocation
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / local / routing.module.ts
1 import {NgModule} from '@angular/core';
2 import {RouterModule, Routes} from '@angular/router';
3 import {AdminLocalSplashComponent} from './admin-local-splash.component';
4 import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component';
5 import {AddressAlertComponent} from './address-alert.component';
6 import {AdminCarouselComponent} from './admin-carousel.component';
7 import {StandingPenaltyComponent} from './standing-penalty.component';
8 import {CourseTermMapComponent} from './course-reserves/course-term-map.component';
9
10 const routes: Routes = [{
11     path: 'splash',
12     component: AdminLocalSplashComponent
13 }, {
14     path: 'config/hold_matrix_matchpoint',
15     component: BasicAdminPageComponent,
16     data: [{schema: 'config', table: 'hold_matrix_matchpoint', disableOrgFilter: true}]
17 }, {
18     path: 'actor/address_alert',
19     component: AddressAlertComponent
20 }, {
21     path: 'asset/copy_location',
22     component: BasicAdminPageComponent,
23     data: [{
24         schema: 'asset',
25         table: 'copy_location',
26         fieldOrder: 'owning_lib,name,opac_visible,circulate,holdable,hold_verify,checkin_alert,deleted,label_prefix,label_suffix,url,id'}]
27 }, {
28     path: 'asset/shelving_location_groups',
29     loadChildren: () =>
30       import('./shelving_location_groups/shelving_location_groups.module').then(m => m.ShelvingLocationGroupsModule)
31 }, {
32     path: 'container/carousel',
33     component: AdminCarouselComponent
34 }, {
35     path: 'asset/course_list',
36     loadChildren: () =>
37       import('./course-reserves/course-reserves.module').then(m => m.CourseReservesModule)
38 }, {
39     path: 'asset/course_module_term_course_map',
40     component: CourseTermMapComponent
41 }, {
42     path: 'config/circ_limit_set',
43     loadChildren: () =>
44       import('./circ_limit_set/circ_limit_set.module').then(m => m.CircLimitSetModule)
45 }, {
46     path: 'config/standing_penalty',
47     component: StandingPenaltyComponent
48 }, {
49     path: 'action/survey',
50     loadChildren: () =>
51       import('./survey/survey.module').then(m => m.SurveyModule)
52 }, {
53     path: ':schema/:table',
54     component: BasicAdminPageComponent
55 }];
56
57 @NgModule({
58   imports: [RouterModule.forChild(routes)],
59   exports: [RouterModule]
60 })
61
62 export class AdminLocalRoutingModule {}