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