mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DURACOM-191] fix build errors
This commit is contained in:
@@ -73,6 +73,7 @@ import { NotificationsService } from '../../../shared/notifications/notification
|
||||
import { PaginationComponent } from '../../../shared/pagination/pagination.component';
|
||||
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
|
||||
import { followLink } from '../../../shared/utils/follow-link-config.model';
|
||||
import { HasNoValuePipe } from '../../../shared/utils/has-no-value.pipe';
|
||||
import { getEPersonsRoute } from '../../access-control-routing-paths';
|
||||
import { ValidateEmailNotTaken } from './validators/email-taken.validator';
|
||||
|
||||
@@ -88,6 +89,7 @@ import { ValidateEmailNotTaken } from './validators/email-taken.validator';
|
||||
ThemedLoadingComponent,
|
||||
PaginationComponent,
|
||||
RouterLink,
|
||||
HasNoValuePipe,
|
||||
],
|
||||
standalone: true,
|
||||
})
|
||||
|
@@ -7,7 +7,6 @@ import { RouterModule } from '@angular/router';
|
||||
|
||||
import { SearchPageModule } from '../../search-page/search-page.module';
|
||||
import { SearchModule } from '../../shared/search/search.module';
|
||||
import { SharedModule } from '../../shared/shared.module';
|
||||
import { AdminNotifyDashboardComponent } from './admin-notify-dashboard.component';
|
||||
import { AdminNotifyDashboardRoutingModule } from './admin-notify-dashboard-routing.module';
|
||||
import { AdminNotifyDetailModalComponent } from './admin-notify-detail-modal/admin-notify-detail-modal.component';
|
||||
@@ -25,7 +24,6 @@ const ENTRY_COMPONENTS = [
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule,
|
||||
SharedModule,
|
||||
AdminNotifyDashboardRoutingModule,
|
||||
SearchModule,
|
||||
SearchPageModule,
|
||||
|
@@ -1,5 +1,6 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
|
||||
import { BrowseService } from '../core/browse/browse.service';
|
||||
import { ItemDataService } from '../core/data/item-data.service';
|
||||
import { SharedBrowseByModule } from '../shared/browse-by/shared-browse-by.module';
|
||||
import { BrowseByGuard } from './browse-by-guard';
|
||||
|
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
AsyncPipe,
|
||||
NgForOf,
|
||||
NgIf,
|
||||
} from '@angular/common';
|
||||
import {
|
||||
Component,
|
||||
EventEmitter,
|
||||
@@ -8,7 +13,10 @@ import {
|
||||
Output,
|
||||
SimpleChanges,
|
||||
} from '@angular/core';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import {
|
||||
TranslateModule,
|
||||
TranslateService,
|
||||
} from '@ngx-translate/core';
|
||||
import {
|
||||
BehaviorSubject,
|
||||
Observable,
|
||||
@@ -24,12 +32,21 @@ import {
|
||||
} from '../../../core/services/window.service';
|
||||
import { Item } from '../../../core/shared/item.model';
|
||||
import { getFirstCompletedRemoteData } from '../../../core/shared/operators';
|
||||
import { AlertComponent } from '../../../shared/alert/alert.component';
|
||||
import { NotificationsService } from '../../../shared/notifications/notifications.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-orcid-auth',
|
||||
templateUrl: './orcid-auth.component.html',
|
||||
styleUrls: ['./orcid-auth.component.scss'],
|
||||
imports: [
|
||||
TranslateModule,
|
||||
AsyncPipe,
|
||||
NgIf,
|
||||
NgForOf,
|
||||
AlertComponent,
|
||||
],
|
||||
standalone: true,
|
||||
})
|
||||
export class OrcidAuthComponent implements OnInit, OnChanges {
|
||||
|
||||
|
@@ -6,10 +6,8 @@ import {
|
||||
|
||||
import { Item } from '../../../../../core/shared/item.model';
|
||||
import { MetadataValuesComponent } from '../../../../field-components/metadata-values/metadata-values.component';
|
||||
import {
|
||||
ImageField,
|
||||
ItemPageFieldComponent,
|
||||
} from '../item-page-field.component';
|
||||
import { ImageField } from '../image-field';
|
||||
import { ItemPageFieldComponent } from '../item-page-field.component';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-item-page-img-field',
|
||||
|
@@ -64,6 +64,7 @@ import { ThemedFileDownloadLinkComponent } from '../../shared/file-download-link
|
||||
import { ThemedLoadingComponent } from '../../shared/loading/themed-loading.component';
|
||||
import { NotificationsService } from '../../shared/notifications/notifications.service';
|
||||
import { FileSizePipe } from '../../shared/utils/file-size-pipe';
|
||||
import { HasNoValuePipe } from '../../shared/utils/has-no-value.pipe';
|
||||
import { VarDirective } from '../../shared/utils/var.directive';
|
||||
import { PROCESS_PAGE_FOLLOW_LINKS } from '../process-page.resolver';
|
||||
import { getProcessListRoute } from '../process-page-routing.paths';
|
||||
@@ -75,7 +76,7 @@ import { ProcessDetailFieldComponent } from './process-detail-field/process-deta
|
||||
selector: 'ds-process-detail',
|
||||
templateUrl: './process-detail.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ProcessDetailFieldComponent, NgFor, VarDirective, ThemedFileDownloadLinkComponent, ThemedLoadingComponent, RouterLink, AsyncPipe, DatePipe, FileSizePipe, TranslateModule],
|
||||
imports: [NgIf, ProcessDetailFieldComponent, NgFor, VarDirective, ThemedFileDownloadLinkComponent, ThemedLoadingComponent, RouterLink, AsyncPipe, DatePipe, FileSizePipe, TranslateModule, HasNoValuePipe],
|
||||
})
|
||||
/**
|
||||
* A component displaying detailed information about a DSpace Process
|
||||
|
@@ -18,7 +18,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { ProcessParameter } from '../../../processes/process-parameter.model';
|
||||
import { ScriptParameter } from '../../../scripts/script-parameter.model';
|
||||
import { controlContainerFactory } from '../../process-form.component';
|
||||
import { controlContainerFactory } from '../../process-form-factory';
|
||||
import { ParameterValueInputComponent } from '../parameter-value-input/parameter-value-input.component';
|
||||
|
||||
/**
|
||||
|
@@ -12,7 +12,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { FileValueAccessorDirective } from '../../../../../shared/utils/file-value-accessor.directive';
|
||||
import { FileValidator } from '../../../../../shared/utils/require-file.validator';
|
||||
import { controlContainerFactory } from '../../../process-form.component';
|
||||
import { controlContainerFactory } from '../../../process-form-factory';
|
||||
import { ValueInputComponent } from '../value-input.component';
|
||||
|
||||
/**
|
||||
|
@@ -11,7 +11,7 @@ import {
|
||||
} from '@angular/forms';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { controlContainerFactory } from '../../../process-form.component';
|
||||
import { controlContainerFactory } from '../../../process-form-factory';
|
||||
import { ValueInputComponent } from '../value-input.component';
|
||||
|
||||
/**
|
||||
|
@@ -46,7 +46,7 @@ import {
|
||||
hasValue,
|
||||
} from '../../../shared/empty.util';
|
||||
import { Script } from '../../scripts/script.model';
|
||||
import { controlContainerFactory } from '../process-form.component';
|
||||
import { controlContainerFactory } from '../process-form-factory';
|
||||
|
||||
const SCRIPT_QUERY_PARAMETER = 'script';
|
||||
|
||||
|
@@ -17,6 +17,7 @@ import { LinkService } from '../../core/cache/builders/link.service';
|
||||
import { ProcessDataService } from '../../core/data/processes/process-data.service';
|
||||
import { getFirstSucceededRemoteDataPayload } from '../../core/shared/operators';
|
||||
import { followLink } from '../../shared/utils/follow-link-config.model';
|
||||
import { HasValuePipe } from '../../shared/utils/has-value.pipe';
|
||||
import { VarDirective } from '../../shared/utils/var.directive';
|
||||
import { ProcessFormComponent } from '../form/process-form.component';
|
||||
import { Process } from '../processes/process.model';
|
||||
@@ -30,7 +31,7 @@ import { Script } from '../scripts/script.model';
|
||||
templateUrl: './new-process.component.html',
|
||||
styleUrls: ['./new-process.component.scss'],
|
||||
standalone: true,
|
||||
imports: [NgIf, VarDirective, ProcessFormComponent, AsyncPipe],
|
||||
imports: [NgIf, VarDirective, ProcessFormComponent, AsyncPipe, HasValuePipe],
|
||||
})
|
||||
export class NewProcessComponent implements OnInit {
|
||||
/**
|
||||
|
@@ -43,6 +43,7 @@ import {
|
||||
} from '../../../../empty.util';
|
||||
import { ThemedLoadingComponent } from '../../../../loading/themed-loading.component';
|
||||
import { NotificationsService } from '../../../../notifications/notifications.service';
|
||||
import { HasNoValuePipe } from '../../../../utils/has-no-value.pipe';
|
||||
import { VarDirective } from '../../../../utils/var.directive';
|
||||
|
||||
/**
|
||||
@@ -60,6 +61,7 @@ import { VarDirective } from '../../../../utils/var.directive';
|
||||
NgIf,
|
||||
RouterLink,
|
||||
VarDirective,
|
||||
HasNoValuePipe,
|
||||
],
|
||||
standalone: true,
|
||||
})
|
||||
|
@@ -6,6 +6,7 @@ import {
|
||||
import {
|
||||
ChangeDetectorRef,
|
||||
Component,
|
||||
ElementRef,
|
||||
EventEmitter,
|
||||
HostListener,
|
||||
Input,
|
||||
@@ -102,6 +103,7 @@ export class EntityDropdownComponent implements OnInit, OnDestroy {
|
||||
*
|
||||
* @param {ChangeDetectorRef} changeDetectorRef
|
||||
* @param {EntityTypeDataService} entityTypeService
|
||||
* @param el
|
||||
*/
|
||||
constructor(
|
||||
private changeDetectorRef: ChangeDetectorRef,
|
||||
|
@@ -1,3 +1,7 @@
|
||||
import {
|
||||
AsyncPipe,
|
||||
NgIf,
|
||||
} from '@angular/common';
|
||||
import {
|
||||
Component,
|
||||
EventEmitter,
|
||||
@@ -5,6 +9,7 @@ import {
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import {
|
||||
map,
|
||||
@@ -22,7 +27,9 @@ import { Context } from '../../../../../../core/shared/context.model';
|
||||
import { PageInfo } from '../../../../../../core/shared/page-info.model';
|
||||
import { SearchConfigurationService } from '../../../../../../core/shared/search/search-configuration.service';
|
||||
import { SEARCH_CONFIG_SERVICE } from '../../../../../../my-dspace-page/my-dspace-configuration.service';
|
||||
import { ObjectCollectionComponent } from '../../../../../object-collection/object-collection.component';
|
||||
import { ListableObject } from '../../../../../object-collection/shared/listable-object.model';
|
||||
import { PageSizeSelectorComponent } from '../../../../../page-size-selector/page-size-selector.component';
|
||||
import { PaginationComponentOptions } from '../../../../../pagination/pagination-component-options.model';
|
||||
import { createSuccessfulRemoteDataObject } from '../../../../../remote-data.utils';
|
||||
import { PaginatedSearchOptions } from '../../../../../search/models/paginated-search-options.model';
|
||||
@@ -37,6 +44,14 @@ import { PaginatedSearchOptions } from '../../../../../search/models/paginated-s
|
||||
useClass: SearchConfigurationService,
|
||||
},
|
||||
],
|
||||
imports: [
|
||||
PageSizeSelectorComponent,
|
||||
ObjectCollectionComponent,
|
||||
AsyncPipe,
|
||||
NgIf,
|
||||
TranslateModule,
|
||||
],
|
||||
standalone: true,
|
||||
})
|
||||
|
||||
/**
|
||||
|
@@ -38,6 +38,7 @@ import { isEmpty } from '../empty.util';
|
||||
import { ObjectDetailComponent } from '../object-detail/object-detail.component';
|
||||
import { ObjectGridComponent } from '../object-grid/object-grid.component';
|
||||
import { ThemedObjectListComponent } from '../object-list/themed-object-list.component';
|
||||
import { ObjectTableComponent } from '../object-table/object-table.component';
|
||||
import { PaginationComponentOptions } from '../pagination/pagination-component-options.model';
|
||||
import { setPlaceHolderAttributes } from '../utils/object-list-utils';
|
||||
import { CollectionElementLinkType } from './collection-element-link.type';
|
||||
@@ -51,7 +52,7 @@ import { ListableObject } from './shared/listable-object.model';
|
||||
styleUrls: ['./object-collection.component.scss'],
|
||||
templateUrl: './object-collection.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedObjectListComponent, NgClass, ObjectGridComponent, ObjectDetailComponent, AsyncPipe],
|
||||
imports: [NgIf, ThemedObjectListComponent, NgClass, ObjectGridComponent, ObjectDetailComponent, AsyncPipe, ObjectTableComponent],
|
||||
})
|
||||
export class ObjectCollectionComponent implements OnInit {
|
||||
/**
|
||||
|
@@ -37,6 +37,10 @@ import { TabulatableObjectsDirective } from './tabulatable-objects.directive';
|
||||
@Component({
|
||||
selector: 'ds-tabulatable-objects-loader',
|
||||
templateUrl: './tabulatable-objects-loader.component.html',
|
||||
imports: [
|
||||
TabulatableObjectsDirective,
|
||||
],
|
||||
standalone: true,
|
||||
})
|
||||
/**
|
||||
* Component to load the matching component flagged by the tabulatableObjectsComponent decorator.
|
||||
|
@@ -5,6 +5,7 @@ import {
|
||||
|
||||
@Directive({
|
||||
selector: '[dsTabulatableObjects]',
|
||||
standalone: true,
|
||||
})
|
||||
/**
|
||||
* Directive used as a hook to know where to inject the dynamic listable object component
|
||||
|
@@ -9,6 +9,7 @@ import {
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
} from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import {
|
||||
BehaviorSubject,
|
||||
combineLatest,
|
||||
@@ -57,7 +58,7 @@ import { ThemedItemListPreviewComponent } from '../item-list-preview/themed-item
|
||||
styleUrls: ['../../search-result-list-element/search-result-list-element.component.scss'],
|
||||
templateUrl: './claimed-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedItemListPreviewComponent, NgClass, ClaimedTaskActionsComponent, AsyncPipe],
|
||||
imports: [NgIf, ThemedItemListPreviewComponent, NgClass, ClaimedTaskActionsComponent, AsyncPipe, TranslateModule],
|
||||
})
|
||||
@listableObjectComponent(ClaimedTaskSearchResult, ViewMode.ListElement)
|
||||
export class ClaimedSearchResultListElementComponent extends SearchResultListElementComponent<ClaimedTaskSearchResult, ClaimedTask> implements OnInit, OnDestroy {
|
||||
|
@@ -9,6 +9,7 @@ import {
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
} from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import {
|
||||
BehaviorSubject,
|
||||
combineLatest,
|
||||
@@ -60,7 +61,7 @@ import { ThemedItemListPreviewComponent } from '../item-list-preview/themed-item
|
||||
styleUrls: ['../../search-result-list-element/search-result-list-element.component.scss'],
|
||||
templateUrl: './pool-search-result-list-element.component.html',
|
||||
standalone: true,
|
||||
imports: [NgIf, ThemedItemListPreviewComponent, NgClass, PoolTaskActionsComponent, AsyncPipe],
|
||||
imports: [NgIf, ThemedItemListPreviewComponent, NgClass, PoolTaskActionsComponent, AsyncPipe, TranslateModule],
|
||||
})
|
||||
|
||||
@listableObjectComponent(PoolTaskSearchResult, ViewMode.ListElement)
|
||||
|
@@ -1,3 +1,4 @@
|
||||
import { NgIf } from '@angular/common';
|
||||
import {
|
||||
ChangeDetectionStrategy,
|
||||
Component,
|
||||
@@ -6,6 +7,7 @@ import {
|
||||
Output,
|
||||
ViewEncapsulation,
|
||||
} from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
|
||||
import {
|
||||
@@ -17,8 +19,12 @@ import { RemoteData } from '../../core/data/remote-data';
|
||||
import { Context } from '../../core/shared/context.model';
|
||||
import { ViewMode } from '../../core/shared/view-mode.model';
|
||||
import { fadeIn } from '../animations/fade';
|
||||
import { ErrorComponent } from '../error/error.component';
|
||||
import { ThemedLoadingComponent } from '../loading/themed-loading.component';
|
||||
import { CollectionElementLinkType } from '../object-collection/collection-element-link.type';
|
||||
import { ListableObject } from '../object-collection/shared/listable-object.model';
|
||||
import { TabulatableObjectsLoaderComponent } from '../object-collection/shared/tabulatable-objects/tabulatable-objects-loader.component';
|
||||
import { PaginationComponent } from '../pagination/pagination.component';
|
||||
import { PaginationComponentOptions } from '../pagination/pagination-component-options.model';
|
||||
|
||||
@Component({
|
||||
@@ -28,6 +34,15 @@ import { PaginationComponentOptions } from '../pagination/pagination-component-o
|
||||
templateUrl: './object-table.component.html',
|
||||
styleUrls: ['./object-table.component.scss'],
|
||||
animations: [fadeIn],
|
||||
imports: [
|
||||
PaginationComponent,
|
||||
NgIf,
|
||||
ThemedLoadingComponent,
|
||||
ErrorComponent,
|
||||
TranslateModule,
|
||||
TabulatableObjectsLoaderComponent,
|
||||
],
|
||||
standalone: true,
|
||||
})
|
||||
|
||||
/**
|
||||
|
@@ -44,6 +44,7 @@ import {
|
||||
hasValue,
|
||||
isNotEmpty,
|
||||
} from '../../empty.util';
|
||||
import { HasValuePipe } from '../../utils/has-value.pipe';
|
||||
|
||||
export interface ResourcePolicyCheckboxEntry {
|
||||
id: string;
|
||||
@@ -60,6 +61,7 @@ export interface ResourcePolicyCheckboxEntry {
|
||||
TranslateModule,
|
||||
FormsModule,
|
||||
NgIf,
|
||||
HasValuePipe,
|
||||
],
|
||||
standalone: true,
|
||||
})
|
||||
|
@@ -32,7 +32,7 @@ import { SearchFilterConfig } from '../../../../models/search-filter-config.mode
|
||||
import {
|
||||
RANGE_FILTER_MAX_SUFFIX,
|
||||
RANGE_FILTER_MIN_SUFFIX,
|
||||
} from '../../search-range-filter/search-range-filter.component';
|
||||
} from '../../search-range-filter/search-range-filter-constants';
|
||||
import { SearchFacetRangeOptionComponent } from './search-facet-range-option.component';
|
||||
|
||||
describe('SearchFacetRangeOptionComponent', () => {
|
||||
|
@@ -30,7 +30,7 @@ import { SearchFilterConfig } from '../../../../models/search-filter-config.mode
|
||||
import {
|
||||
RANGE_FILTER_MAX_SUFFIX,
|
||||
RANGE_FILTER_MIN_SUFFIX,
|
||||
} from '../../search-range-filter/search-range-filter.component';
|
||||
} from '../../search-range-filter/search-range-filter-constants';
|
||||
|
||||
const rangeDelimiter = '-';
|
||||
|
||||
|
@@ -8,7 +8,7 @@ import { hasNoValue } from '../empty.util';
|
||||
/**
|
||||
* Returns true if the passed value is null or undefined.
|
||||
*/
|
||||
@Pipe({ name: 'dsHasNoValue' })
|
||||
@Pipe({ standalone: true, name: 'dsHasNoValue' })
|
||||
export class HasNoValuePipe implements PipeTransform {
|
||||
transform(value: any): boolean {
|
||||
return hasNoValue(value);
|
||||
|
@@ -8,7 +8,7 @@ import { hasValue } from '../empty.util';
|
||||
/**
|
||||
* Returns true if the passed value is not null or undefined.
|
||||
*/
|
||||
@Pipe({ name: 'dsHasValue' })
|
||||
@Pipe({ standalone: true, name: 'dsHasValue' })
|
||||
export class HasValuePipe implements PipeTransform {
|
||||
transform(value: any): boolean {
|
||||
return hasValue(value);
|
||||
|
@@ -1,9 +1,17 @@
|
||||
import {
|
||||
AsyncPipe,
|
||||
NgForOf,
|
||||
NgIf,
|
||||
} from '@angular/common';
|
||||
import {
|
||||
ChangeDetectionStrategy,
|
||||
Component,
|
||||
Inject,
|
||||
} from '@angular/core';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import {
|
||||
TranslateModule,
|
||||
TranslateService,
|
||||
} from '@ngx-translate/core';
|
||||
import {
|
||||
Observable,
|
||||
of as observableOf,
|
||||
@@ -15,6 +23,7 @@ import { WorkspaceitemSectionDuplicatesObject } from '../../../core/submission/m
|
||||
import { URLCombiner } from '../../../core/url-combiner/url-combiner';
|
||||
import { getItemModuleRoute } from '../../../item-page/item-page-routing-paths';
|
||||
import { AlertType } from '../../../shared/alert/alert-type';
|
||||
import { VarDirective } from '../../../shared/utils/var.directive';
|
||||
import { SubmissionService } from '../../submission.service';
|
||||
import { SectionModelComponent } from '../models/section.model';
|
||||
import { SectionDataObject } from '../models/section-data.model';
|
||||
@@ -31,6 +40,14 @@ import { SectionsType } from '../sections-type';
|
||||
selector: 'ds-submission-section-duplicates',
|
||||
templateUrl: './section-duplicates.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Default,
|
||||
imports: [
|
||||
VarDirective,
|
||||
NgIf,
|
||||
AsyncPipe,
|
||||
TranslateModule,
|
||||
NgForOf,
|
||||
],
|
||||
standalone: true,
|
||||
})
|
||||
|
||||
@renderSectionFor(SectionsType.Duplicates)
|
||||
|
Reference in New Issue
Block a user