Commit 712907aa authored by Homada.Boumedane's avatar Homada.Boumedane Committed by Florent Poittevin
Browse files

refactor(dlcm-portal): lazy loading

implement lazy loading on Admin module fro better performance

Closes: #DLCM-720
parent 3557674d
import {AdminFundingAgencyDeleteDialog} from "@admin/components/dialogs/admin-funding-agency-delete/admin-funding-agency-delete.dialog";
import {AdminFundingAgenciesCreateRoutable} from "@admin/components/routables/admin-funding-agencies-create/admin-funding-agencies-create.routable";
import {AdminFundingAgenciesEditRoutable} from "@admin/components/routables/admin-funding-agencies-edit/admin-funding-agencies-edit.routable";
import {AdminFundingAgenciesOrganizationalUnitState} from "@admin/stores/funding-agency/organizational-unit/admin-organizational-unit-preservation-policy.state";
import {AdminFundingAgenciesOrganizationalUnitState} from "@admin/funding-agencies/stores/organizational-unit/admin-organizational-unit-preservation-policy.state";
import {NgModule} from "@angular/core";
import {AdminRoutingModule} from "@app/features/admin/admin-routing.module";
import {AdminInstitutionDeleteDialog} from "@app/features/admin/components/dialogs/admin-institution-delete/admin-institution-delete.dialog";
import {AdminLicenseDeleteDialog} from "@app/features/admin/components/dialogs/admin-license-delete/admin-license-delete.dialog";
import {AdminOauth2ClientDeleteDialog} from "@app/features/admin/components/dialogs/admin-oauth2-client-delete/admin-oauth2-client-delete.dialog";
import {AdminOrgunitDeleteDialog} from "@app/features/admin/components/dialogs/admin-orgunit-delete/admin-orgunit-delete.dialog";
import {AdminPersonDeleteDialog} from "@app/features/admin/components/dialogs/admin-person-delete/admin-person-delete.dialog";
import {AdminPreservationPolicyDeleteDialog} from "@app/features/admin/components/dialogs/admin-preservation-policy-delete/admin-preservation-policy-delete.dialog";
import {AdminRoleDeleteDialog} from "@app/features/admin/components/dialogs/admin-role-delete/admin-role-delete.dialog";
import {AdminSubmissionPolicyDeleteDialog} from "@app/features/admin/components/dialogs/admin-submission-policy-delete/admin-submission-policy-delete.dialog";
import {AdminUserDeleteDialog} from "@app/features/admin/components/dialogs/admin-user-delete/admin-user-delete.dialog";
import {AdminFundingAgenciesFormPresentational} from "@app/features/admin/components/presentationals/admin-funding-agencies-form/admin-funding-agencies-form.presentational";
import {AdminInstitutionFormPresentational} from "@app/features/admin/components/presentationals/admin-institution-form/admin-institution-form.presentational";
import {AdminLicenseFormPresentational} from "@app/features/admin/components/presentationals/admin-license-form/admin-license-form.presentational";
import {AdminOAtuh2ClientFormPresentational} from "@app/features/admin/components/presentationals/admin-oauth2-client-form/admin-oauth2-client-form.presentational";
import {AdminOrgunitFormPresentational} from "@app/features/admin/components/presentationals/admin-orgunit-form/admin-orgunit-form.presentational";
import {AdminPersonForm} from "@app/features/admin/components/presentationals/admin-person-form/admin-person-form";
import {AdminPreservationPolicyFormPresentational} from "@app/features/admin/components/presentationals/admin-preservation-policy-form/admin-preservation-policy-form.presentational";
import {AdminRoleFormPresentational} from "@app/features/admin/components/presentationals/admin-role-form/admin-role-form.presentational";
import {AdminSubmissionPolicyFormPresentational} from "@app/features/admin/components/presentationals/admin-submission-policy-form/admin-submission-policy-form.presentational";
import {AdminUserForm} from "@app/features/admin/components/presentationals/admin-user-form/admin-user-form";
import {AdminFundingAgenciesDetailRoutable} from "@app/features/admin/components/routables/admin-funding-agencies-detail/admin-funding-agencies-detail.routable";
import {AdminFundingAgenciesListRoutable} from "@app/features/admin/components/routables/admin-funding-agencies-list/admin-funding-agencies-list-routable.component";
import {AdminHomeRoutable} from "@app/features/admin/components/routables/admin-home/admin-home.routable";
import {AdminInstitutionCreateRoutable} from "@app/features/admin/components/routables/admin-institution-create/admin-institution-create.routable";
import {AdminInstitutionDetailRoutable} from "@app/features/admin/components/routables/admin-institution-detail/admin-institution-detail.routable";
import {AdminInstitutionEditRoutable} from "@app/features/admin/components/routables/admin-institution-edit/admin-institution-edit.routable";
import {AdminInstitutionListRoutable} from "@app/features/admin/components/routables/admin-institution-list/admin-institution-list-routable.component";
import {AdminLicenseCreateRoutable} from "@app/features/admin/components/routables/admin-license-create/admin-license-create.routable";
import {AdminLicenseDetailRoutable} from "@app/features/admin/components/routables/admin-license-detail/admin-license-detail.routable";
import {AdminLicenseEditRoutable} from "@app/features/admin/components/routables/admin-license-edit/admin-license-edit.routable";
import {AdminLicenseListRoutable} from "@app/features/admin/components/routables/admin-license-list/admin-license-list.routable";
import {AdminOAuth2ClientCreateRoutable} from "@app/features/admin/components/routables/admin-oauth2-client-create/admin-oauth2-client-create-routable";
import {AdminOAuth2ClientDetailRoutable} from "@app/features/admin/components/routables/admin-oauth2-client-detail/admin-oauth2-client-detail.routable";
import {AdminOAuth2ClientEditRoutable} from "@app/features/admin/components/routables/admin-oauth2-client-edit/admin-oauth2-client-edit-routable";
import {AdminOAuth2ClientListRoutable} from "@app/features/admin/components/routables/admin-oauth2-client-list/admin-oauth2-client-list-routable.component";
import {AdminOrgunitCreateRoutable} from "@app/features/admin/components/routables/admin-orgunit-create/admin-orgunit-create.routable";
import {AdminOrgunitDetailRoutable} from "@app/features/admin/components/routables/admin-orgunit-detail/admin-orgunit-detail.routable";
import {AdminOrgunitEditRoutable} from "@app/features/admin/components/routables/admin-orgunit-edit/admin-orgunit-edit.routable";
import {AdminOrgunitListRoutable} from "@app/features/admin/components/routables/admin-orgunit-list/admin-orgunit-list.routable";
import {AdminPersonCreateRoutable} from "@app/features/admin/components/routables/admin-person-create/admin-person-create.routable";
import {AdminPersonDetailRoutable} from "@app/features/admin/components/routables/admin-person-detail/admin-person-detail.routable";
import {AdminPersonEditRoutable} from "@app/features/admin/components/routables/admin-person-edit/admin-person-edit.routable";
import {AdminPersonListRoutable} from "@app/features/admin/components/routables/admin-person-list/admin-person-list-routable";
import {AdminPreservationPolicyCreateRoutable} from "@app/features/admin/components/routables/admin-preservation-policy-create/admin-preservation-policy-create.routable";
import {AdminPreservationPolicyDetailRoutable} from "@app/features/admin/components/routables/admin-preservation-policy-detail/admin-preservation-policy-detail.routable";
import {AdminPreservationPolicyEditRoutable} from "@app/features/admin/components/routables/admin-preservation-policy-edit/admin-preservation-policy-edit.routable";
import {AdminPreservationPolicyListRoutable} from "@app/features/admin/components/routables/admin-preservation-policy-list/admin-preservation-policy-list.routable";
import {AdminRoleCreateRoutable} from "@app/features/admin/components/routables/admin-role-create/admin-role-create.routable";
import {AdminRoleDetailRoutable} from "@app/features/admin/components/routables/admin-role-detail/admin-role-detail.routable";
import {AdminRoleEditRoutable} from "@app/features/admin/components/routables/admin-role-edit/admin-role-edit.routable";
import {AdminRoleListRoutable} from "@app/features/admin/components/routables/admin-role-list/admin-role-list.routable";
import {AdminSubmissionPolicyCreateRoutable} from "@app/features/admin/components/routables/admin-submission-policy-create/admin-submission-policy-create.routable";
import {AdminSubmissionPolicyDetailRoutable} from "@app/features/admin/components/routables/admin-submission-policy-detail/admin-submission-policy-detail.routable";
import {AdminSubmissionPolicyEditRoutable} from "@app/features/admin/components/routables/admin-submission-policy-edit/admin-submission-policy-edit.routable";
import {AdminUserCreateRoutable} from "@app/features/admin/components/routables/admin-user-create/admin-user-create.routable";
import {AdminUserDetailRoutable} from "@app/features/admin/components/routables/admin-user-detail/admin-user-detail.routable";
import {AdminUserEditRoutable} from "@app/features/admin/components/routables/admin-user-edit/admin-user-edit.routable";
import {AdminUserListRoutable} from "@app/features/admin/components/routables/admin-user-list/admin-user-list-routable";
import {AdminState} from "@app/features/admin/stores/admin.state";
import {AdminFundingAgenciesState} from "@app/features/admin/stores/funding-agency/admin-funding-agencies.state";
import {AdminInstitutionState} from "@app/features/admin/stores/institution/admin-institution.state";
import {AdminLicenseState} from "@app/features/admin/stores/license/admin-license.state";
import {AdminOAuth2ClientState} from "@app/features/admin/stores/oauth2-client/admin-oauth2-client.state";
import {AdminOrganizationalUnitState} from "@app/features/admin/stores/organizational-unit/admin-organizational-unit.state";
import {AdminOrganizationalUnitPreservationPolicyState} from "@app/features/admin/stores/organizational-unit/preservation-policy/admin-organizational-unit-preservation-policy.state";
import {AdminOrganizationalUnitSubmissionPolicyState} from "@app/features/admin/stores/organizational-unit/submission-policy/admin-organizational-unit-submission-policy.state";
import {AdminPersonState} from "@app/features/admin/stores/person/admin-person.state";
import {AdminPreservationPolicyState} from "@app/features/admin/stores/preservation-policy/admin-preservation-policy.state";
import {AdminRoleState} from "@app/features/admin/stores/role/admin-role.state";
import {AdminSubmissionPolicyState} from "@app/features/admin/stores/submission-policy/admin-submission-policy.state";
import {AdminUserState} from "@app/features/admin/stores/user/admin-user.state";
import {AdminFundingAgenciesState} from "@admin/funding-agencies/stores/admin-funding-agencies.state";
import {AdminInstitutionState} from "@admin/institution/stores/admin-institution.state";
import {AdminLicenseState} from "@admin/license/stores/admin-license.state";
import {AdminOAuth2ClientState} from "@admin/oauth2-client/stores/admin-oauth2-client.state";
import {AdminOrganizationalUnitState} from "@admin/orgunit/stores/admin-organizational-unit.state";
import {AdminOrganizationalUnitPreservationPolicyState} from "@app/features/admin/orgunit/stores/preservation-policy/admin-organizational-unit-preservation-policy.state";
import {AdminOrganizationalUnitSubmissionPolicyState} from "@app/features/admin/orgunit/stores/submission-policy/admin-organizational-unit-submission-policy.state";
import {AdminPersonState} from "@admin/person/stores/admin-person.state";
import {AdminPreservationPolicyState} from "@admin/preservation-policy/stores/admin-preservation-policy.state";
import {AdminRoleState} from "@admin/role/stores/admin-role.state";
import {AdminSubmissionPolicyState} from "@admin/submission-policy/stores/admin-submission-policy.state";
import {AdminUserState} from "@admin/user/stores/admin-user.state";
import {SharedModule} from "@app/shared/shared.module";
import {TranslateModule} from "@ngx-translate/core";
import {NgxsModule} from "@ngxs/store";
import {AdminSubmissionPolicyListRoutable} from "./components/routables/admin-submission-policy-list/admin-submission-policy-list.routable";
const routables = [
AdminHomeRoutable,
AdminSubmissionPolicyListRoutable,
AdminSubmissionPolicyDetailRoutable,
AdminSubmissionPolicyEditRoutable,
AdminSubmissionPolicyCreateRoutable,
AdminPreservationPolicyListRoutable,
AdminPreservationPolicyDetailRoutable,
AdminPreservationPolicyCreateRoutable,
AdminPreservationPolicyEditRoutable,
AdminLicenseCreateRoutable,
AdminLicenseDetailRoutable,
AdminLicenseEditRoutable,
AdminLicenseListRoutable,
AdminInstitutionListRoutable,
AdminInstitutionDetailRoutable,
AdminInstitutionEditRoutable,
AdminInstitutionCreateRoutable,
AdminOrgunitDetailRoutable,
AdminOrgunitListRoutable,
AdminOrgunitCreateRoutable,
AdminOrgunitEditRoutable,
AdminUserListRoutable,
AdminUserDetailRoutable,
AdminUserCreateRoutable,
AdminUserEditRoutable,
AdminOAuth2ClientListRoutable,
AdminOAuth2ClientDetailRoutable,
AdminOAuth2ClientEditRoutable,
AdminOAuth2ClientCreateRoutable,
AdminPersonListRoutable,
AdminPersonDetailRoutable,
AdminPersonCreateRoutable,
AdminPersonEditRoutable,
AdminRoleListRoutable,
AdminRoleCreateRoutable,
AdminRoleDetailRoutable,
AdminRoleEditRoutable,
AdminFundingAgenciesListRoutable,
AdminFundingAgenciesDetailRoutable,
AdminFundingAgenciesEditRoutable,
AdminFundingAgenciesCreateRoutable,
AdminHomeRoutable
];
const containers = [];
const dialogs = [
AdminSubmissionPolicyDeleteDialog,
AdminLicenseDeleteDialog,
AdminPreservationPolicyDeleteDialog,
AdminOrgunitDeleteDialog,
AdminInstitutionDeleteDialog,
AdminUserDeleteDialog,
AdminOauth2ClientDeleteDialog,
AdminPersonDeleteDialog,
AdminRoleDeleteDialog,
AdminFundingAgencyDeleteDialog,
];
const presentationals = [
AdminSubmissionPolicyFormPresentational,
AdminLicenseFormPresentational,
AdminPreservationPolicyFormPresentational,
AdminOrgunitFormPresentational,
AdminInstitutionFormPresentational,
AdminUserForm,
AdminOAtuh2ClientFormPresentational,
AdminPersonForm,
AdminRoleFormPresentational,
AdminFundingAgenciesFormPresentational,
];
@NgModule({
......
import {adminFundingAgenciesActionNameSpace} from "@admin/stores/funding-agency/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@admin/stores/funding-agency/admin-funding-agencies.state";
import {
ChangeDetectionStrategy,
Component,
Inject,
} from "@angular/core";
import {
MAT_DIALOG_DATA,
MatDialogRef,
} from "@angular/material";
import {SharedAbstractDeleteDialog} from "@app/shared/components/dialogs/shared-abstract-delete/shared-abstract-delete.dialog";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {DeleteDialog} from "@app/shared/models/delete-dialog.model";
import {adminFundingAgenciesActionNameSpace} from "@admin/funding-agencies/stores/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@admin/funding-agencies/stores/admin-funding-agencies.state";
import {ChangeDetectionStrategy, Component, Inject,} from "@angular/core";
import {MAT_DIALOG_DATA, MatDialogRef,} from "@angular/material";
import {SharedAbstractDeleteDialog} from "@shared/components/dialogs/shared-abstract-delete/shared-abstract-delete.dialog";
import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {DeleteDialog} from "@shared/models/delete-dialog.model";
import {FundingAgencyExtended} from "@deposit/models/funding-agency-extended.model";
import {Store} from "@ngxs/store";
import {TRANSLATE} from "solidify-frontend";
......
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
Input,
} from "@angular/core";
import {
FormBuilder,
Validators,
} from "@angular/forms";
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input,} from "@angular/core";
import {FormBuilder, Validators,} from "@angular/forms";
import {OrganizationalUnit} from "@app/generated-api";
import {SharedAbstractFormPresentational} from "@app/shared/components/presentationals/shared-abstract-form/shared-abstract-form.presentational";
import {BaseFormDefinition} from "@app/shared/models/base-form-definition.model";
import {SharedAbstractFormPresentational} from "@shared/components/presentationals/shared-abstract-form/shared-abstract-form.presentational";
import {BaseFormDefinition} from "@shared/models/base-form-definition.model";
import {FundingAgencyExtended} from "@deposit/models/funding-agency-extended.model";
import {LocalModelAttributeEnum} from "@shared/enums/model-attribute.enum";
import _ from "lodash";
import {
PropertyName,
SolidifyValidator,
} from "solidify-frontend";
import {PropertyName, SolidifyValidator,} from "solidify-frontend";
@Component({
selector: "dlcm-admin-funding-agencies-form",
......
import {
ChangeDetectionStrategy,
Component,
} from "@angular/core";
import {adminFundingAgenciesActionNameSpace} from "@app/features/admin/stores/funding-agency/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@app/features/admin/stores/funding-agency/admin-funding-agencies.state";
import {ChangeDetectionStrategy, Component,} from "@angular/core";
import {adminFundingAgenciesActionNameSpace} from "@admin/funding-agencies/stores/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@admin/funding-agencies/stores/admin-funding-agencies.state";
import {FundingAgency} from "@app/generated-api";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {OrganizationalUnitExtended} from "@deposit/models/organizational-unit-extended.model";
import {
Select,
Store,
} from "@ngxs/store";
import {Select, Store,} from "@ngxs/store";
import {SharedAbstractCreateRoutable} from "@shared/components/routables/shared-abstract-create/shared-abstract-create.routable";
import {LocalStateModel} from "@shared/models/local-state.model";
import {Observable} from "rxjs";
......@@ -18,7 +12,7 @@ import {Observable} from "rxjs";
@Component({
selector: "dlcm-admin-funding-agency-create-routable",
templateUrl: "./admin-funding-agencies-create.routable.html",
styleUrls: ["../../../../../shared/components/routables/shared-abstract-detail/shared-abstract-detail.routable.scss"],
styleUrls: ["../../../../../../shared/components/routables/shared-abstract-detail/shared-abstract-detail.routable.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminFundingAgenciesCreateRoutable extends SharedAbstractCreateRoutable<FundingAgency, AdminFundingAgenciesStateModel> {
......
import {AdminFundingAgenciesOrgUnitAction} from "@admin/stores/funding-agency/organizational-unit/admin-organizational-unit-preservation-policy.action";
import {
ChangeDetectionStrategy,
Component,
} from "@angular/core";
import {AdminFundingAgenciesOrgUnitAction} from "@admin/funding-agencies/stores/organizational-unit/admin-organizational-unit-preservation-policy.action";
import {ChangeDetectionStrategy, Component,} from "@angular/core";
import {MatDialog} from "@angular/material";
import {ActivatedRoute} from "@angular/router";
import {adminFundingAgenciesActionNameSpace} from "@app/features/admin/stores/funding-agency/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@app/features/admin/stores/funding-agency/admin-funding-agencies.state";
import {
FundingAgency,
OrganizationalUnit,
} from "@app/generated-api";
import {SharedAbstractDetailRoutable} from "@app/shared/components/routables/shared-abstract-detail/shared-abstract-detail.routable";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {adminFundingAgenciesActionNameSpace} from "@admin/funding-agencies/stores/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@admin/funding-agencies/stores/admin-funding-agencies.state";
import {FundingAgency, OrganizationalUnit,} from "@app/generated-api";
import {SharedAbstractDetailRoutable} from "@shared/components/routables/shared-abstract-detail/shared-abstract-detail.routable";
import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {OrganizationalUnitExtended} from "@deposit/models/organizational-unit-extended.model";
import {
Select,
Store,
} from "@ngxs/store";
import {Select, Store,} from "@ngxs/store";
import {LocalStateModel} from "@shared/models/local-state.model";
import {Observable} from "rxjs";
import {
StoreUtil,
TRANSLATE,
} from "solidify-frontend";
import {StoreUtil, TRANSLATE,} from "solidify-frontend";
@Component({
selector: "dlcm-admin-funding-agency-detail-routable",
templateUrl: "./admin-funding-agencies-detail.routable.html",
styleUrls: ["../../../../../shared/components/routables/shared-abstract-detail/shared-abstract-detail.routable.scss"],
styleUrls: ["../../../../../../shared/components/routables/shared-abstract-detail/shared-abstract-detail.routable.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminFundingAgenciesDetailRoutable extends SharedAbstractDetailRoutable<FundingAgency, AdminFundingAgenciesStateModel> {
......
import {AdminFundingAgenciesOrgUnitAction} from "@admin/stores/funding-agency/organizational-unit/admin-organizational-unit-preservation-policy.action";
import {
ChangeDetectionStrategy,
Component,
} from "@angular/core";
import {AdminFundingAgenciesOrgUnitAction} from "@admin/funding-agencies/stores/organizational-unit/admin-organizational-unit-preservation-policy.action";
import {ChangeDetectionStrategy, Component,} from "@angular/core";
import {ActivatedRoute} from "@angular/router";
import {adminFundingAgenciesActionNameSpace} from "@app/features/admin/stores/funding-agency/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@app/features/admin/stores/funding-agency/admin-funding-agencies.state";
import {
FundingAgency,
OrganizationalUnit,
} from "@app/generated-api";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {adminFundingAgenciesActionNameSpace} from "@admin/funding-agencies/stores/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@admin/funding-agencies/stores/admin-funding-agencies.state";
import {FundingAgency, OrganizationalUnit,} from "@app/generated-api";
import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {OrganizationalUnitExtended} from "@deposit/models/organizational-unit-extended.model";
import {
Select,
Store,
} from "@ngxs/store";
import {Select, Store,} from "@ngxs/store";
import {SharedAbstractEditRoutable} from "@shared/components/routables/shared-abstract-edit/shared-abstract-edit.routable";
import {LocalStateModel} from "@shared/models/local-state.model";
import {Observable} from "rxjs";
import {
StoreUtil,
TRANSLATE,
} from "solidify-frontend";
import {StoreUtil, TRANSLATE,} from "solidify-frontend";
@Component({
selector: "dlcm-admin-funding-agency-edit-routable",
templateUrl: "./admin-funding-agencies-edit.routable.html",
styleUrls: ["../../../../../shared/components/routables/shared-abstract-edit/shared-abstract-edit.routable.scss"],
styleUrls: ["../../../../../../shared/components/routables/shared-abstract-edit/shared-abstract-edit.routable.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminFundingAgenciesEditRoutable extends SharedAbstractEditRoutable<FundingAgency, AdminFundingAgenciesStateModel> {
......
import {
ChangeDetectionStrategy,
Component,
} from "@angular/core";
import {adminFundingAgenciesActionNameSpace} from "@app/features/admin/stores/funding-agency/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@app/features/admin/stores/funding-agency/admin-funding-agencies.state";
import {ChangeDetectionStrategy, Component,} from "@angular/core";
import {adminFundingAgenciesActionNameSpace} from "@admin/funding-agencies/stores/admin-funding-agencies.action";
import {AdminFundingAgenciesStateModel} from "@admin/funding-agencies/stores/admin-funding-agencies.state";
import {FundingAgency} from "@app/generated-api";
import {SharedAbstractListRoutable} from "@app/shared/components/routables/shared-abstract-list/shared-abstract-list.routable";
import {FieldTypeEnum} from "@app/shared/enums/field-type.enum";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {SharedAbstractListRoutable} from "@shared/components/routables/shared-abstract-list/shared-abstract-list.routable";
import {FieldTypeEnum} from "@shared/enums/field-type.enum";
import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {Store} from "@ngxs/store";
import {TRANSLATE} from "solidify-frontend";
@Component({
selector: "dlcm-admin-submission-policy-list-routable",
templateUrl: "../../../../../shared/components/routables/shared-abstract-list/shared-abstract-list.routable.html",
styleUrls: ["../../../../../shared/components/routables/shared-abstract-list/shared-abstract-list.routable.scss"],
templateUrl: "../../../../../../shared/components/routables/shared-abstract-list/shared-abstract-list.routable.html",
styleUrls: ["../../../../../../shared/components/routables/shared-abstract-list/shared-abstract-list.routable.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminFundingAgenciesListRoutable extends SharedAbstractListRoutable<FundingAgency, AdminFundingAgenciesStateModel> {
......
import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {AdminRoutesEnum, AppRoutesEnum} from "@shared/enums/routes.enum";
import {AdminFundingAgenciesListRoutable} from "@admin/funding-agencies/components/routables/list/admin-funding-agencies-list-routable.component";
import {TRANSLATE} from "solidify-frontend";
import {AdminFundingAgenciesDetailRoutable} from "@admin/funding-agencies/components/routables/detail/admin-funding-agencies-detail.routable";
import {AdminFundingAgenciesEditRoutable} from "@admin/funding-agencies/components/routables/edit/admin-funding-agencies-edit.routable";
import {AdminFundingAgenciesCreateRoutable} from "@admin/funding-agencies/components/routables/create/admin-funding-agencies-create.routable";
const routes: Routes = [
{
path: AppRoutesEnum.root,
component: AdminFundingAgenciesListRoutable,
data: {
breadcrumb: TRANSLATE("breadcrumb.admin.funding-agencies.list"),
},
},
{
path: AdminRoutesEnum.fundingAgenciesDetail + AppRoutesEnum.separator + AppRoutesEnum.paramId,
component: AdminFundingAgenciesDetailRoutable,
data: {
breadcrumb: TRANSLATE("breadcrumb.admin.funding-agencies.detail"),
},
},
{
path: AdminRoutesEnum.fundingAgenciesEdit + AppRoutesEnum.separator + AppRoutesEnum.paramId,
component: AdminFundingAgenciesEditRoutable,
data: {
breadcrumb: TRANSLATE("breadcrumb.admin.funding-agencies.detail"),
},
},
{
component: AdminFundingAgenciesCreateRoutable,
path: AdminRoutesEnum.fundingAgenciesCreate,
data: {
breadcrumb: TRANSLATE("breadcrumb.admin.funding-agencies.create"),
},
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class AdminFundingAgenciesRoutingModule { }
import {NgModule} from "@angular/core";
import {SharedModule} from "@app/shared/shared.module";
import {TranslateModule} from "@ngx-translate/core";
import {NgxsModule} from "@ngxs/store";
import {AdminFundingAgenciesListRoutable} from "@admin/funding-agencies/components/routables/list/admin-funding-agencies-list-routable.component";
import {AdminFundingAgenciesDetailRoutable} from "@admin/funding-agencies/components/routables/detail/admin-funding-agencies-detail.routable";
import {AdminFundingAgenciesEditRoutable} from "@admin/funding-agencies/components/routables/edit/admin-funding-agencies-edit.routable";
import {AdminFundingAgenciesCreateRoutable} from "@admin/funding-agencies/components/routables/create/admin-funding-agencies-create.routable";
import {AdminFundingAgencyDeleteDialog} from "@admin/funding-agencies/components/dialogs/admin-funding-agency-delete.dialog";
import {AdminFundingAgenciesFormPresentational} from "@admin/funding-agencies/components/presentationals/admin-funding-agencies-form.presentational";
import {AdminFundingAgenciesState} from "@admin/funding-agencies/stores/admin-funding-agencies.state";
import {AdminFundingAgenciesRoutingModule} from "@admin/funding-agencies/funding-agencies-routing.module";
const routables = [
AdminFundingAgenciesListRoutable,
AdminFundingAgenciesDetailRoutable,
AdminFundingAgenciesEditRoutable,
AdminFundingAgenciesCreateRoutable,
];
const containers = [];
const dialogs = [
AdminFundingAgencyDeleteDialog
];
const presentationals = [
AdminFundingAgenciesFormPresentational
];
@NgModule({
declarations: [
...routables,
...containers,
...dialogs,
...presentationals,
],
imports: [
SharedModule,
AdminFundingAgenciesRoutingModule,
TranslateModule.forChild({}),
NgxsModule.forFeature([
AdminFundingAgenciesState
]),
],
entryComponents: [
...dialogs,
],
exports: [
...routables,
],
providers: [],
})
export class AdminFundingAgenciesModule { }
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {FundingAgencyExtended} from "@deposit/models/funding-agency-extended.model";
import {
ResourceAction,
ResourceNameSpace,
TypeDefaultAction,
} from "solidify-frontend";
import {ResourceAction, ResourceNameSpace, TypeDefaultAction,} from "solidify-frontend";
const state = LocalStateEnum.admin_fundingAgencies;
......
import {adminFundingAgenciesOrgUnitActionNameSpace} from "@admin/stores/funding-agency/organizational-unit/admin-organizational-unit-preservation-policy.action";
import {adminFundingAgenciesOrgUnitActionNameSpace} from "@admin/funding-agencies/stores/organizational-unit/admin-organizational-unit-preservation-policy.action";
import {
AdminFundingAgenciesOrganizationalUnitState,
AdminFundingAgenciesOrganizationalUnitStateModel,
} from "@admin/stores/funding-agency/organizational-unit/admin-organizational-unit-preservation-policy.state";
} from "@admin/funding-agencies/stores/organizational-unit/admin-organizational-unit-preservation-policy.state";
import {
AdminFundingAgenciesAction,
adminFundingAgenciesActionNameSpace,
} from "@app/features/admin/stores/funding-agency/admin-funding-agencies.action";
import {AdminResourceApiEnum} from "@app/shared/enums/api.enum";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {RoutesEnum} from "@app/shared/enums/routes.enum";
} from "@admin/funding-agencies/stores/admin-funding-agencies.action";
import {AdminResourceApiEnum} from "@shared/enums/api.enum";
import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {RoutesEnum} from "@shared/enums/routes.enum";
import {FundingAgencyExtended} from "@deposit/models/funding-agency-extended.model";
import {
Action,
Actions,
ofActionCompleted,
State,
StateContext,
Store,
} from "@ngxs/store";
import {Action, Actions, ofActionCompleted, State, StateContext, Store,} from "@ngxs/store";
import {LocalModelAttributeEnum} from "@shared/enums/model-attribute.enum";
import {SharedOrgUnitAction} from "@shared/stores/organizational-unit/shared-organizational-unit.action";
import _ from "lodash";
......
import {OrganizationalUnit} from "@app/generated-api";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {
AssociationAction,
AssociationNameSpace,
TypeDefaultAction,
} from "solidify-frontend";
import {LocalStateEnum} from "@shared/enums/local-state.enum";
import {AssociationAction, AssociationNameSpace, TypeDefaultAction,} from "solidify-frontend";
const state = LocalStateEnum.admin_fundingAgencies_organizationalUnit;
......