mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DURACOM-191] fix build errors
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
<div class="sidebar-collapsible-element-inner-wrapper">
|
||||
<div class="sidebar-sub-level-item-list" role="menu" [id]="adminMenuSectionId(section.id)" [attr.aria-label]="('menu.section.' + section.id) | translate">
|
||||
<div class="sidebar-item" *ngFor="let subSection of (subSections$ | async)">
|
||||
{{ (sectionMap$ | async).get(subSection.id).component | json}}
|
||||
<ng-container
|
||||
*ngComponentOutlet="(sectionMap$ | async).get(subSection.id).component; injector: (sectionMap$ | async).get(subSection.id).injector;"></ng-container>
|
||||
</div>
|
||||
|
@@ -5,13 +5,15 @@ import { ActivatedRoute } from '@angular/router';
|
||||
import { Observable } from 'rxjs';
|
||||
import { BrowseByDataType } from '../browse-by-switcher/browse-by-data-type';
|
||||
import { BrowseBySwitcherComponent } from '../browse-by-switcher/browse-by-switcher.component';
|
||||
import { AsyncPipe } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-browse-by-page',
|
||||
templateUrl: './browse-by-page.component.html',
|
||||
styleUrls: ['./browse-by-page.component.scss'],
|
||||
imports: [
|
||||
BrowseBySwitcherComponent
|
||||
BrowseBySwitcherComponent,
|
||||
AsyncPipe
|
||||
],
|
||||
standalone: true
|
||||
})
|
||||
|
@@ -45,7 +45,9 @@ import { ThemedBrowseByComponent } from '../../shared/browse-by/themed-browse-by
|
||||
BrowseByComponent,
|
||||
TranslateModule,
|
||||
ThemedLoadingComponent,
|
||||
ThemedBrowseByComponent
|
||||
ThemedBrowseByComponent,
|
||||
VocabularyTreeviewComponent,
|
||||
RouterLink
|
||||
],
|
||||
standalone: true
|
||||
})
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import { filter, map, mergeMap } from 'rxjs/operators';
|
||||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
|
||||
import { ActivatedRoute, Router, RouterModule, RouterOutlet } from '@angular/router';
|
||||
import { Observable } from 'rxjs';
|
||||
import { RemoteData } from '../core/data/remote-data';
|
||||
import { Bitstream } from '../core/shared/bitstream.model';
|
||||
@@ -59,7 +59,8 @@ import {
|
||||
AsyncPipe,
|
||||
ViewTrackerComponent,
|
||||
VarDirective,
|
||||
RouterOutlet
|
||||
RouterOutlet,
|
||||
RouterModule
|
||||
],
|
||||
standalone: true
|
||||
})
|
||||
|
@@ -4,11 +4,24 @@ import { RemoteData } from '../../../core/data/remote-data';
|
||||
import { Community } from '../../../core/shared/community.model';
|
||||
import { ActivatedRoute, Data } from '@angular/router';
|
||||
import { map } from 'rxjs/operators';
|
||||
import {
|
||||
ThemedCommunityPageSubCommunityListComponent
|
||||
} from './sub-community-list/themed-community-page-sub-community-list.component';
|
||||
import {
|
||||
ThemedCollectionPageSubCollectionListComponent
|
||||
} from './sub-collection-list/themed-community-page-sub-collection-list.component';
|
||||
import { AsyncPipe } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-sub-com-col-section',
|
||||
templateUrl: './sub-com-col-section.component.html',
|
||||
styleUrls: ['./sub-com-col-section.component.scss'],
|
||||
imports: [
|
||||
ThemedCommunityPageSubCommunityListComponent,
|
||||
ThemedCollectionPageSubCollectionListComponent,
|
||||
AsyncPipe
|
||||
],
|
||||
standalone: true
|
||||
})
|
||||
export class SubComColSectionComponent implements OnInit {
|
||||
|
||||
|
@@ -1,11 +1,20 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { NotifyInfoService } from './notify-info.service';
|
||||
import { Observable, map, of } from 'rxjs';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { AsyncPipe } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-notify-info',
|
||||
templateUrl: './notify-info.component.html',
|
||||
styleUrls: ['./notify-info.component.scss'],
|
||||
imports: [
|
||||
RouterLink,
|
||||
TranslateModule,
|
||||
AsyncPipe
|
||||
],
|
||||
standalone: true
|
||||
})
|
||||
/**
|
||||
* Component for displaying COAR notification information.
|
||||
|
@@ -7,7 +7,7 @@ import { Injectable } from '@angular/core';
|
||||
/**
|
||||
* An guard for redirecting users to the feedback page if user is authorized
|
||||
*/
|
||||
@Injectable()
|
||||
@Injectable({providedIn: 'root'})
|
||||
export class FeedbackGuard implements CanActivate {
|
||||
|
||||
constructor(private authorizationService: AuthorizationDataService) {
|
||||
|
@@ -1,8 +1,7 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {HttpClient, HttpHeaders} from '@angular/common/http';
|
||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||
|
||||
import { Store } from '@ngrx/store';
|
||||
import { dataService } from '../cache/builders/build-decorators';
|
||||
import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service';
|
||||
import { RequestService } from '../data/request.service';
|
||||
import { HALEndpointService } from '../shared/hal-endpoint.service';
|
||||
@@ -16,17 +15,15 @@ import { FollowLinkConfig } from '../../shared/utils/follow-link-config.model';
|
||||
import { RequestParam } from '../cache/models/request-param.model';
|
||||
import { CoreState } from '../core-state.model';
|
||||
import { FindListOptions } from '../data/find-list-options.model';
|
||||
import {HttpOptions} from '../dspace-rest/dspace-rest.service';
|
||||
import {find, map} from 'rxjs/operators';
|
||||
import {PostRequest} from '../data/request.models';
|
||||
import {hasValue} from '../../shared/empty.util';
|
||||
import { HttpOptions } from '../dspace-rest/dspace-rest.service';
|
||||
import { find, map } from 'rxjs/operators';
|
||||
import { PostRequest } from '../data/request.models';
|
||||
import { hasValue } from '../../shared/empty.util';
|
||||
import { IdentifiableDataService } from '../data/base/identifiable-data.service';
|
||||
import { NoContent } from '../shared/NoContent.model';
|
||||
import { DeleteData, DeleteDataImpl } from '../data/base/delete-data';
|
||||
import { SearchData, SearchDataImpl } from '../data/base/search-data';
|
||||
import { PaginatedList } from '../data/paginated-list.model';
|
||||
import { DeleteData, DeleteDataImpl } from '../data/base/delete-data';
|
||||
import { NoContent } from '../shared/NoContent.model';
|
||||
|
||||
/**
|
||||
* A service that provides methods to make REST requests with workspaceitems endpoint.
|
||||
|
@@ -39,13 +39,22 @@ import { FormsModule } from '@angular/forms';
|
||||
import { NgClass, NgIf, AsyncPipe } from '@angular/common';
|
||||
import { CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
|
||||
import { VarDirective } from '../../../shared/utils/var.directive';
|
||||
import {
|
||||
DsDynamicScrollableDropdownComponent
|
||||
} from '../../../shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component';
|
||||
import {
|
||||
DsDynamicOneboxComponent
|
||||
} from '../../../shared/form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component';
|
||||
import {
|
||||
AuthorityConfidenceStateDirective
|
||||
} from '../../../shared/form/directives/authority-confidence-state.directive';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-dso-edit-metadata-value',
|
||||
styleUrls: ['./dso-edit-metadata-value.component.scss', '../dso-edit-metadata-shared/dso-edit-metadata-cells.scss'],
|
||||
templateUrl: './dso-edit-metadata-value.component.html',
|
||||
standalone: true,
|
||||
imports: [VarDirective, CdkDrag, NgClass, NgIf, FormsModule, DebounceDirective, RouterLink, ThemedTypeBadgeComponent, NgbTooltipModule, CdkDragHandle, AsyncPipe, TranslateModule]
|
||||
imports: [VarDirective, CdkDrag, NgClass, NgIf, FormsModule, DebounceDirective, RouterLink, ThemedTypeBadgeComponent, NgbTooltipModule, CdkDragHandle, AsyncPipe, TranslateModule, DsDynamicScrollableDropdownComponent, DsDynamicOneboxComponent, AuthorityConfidenceStateDirective]
|
||||
})
|
||||
/**
|
||||
* Component displaying a single editable row for a metadata value
|
||||
|
@@ -15,6 +15,9 @@ import { DsoEditMenuComponent } from '../../../../shared/dso-page/dso-edit-menu/
|
||||
import { ThemedItemPageTitleFieldComponent } from '../../../../item-page/simple/field-components/specific-field/title/themed-item-page-field.component';
|
||||
import { ThemedResultsBackButtonComponent } from '../../../../shared/results-back-button/themed-results-back-button.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
import {
|
||||
ItemPageImgFieldComponent
|
||||
} from '../../../../item-page/simple/field-components/specific-field/img/item-page-img-field.component';
|
||||
|
||||
@listableObjectComponent('OrgUnit', ViewMode.StandalonePage)
|
||||
@Component({
|
||||
@@ -22,7 +25,7 @@ import { NgIf, AsyncPipe } from '@angular/common';
|
||||
styleUrls: ['./org-unit.component.scss'],
|
||||
templateUrl: './org-unit.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, TabbedRelatedEntitiesSearchComponent, AsyncPipe, TranslateModule]
|
||||
imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, TabbedRelatedEntitiesSearchComponent, AsyncPipe, TranslateModule, ItemPageImgFieldComponent]
|
||||
})
|
||||
/**
|
||||
* The component for displaying metadata and relations of an item of the type Organisation Unit
|
||||
|
@@ -9,7 +9,7 @@ import { RecentItemListComponent } from './recent-item-list/recent-item-list.com
|
||||
import { ThemedTopLevelCommunityListComponent } from './top-level-community-list/themed-top-level-community-list.component';
|
||||
import { ThemedSearchFormComponent } from '../shared/search-form/themed-search-form.component';
|
||||
import { ViewTrackerComponent } from '../statistics/angulartics/dspace/view-tracker.component';
|
||||
import { NgIf, AsyncPipe } from '@angular/common';
|
||||
import { NgIf, AsyncPipe, NgClass } from '@angular/common';
|
||||
import { ThemedHomeNewsComponent } from './home-news/themed-home-news.component';
|
||||
import { isPlatformServer } from '@angular/common';
|
||||
import { ServerResponseService } from '../core/services/server-response.service';
|
||||
@@ -18,12 +18,14 @@ import { LinkDefinition, LinkHeadService } from '../core/services/link-head.serv
|
||||
import { isNotEmpty } from '../shared/empty.util';
|
||||
|
||||
import { APP_CONFIG, AppConfig } from 'src/config/app-config.interface';
|
||||
import { ConfigurationSearchPageComponent } from '../search-page/configuration-search-page.component';
|
||||
import { SuggestionsPopupComponent } from '../notifications/suggestions-popup/suggestions-popup.component';
|
||||
@Component({
|
||||
selector: 'ds-home-page',
|
||||
styleUrls: ['./home-page.component.scss'],
|
||||
templateUrl: './home-page.component.html',
|
||||
standalone: true,
|
||||
imports: [ThemedHomeNewsComponent, NgIf, ViewTrackerComponent, ThemedSearchFormComponent, ThemedTopLevelCommunityListComponent, RecentItemListComponent, AsyncPipe, TranslateModule]
|
||||
imports: [ThemedHomeNewsComponent, NgIf, ViewTrackerComponent, ThemedSearchFormComponent, ThemedTopLevelCommunityListComponent, RecentItemListComponent, AsyncPipe, TranslateModule, NgClass, ConfigurationSearchPageComponent, SuggestionsPopupComponent]
|
||||
})
|
||||
export class HomePageComponent implements OnInit, OnDestroy {
|
||||
|
||||
|
@@ -1,44 +0,0 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { EndUserAgreementComponent } from './end-user-agreement/end-user-agreement.component';
|
||||
import {
|
||||
EndUserAgreementContentComponent
|
||||
} from './end-user-agreement/end-user-agreement-content/end-user-agreement-content.component';
|
||||
import { PrivacyComponent } from './privacy/privacy.component';
|
||||
import { PrivacyContentComponent } from './privacy/privacy-content/privacy-content.component';
|
||||
import { ThemedEndUserAgreementComponent } from './end-user-agreement/themed-end-user-agreement.component';
|
||||
import { ThemedPrivacyComponent } from './privacy/themed-privacy.component';
|
||||
import { FeedbackComponent } from './feedback/feedback.component';
|
||||
import { FeedbackFormComponent } from './feedback/feedback-form/feedback-form.component';
|
||||
import { ThemedFeedbackFormComponent } from './feedback/feedback-form/themed-feedback-form.component';
|
||||
import { ThemedFeedbackComponent } from './feedback/themed-feedback.component';
|
||||
import { FeedbackGuard } from '../core/feedback/feedback.guard';
|
||||
import { NotifyInfoComponent } from '../core/coar-notify/notify-info/notify-info.component';
|
||||
|
||||
|
||||
const DECLARATIONS = [
|
||||
EndUserAgreementComponent,
|
||||
ThemedEndUserAgreementComponent,
|
||||
EndUserAgreementContentComponent,
|
||||
PrivacyComponent,
|
||||
PrivacyContentComponent,
|
||||
ThemedPrivacyComponent,
|
||||
FeedbackComponent,
|
||||
FeedbackFormComponent,
|
||||
ThemedFeedbackFormComponent,
|
||||
ThemedFeedbackComponent,
|
||||
NotifyInfoComponent
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
...DECLARATIONS
|
||||
],
|
||||
exports: [
|
||||
...DECLARATIONS
|
||||
],
|
||||
providers: [FeedbackGuard]
|
||||
})
|
||||
export class InfoModule {
|
||||
}
|
@@ -2,7 +2,7 @@ import { Component, Input } from '@angular/core';
|
||||
import { Item } from '../../core/shared/item.model';
|
||||
import { AlertType } from '../../shared/alert/alert-type';
|
||||
import { AlertComponent } from '../../shared/alert/alert.component';
|
||||
import { NgIf } from '@angular/common';
|
||||
import { AsyncPipe, NgIf } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { AuthorizationDataService } from '../../core/data/feature-authorization/authorization-data.service';
|
||||
@@ -20,7 +20,8 @@ import { getFirstCompletedRemoteData, getPaginatedListPayload, getRemoteDataPayl
|
||||
AlertComponent,
|
||||
NgIf,
|
||||
TranslateModule,
|
||||
RouterLink
|
||||
RouterLink,
|
||||
AsyncPipe
|
||||
],
|
||||
standalone: true
|
||||
})
|
||||
|
@@ -1,11 +1,17 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { ImageField, ItemPageFieldComponent } from '../item-page-field.component';
|
||||
import { Item } from '../../../../../core/shared/item.model';
|
||||
import { MetadataValuesComponent } from '../../../../field-components/metadata-values/metadata-values.component';
|
||||
import { AsyncPipe } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-item-page-img-field',
|
||||
templateUrl: '../item-page-field.component.html',
|
||||
standalone: true
|
||||
standalone: true,
|
||||
imports: [
|
||||
MetadataValuesComponent,
|
||||
AsyncPipe
|
||||
]
|
||||
})
|
||||
/**
|
||||
* Component that renders an inline image for a given field.
|
||||
|
@@ -11,9 +11,11 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { PaginationComponent } from '../../../shared/pagination/pagination.component';
|
||||
import { LoadingComponent } from '../../../shared/loading/loading.component';
|
||||
import { NgIf, NgFor, AsyncPipe } from '@angular/common';
|
||||
import { NgIf, NgFor, AsyncPipe, DatePipe } from '@angular/common';
|
||||
import { AlertComponent } from '../../../shared/alert/alert.component';
|
||||
import { QualityAssuranceSourcePageParams } from '../../../quality-assurance-notifications-pages/quality-assurance-source-page-component/quality-assurance-source-page-resolver.service';
|
||||
import {
|
||||
QualityAssuranceSourcePageParams
|
||||
} from '../../../quality-assurance-notifications-pages/quality-assurance-source-page-component/quality-assurance-source-page-resolver.service';
|
||||
|
||||
/**
|
||||
* Component to display the Quality Assurance source list.
|
||||
@@ -23,7 +25,7 @@ import { QualityAssuranceSourcePageParams } from '../../../quality-assurance-not
|
||||
templateUrl: './quality-assurance-source.component.html',
|
||||
styleUrls: ['./quality-assurance-source.component.scss'],
|
||||
standalone: true,
|
||||
imports: [AlertComponent, NgIf, LoadingComponent, PaginationComponent, NgFor, RouterLink, AsyncPipe, TranslateModule]
|
||||
imports: [AlertComponent, NgIf, LoadingComponent, PaginationComponent, NgFor, RouterLink, AsyncPipe, TranslateModule, DatePipe]
|
||||
})
|
||||
export class QualityAssuranceSourceComponent implements OnInit {
|
||||
|
||||
@@ -63,7 +65,8 @@ export class QualityAssuranceSourceComponent implements OnInit {
|
||||
constructor(
|
||||
private paginationService: PaginationService,
|
||||
private notificationsStateService: NotificationsStateService,
|
||||
) { }
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Component initialization.
|
||||
|
@@ -14,7 +14,7 @@ import { ActivatedRoute, Router, RouterLink } from '@angular/router';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { PaginationComponent } from '../../../shared/pagination/pagination.component';
|
||||
import { LoadingComponent } from '../../../shared/loading/loading.component';
|
||||
import { AsyncPipe, NgFor, NgIf } from '@angular/common';
|
||||
import { AsyncPipe, DatePipe, NgFor, NgIf } from '@angular/common';
|
||||
import { AlertComponent } from '../../../shared/alert/alert.component';
|
||||
import { ItemDataService } from '../../../core/data/item-data.service';
|
||||
import { getFirstCompletedRemoteData, getRemoteDataPayload } from '../../../core/shared/operators';
|
||||
@@ -33,7 +33,7 @@ import {
|
||||
templateUrl: './quality-assurance-topics.component.html',
|
||||
styleUrls: ['./quality-assurance-topics.component.scss'],
|
||||
standalone: true,
|
||||
imports: [AlertComponent, NgIf, LoadingComponent, PaginationComponent, NgFor, RouterLink, AsyncPipe, TranslateModule]
|
||||
imports: [AlertComponent, NgIf, LoadingComponent, PaginationComponent, NgFor, RouterLink, AsyncPipe, TranslateModule, DatePipe]
|
||||
})
|
||||
export class QualityAssuranceTopicsComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
/**
|
||||
|
@@ -25,6 +25,9 @@ import {
|
||||
ProfilePageResearcherFormComponent
|
||||
} from './profile-page-researcher-form/profile-page-researcher-form.component';
|
||||
import { VarDirective } from '../shared/utils/var.directive';
|
||||
import {
|
||||
SuggestionsNotificationComponent
|
||||
} from '../notifications/suggestions-notification/suggestions-notification.component';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-profile-page',
|
||||
@@ -38,7 +41,8 @@ import { VarDirective } from '../shared/utils/var.directive';
|
||||
ProfilePageResearcherFormComponent,
|
||||
VarDirective,
|
||||
NgIf,
|
||||
NgForOf
|
||||
NgForOf,
|
||||
SuggestionsNotificationComponent
|
||||
],
|
||||
standalone: true
|
||||
})
|
||||
|
@@ -1,9 +1,11 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { NotificationsSuggestionTargetsPageComponent } from './notifications-suggestion-targets-page/notifications-suggestion-targets-page.component';
|
||||
import { QualityAssuranceTopicsPageComponent } from './quality-assurance-topics-page/quality-assurance-topics-page.component';
|
||||
import { QualityAssuranceEventsPageComponent } from './quality-assurance-events-page/quality-assurance-events-page.component';
|
||||
import { QualityAssuranceSourcePageComponent } from './quality-assurance-source-page-component/quality-assurance-source-page.component';
|
||||
import {
|
||||
QualityAssuranceTopicsPageComponent
|
||||
} from './quality-assurance-topics-page/quality-assurance-topics-page.component';
|
||||
import {
|
||||
QualityAssuranceEventsPageComponent
|
||||
} from './quality-assurance-events-page/quality-assurance-events-page.component';
|
||||
import { NotificationsModule } from '../notifications/notifications.module';
|
||||
import { CoreModule } from '../core/core.module';
|
||||
|
||||
@@ -16,9 +18,6 @@ import { CoreModule } from '../core/core.module';
|
||||
QualityAssuranceEventsPageComponent,
|
||||
QualityAssuranceTopicsPageComponent
|
||||
],
|
||||
declarations: [
|
||||
QualityAssuranceSourcePageComponent
|
||||
],
|
||||
entryComponents: []
|
||||
})
|
||||
/**
|
||||
|
@@ -1,4 +1,5 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { QualityAssuranceSourceComponent } from '../../notifications/qa/source/quality-assurance-source.component';
|
||||
|
||||
/**
|
||||
* Component for the page that show the QA sources.
|
||||
@@ -6,5 +7,9 @@ import { Component } from '@angular/core';
|
||||
@Component({
|
||||
selector: 'ds-quality-assurance-source-page-component',
|
||||
templateUrl: './quality-assurance-source-page.component.html',
|
||||
imports: [
|
||||
QualityAssuranceSourceComponent
|
||||
],
|
||||
standalone: true
|
||||
})
|
||||
export class QualityAssuranceSourcePageComponent {}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { QualityAssuranceTopicsComponent } from '../../../notifications/qa/topics/quality-assurance-topics.component';
|
||||
import { QualityAssuranceTopicsComponent } from '../../notifications/qa/topics/quality-assurance-topics.component';
|
||||
|
||||
/**
|
||||
* Component for the page that show the QA topics related to a specific source.
|
||||
|
@@ -6,6 +6,7 @@ import { DynamicFormLayoutService, DynamicFormValidationService } from '@ng-dyna
|
||||
|
||||
import { DynamicCustomSwitchModel } from './custom-switch.model';
|
||||
import { NgClass } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-custom-switch',
|
||||
@@ -13,7 +14,8 @@ import { NgClass } from '@angular/common';
|
||||
templateUrl: './custom-switch.component.html',
|
||||
imports: [
|
||||
NgClass,
|
||||
ReactiveFormsModule
|
||||
ReactiveFormsModule,
|
||||
TranslateModule
|
||||
],
|
||||
standalone: true
|
||||
})
|
||||
|
@@ -7,9 +7,9 @@ import {
|
||||
import { SearchService } from '../../../../../core/shared/search/search.service';
|
||||
import {
|
||||
FILTER_CONFIG,
|
||||
SCOPE,
|
||||
IN_PLACE_SEARCH,
|
||||
REFRESH_FILTER,
|
||||
SCOPE,
|
||||
SearchFilterService
|
||||
} from '../../../../../core/shared/search/search-filter.service';
|
||||
import { Router } from '@angular/router';
|
||||
@@ -22,7 +22,6 @@ import { filter, map, take } from 'rxjs/operators';
|
||||
import { VocabularyService } from '../../../../../core/submission/vocabularies/vocabulary.service';
|
||||
import { BehaviorSubject, Observable } from 'rxjs';
|
||||
import { PageInfo } from '../../../../../core/shared/page-info.model';
|
||||
import { environment } from '../../../../../../environments/environment';
|
||||
import {
|
||||
VocabularyTreeviewModalComponent
|
||||
} from '../../../../form/vocabulary-treeview-modal/vocabulary-treeview-modal.component';
|
||||
@@ -39,8 +38,6 @@ import {
|
||||
} from '../search-facet-filter-options/search-facet-selected-option/search-facet-selected-option.component';
|
||||
import { AsyncPipe, LowerCasePipe, NgFor, NgIf } from '@angular/common';
|
||||
import { SEARCH_CONFIG_SERVICE } from '../../../../../my-dspace-page/my-dspace-configuration.service';
|
||||
import { addOperatorToFilterValue } from '../../../search.utils';
|
||||
import { VocabularyTreeviewModalComponent } from '../../../../form/vocabulary-treeview-modal/vocabulary-treeview-modal.component';
|
||||
import { hasValue } from '../../../../empty.util';
|
||||
import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.interface';
|
||||
import { FilterVocabularyConfig } from '../../../../../../config/filter-vocabulary-config';
|
||||
|
@@ -23,6 +23,10 @@ import { BrowseByComponent } from '../../../../../app/shared/browse-by/browse-by
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { ThemedLoadingComponent } from '../../../../../app/shared/loading/themed-loading.component';
|
||||
import { ThemedBrowseByComponent } from '../../../../../app/shared/browse-by/themed-browse-by.component';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import {
|
||||
VocabularyTreeviewComponent
|
||||
} from '../../../../../app/shared/form/vocabulary-treeview/vocabulary-treeview.component';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-browse-by-taxonomy',
|
||||
@@ -37,10 +41,12 @@ import { ThemedBrowseByComponent } from '../../../../../app/shared/browse-by/the
|
||||
ComcolPageHeaderComponent,
|
||||
ComcolPageLogoComponent,
|
||||
NgIf,
|
||||
RouterModule,
|
||||
ThemedComcolPageHandleComponent,
|
||||
ComcolPageContentComponent,
|
||||
DsoEditMenuComponent,
|
||||
ThemedComcolPageBrowseByComponent,
|
||||
VocabularyTreeviewComponent,
|
||||
BrowseByComponent,
|
||||
TranslateModule,
|
||||
ThemedLoadingComponent,
|
||||
|
@@ -22,6 +22,7 @@ import {
|
||||
ThemedComcolPageBrowseByComponent
|
||||
} from '../../../../app/shared/comcol/comcol-page-browse-by/themed-comcol-page-browse-by.component';
|
||||
import { ObjectCollectionComponent } from '../../../../app/shared/object-collection/object-collection.component';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -40,6 +41,7 @@ import { ObjectCollectionComponent } from '../../../../app/shared/object-collect
|
||||
ComcolPageContentComponent,
|
||||
ErrorComponent,
|
||||
NgIf,
|
||||
RouterOutlet,
|
||||
ThemedLoadingComponent,
|
||||
TranslateModule,
|
||||
ViewTrackerComponent,
|
||||
|
@@ -27,6 +27,7 @@ import {
|
||||
import {
|
||||
ThemedCollectionPageSubCollectionListComponent
|
||||
} from '../../../../app/community-page/sections/sub-com-col-section/sub-collection-list/themed-community-page-sub-collection-list.component';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -53,7 +54,8 @@ import {
|
||||
ComcolPageHeaderComponent,
|
||||
AsyncPipe,
|
||||
ViewTrackerComponent,
|
||||
VarDirective
|
||||
VarDirective,
|
||||
RouterModule
|
||||
],
|
||||
})
|
||||
/**
|
||||
|
@@ -1,5 +1,13 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { CommunityPageSubCommunityListComponent as BaseComponent } from '../../../../../../../app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component';
|
||||
import { ErrorComponent } from '../../../../../../../app/shared/error/error.component';
|
||||
import { ThemedLoadingComponent } from '../../../../../../../app/shared/loading/themed-loading.component';
|
||||
import { VarDirective } from '../../../../../../../app/shared/utils/var.directive';
|
||||
import { AsyncPipe, NgIf } from '@angular/common';
|
||||
import {
|
||||
ObjectCollectionComponent
|
||||
} from '../../../../../../../app/shared/object-collection/object-collection.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-community-page-sub-community-list',
|
||||
@@ -7,7 +15,20 @@ import { CommunityPageSubCommunityListComponent as BaseComponent } from '../../.
|
||||
styleUrls: ['../../../../../../../app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.scss'],
|
||||
// templateUrl: './community-page-sub-community-list.component.html',
|
||||
templateUrl: '../../../../../../../app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.html',
|
||||
standalone: true
|
||||
standalone: true,
|
||||
imports: [
|
||||
ErrorComponent,
|
||||
ThemedLoadingComponent,
|
||||
VarDirective,
|
||||
NgIf,
|
||||
ObjectCollectionComponent,
|
||||
AsyncPipe,
|
||||
TranslateModule,
|
||||
ObjectCollectionComponent,
|
||||
ErrorComponent,
|
||||
ThemedLoadingComponent,
|
||||
VarDirective
|
||||
]
|
||||
})
|
||||
export class CommunityPageSubCommunityListComponent extends BaseComponent {
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { HomePageComponent as BaseComponent } from '../../../../app/home-page/home-page.component';
|
||||
import { ThemedHomeNewsComponent } from '../../../../app/home-page/home-news/themed-home-news.component';
|
||||
import { AsyncPipe, NgIf } from '@angular/common';
|
||||
import { AsyncPipe, NgClass, NgIf } from '@angular/common';
|
||||
import { ViewTrackerComponent } from '../../../../app/statistics/angulartics/dspace/view-tracker.component';
|
||||
import { ThemedSearchFormComponent } from '../../../../app/shared/search-form/themed-search-form.component';
|
||||
import {
|
||||
@@ -9,6 +9,8 @@ import {
|
||||
} from '../../../../app/home-page/top-level-community-list/themed-top-level-community-list.component';
|
||||
import { RecentItemListComponent } from '../../../../app/home-page/recent-item-list/recent-item-list.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { SuggestionsPopupComponent } from '../../../../app/notifications/suggestions-popup/suggestions-popup.component';
|
||||
import { ConfigurationSearchPageComponent } from '../../../../app/search-page/configuration-search-page.component';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-home-page',
|
||||
@@ -17,7 +19,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
// templateUrl: './home-page.component.html'
|
||||
templateUrl: '../../../../app/home-page/home-page.component.html',
|
||||
standalone: true,
|
||||
imports: [ThemedHomeNewsComponent, NgIf, ViewTrackerComponent, ThemedSearchFormComponent, ThemedTopLevelCommunityListComponent, RecentItemListComponent, AsyncPipe, TranslateModule]
|
||||
imports: [ThemedHomeNewsComponent, NgIf, ViewTrackerComponent, ThemedSearchFormComponent, ThemedTopLevelCommunityListComponent, RecentItemListComponent, AsyncPipe, TranslateModule, NgClass, ConfigurationSearchPageComponent, SuggestionsPopupComponent]
|
||||
})
|
||||
export class HomePageComponent extends BaseComponent {
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { ItemAlertsComponent as BaseComponent } from '../../../../../app/item-page/alerts/item-alerts.component';
|
||||
import { AlertComponent } from '../../../../../app/shared/alert/alert.component';
|
||||
import { NgIf } from '@angular/common';
|
||||
import { AsyncPipe, NgIf } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
|
||||
@@ -16,7 +16,8 @@ import { RouterLink } from '@angular/router';
|
||||
AlertComponent,
|
||||
NgIf,
|
||||
TranslateModule,
|
||||
RouterLink
|
||||
RouterLink,
|
||||
AsyncPipe
|
||||
],
|
||||
})
|
||||
export class ItemAlertsComponent extends BaseComponent {
|
||||
|
@@ -15,6 +15,12 @@ import { ErrorComponent } from '../../../../../app/shared/error/error.component'
|
||||
import { ThemedLoadingComponent } from '../../../../../app/shared/loading/themed-loading.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { AsyncPipe, NgIf } from '@angular/common';
|
||||
import {
|
||||
NotifyRequestsStatusComponent
|
||||
} from '../../../../../app/item-page/simple/notify-requests-status/notify-requests-status-component/notify-requests-status.component';
|
||||
import {
|
||||
QaEventNotificationComponent
|
||||
} from '../../../../../app/item-page/simple/qa-event-notification/qa-event-notification.component';
|
||||
|
||||
/**
|
||||
* This component renders a simple item page.
|
||||
@@ -39,6 +45,8 @@ import { AsyncPipe, NgIf } from '@angular/common';
|
||||
ItemVersionsComponent,
|
||||
ErrorComponent,
|
||||
ThemedLoadingComponent,
|
||||
NotifyRequestsStatusComponent,
|
||||
QaEventNotificationComponent,
|
||||
TranslateModule,
|
||||
AsyncPipe,
|
||||
NgIf
|
||||
|
@@ -13,6 +13,12 @@ import {
|
||||
} from '../../../../app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission.component';
|
||||
import { AsyncPipe, NgIf } from '@angular/common';
|
||||
import { RoleDirective } from '../../../../app/shared/roles/role.directive';
|
||||
import {
|
||||
MyDspaceQaEventsNotificationsComponent
|
||||
} from '../../../../app/my-dspace-page/my-dspace-qa-events-notifications/my-dspace-qa-events-notifications.component';
|
||||
import {
|
||||
SuggestionsNotificationComponent
|
||||
} from '../../../../app/notifications/suggestions-notification/suggestions-notification.component';
|
||||
|
||||
/**
|
||||
* This component represents the whole mydspace page
|
||||
@@ -35,6 +41,8 @@ import { RoleDirective } from '../../../../app/shared/roles/role.directive';
|
||||
imports: [
|
||||
ThemedSearchComponent,
|
||||
MyDSpaceNewSubmissionComponent,
|
||||
MyDspaceQaEventsNotificationsComponent,
|
||||
SuggestionsNotificationComponent,
|
||||
AsyncPipe,
|
||||
RoleDirective,
|
||||
NgIf
|
||||
|
@@ -12,6 +12,9 @@ import {
|
||||
ProfilePageResearcherFormComponent
|
||||
} from '../../../../app/profile-page/profile-page-researcher-form/profile-page-researcher-form.component';
|
||||
import { VarDirective } from '../../../../app/shared/utils/var.directive';
|
||||
import {
|
||||
SuggestionsNotificationComponent
|
||||
} from '../../../../app/notifications/suggestions-notification/suggestions-notification.component';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-profile-page',
|
||||
@@ -23,6 +26,7 @@ import { VarDirective } from '../../../../app/shared/utils/var.directive';
|
||||
imports: [
|
||||
ProfilePageMetadataFormComponent,
|
||||
ProfilePageSecurityFormComponent,
|
||||
SuggestionsNotificationComponent,
|
||||
AsyncPipe,
|
||||
TranslateModule,
|
||||
ProfilePageResearcherFormComponent,
|
||||
|
@@ -3,11 +3,14 @@ import { fadeIn, fadeInOut } from '../../../../../app/shared/animations/fade';
|
||||
import { BrowseByComponent as BaseComponent } from '../../../../../app/shared/browse-by/browse-by.component';
|
||||
import { VarDirective } from 'src/app/shared/utils/var.directive';
|
||||
import { AsyncPipe, NgClass, NgComponentOutlet, NgIf } from '@angular/common';
|
||||
import { ThemedResultsBackButtonComponent } from 'src/app/shared/results-back-button/themed-results-back-button.component';
|
||||
import {
|
||||
ThemedResultsBackButtonComponent
|
||||
} from 'src/app/shared/results-back-button/themed-results-back-button.component';
|
||||
import { ObjectCollectionComponent } from 'src/app/shared/object-collection/object-collection.component';
|
||||
import { ThemedLoadingComponent } from 'src/app/shared/loading/themed-loading.component';
|
||||
import { ErrorComponent } from 'src/app/shared/error/error.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { StartsWithLoaderComponent } from '../../../../../app/shared/starts-with/starts-with-loader.component';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-browse-by',
|
||||
@@ -20,7 +23,8 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
fadeInOut,
|
||||
],
|
||||
standalone: true,
|
||||
imports: [VarDirective, NgClass, NgComponentOutlet, NgIf, ThemedResultsBackButtonComponent, ObjectCollectionComponent, ThemedLoadingComponent, ErrorComponent, AsyncPipe, TranslateModule]
|
||||
imports: [VarDirective, NgClass, NgComponentOutlet, NgIf, ThemedResultsBackButtonComponent, ObjectCollectionComponent,
|
||||
ThemedLoadingComponent, ErrorComponent, AsyncPipe, TranslateModule, StartsWithLoaderComponent]
|
||||
})
|
||||
export class BrowseByComponent extends BaseComponent {
|
||||
}
|
||||
|
@@ -17,6 +17,7 @@ import {
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { SEARCH_CONFIG_SERVICE } from '../../../../../../app/my-dspace-page/my-dspace-configuration.service';
|
||||
import { AdvancedSearchComponent } from '../../../../../../app/shared/search/advanced-search/advanced-search.component';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -32,7 +33,7 @@ import { SEARCH_CONFIG_SERVICE } from '../../../../../../app/my-dspace-page/my-d
|
||||
}
|
||||
],
|
||||
standalone: true,
|
||||
imports: [NgIf, NgFor, SearchFilterComponent, RouterLink, AsyncPipe, TranslateModule]
|
||||
imports: [NgIf, NgFor, SearchFilterComponent, RouterLink, AsyncPipe, TranslateModule, AdvancedSearchComponent]
|
||||
})
|
||||
|
||||
export class SearchFiltersComponent extends BaseComponent {
|
||||
|
@@ -18,7 +18,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
import { AppModule } from '../../app/app.module';
|
||||
import { ItemPageModule } from '../../app/item-page/item-page.module';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { InfoModule } from '../../app/info/info.module';
|
||||
import { StatisticsPageModule } from '../../app/statistics-page/statistics-page.module';
|
||||
import { SubmissionModule } from '../../app/submission/submission.module';
|
||||
import { MyDSpacePageModule } from '../../app/my-dspace-page/my-dspace-page.module';
|
||||
@@ -264,7 +263,6 @@ const DECLARATIONS = [
|
||||
FormsModule,
|
||||
HttpClientModule,
|
||||
IdlePreloadModule,
|
||||
InfoModule,
|
||||
MenuModule,
|
||||
DsoPageModule,
|
||||
NavbarModule,
|
||||
|
@@ -18,7 +18,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
import { AppModule } from '../../app/app.module';
|
||||
import { ItemPageModule } from '../../app/item-page/item-page.module';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { InfoModule } from '../../app/info/info.module';
|
||||
import { StatisticsPageModule } from '../../app/statistics-page/statistics-page.module';
|
||||
import { SubmissionModule } from '../../app/submission/submission.module';
|
||||
import { MyDSpacePageModule } from '../../app/my-dspace-page/my-dspace-page.module';
|
||||
@@ -47,7 +46,6 @@ const DECLARATIONS = [
|
||||
FormsModule,
|
||||
HttpClientModule,
|
||||
IdlePreloadModule,
|
||||
InfoModule,
|
||||
MenuModule,
|
||||
NavbarModule,
|
||||
NgbModule,
|
||||
|
Reference in New Issue
Block a user