mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DURACOM-191] add deprecated in jsdocs for decorators
This commit is contained in:
@@ -15,7 +15,6 @@ import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap';
|
|||||||
import { BulkAccessBrowseComponent } from './bulk-access/browse/bulk-access-browse.component';
|
import { BulkAccessBrowseComponent } from './bulk-access/browse/bulk-access-browse.component';
|
||||||
import { BulkAccessSettingsComponent } from './bulk-access/settings/bulk-access-settings.component';
|
import { BulkAccessSettingsComponent } from './bulk-access/settings/bulk-access-settings.component';
|
||||||
import { SearchModule } from '../shared/search/search.module';
|
import { SearchModule } from '../shared/search/search.module';
|
||||||
import { AccessControlFormModule } from '../shared/access-control-form-container/access-control-form.module';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Condition for displaying error messages on email form field
|
* Condition for displaying error messages on email form field
|
||||||
@@ -32,7 +31,6 @@ export const ValidateEmailErrorStateMatcher: DynamicErrorMessagesMatcher =
|
|||||||
FormModule,
|
FormModule,
|
||||||
NgbAccordionModule,
|
NgbAccordionModule,
|
||||||
SearchModule,
|
SearchModule,
|
||||||
AccessControlFormModule,
|
|
||||||
EPeopleRegistryComponent,
|
EPeopleRegistryComponent,
|
||||||
EPersonFormComponent,
|
EPersonFormComponent,
|
||||||
GroupsRegistryComponent,
|
GroupsRegistryComponent,
|
||||||
|
@@ -40,6 +40,7 @@ export const BROWSE_BY_DECORATOR_MAP =
|
|||||||
* Decorator used for rendering Browse-By pages by type
|
* Decorator used for rendering Browse-By pages by type
|
||||||
* @param browseByType The type of page
|
* @param browseByType The type of page
|
||||||
* @param theme The optional theme for the component
|
* @param theme The optional theme for the component
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
export function rendersBrowseBy(browseByType: BrowseByDataType, theme = DEFAULT_THEME) {
|
export function rendersBrowseBy(browseByType: BrowseByDataType, theme = DEFAULT_THEME) {
|
||||||
return function decorator(component: any) {
|
return function decorator(component: any) {
|
||||||
|
@@ -16,7 +16,6 @@ import { StatisticsModule } from '../statistics/statistics.module';
|
|||||||
import { CollectionFormModule } from './collection-form/collection-form.module';
|
import { CollectionFormModule } from './collection-form/collection-form.module';
|
||||||
import { ThemedCollectionPageComponent } from './themed-collection-page.component';
|
import { ThemedCollectionPageComponent } from './themed-collection-page.component';
|
||||||
import { ComcolModule } from '../shared/comcol/comcol.module';
|
import { ComcolModule } from '../shared/comcol/comcol.module';
|
||||||
import { DsoSharedModule } from '../dso-shared/dso-shared.module';
|
|
||||||
import { DsoPageModule } from '../shared/dso-page/dso-page.module';
|
import { DsoPageModule } from '../shared/dso-page/dso-page.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -26,7 +25,6 @@ import { DsoPageModule } from '../shared/dso-page/dso-page.module';
|
|||||||
EditItemPageModule,
|
EditItemPageModule,
|
||||||
CollectionFormModule,
|
CollectionFormModule,
|
||||||
ComcolModule,
|
ComcolModule,
|
||||||
DsoSharedModule,
|
|
||||||
DsoPageModule,
|
DsoPageModule,
|
||||||
CollectionPageComponent,
|
CollectionPageComponent,
|
||||||
ThemedCollectionPageComponent,
|
ThemedCollectionPageComponent,
|
||||||
|
@@ -1,32 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { DsoEditMetadataComponent } from './dso-edit-metadata/dso-edit-metadata.component';
|
|
||||||
import { MetadataFieldSelectorComponent } from './dso-edit-metadata/metadata-field-selector/metadata-field-selector.component';
|
|
||||||
import { DsoEditMetadataFieldValuesComponent } from './dso-edit-metadata/dso-edit-metadata-field-values/dso-edit-metadata-field-values.component';
|
|
||||||
import { DsoEditMetadataValueComponent } from './dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component';
|
|
||||||
import { DsoEditMetadataHeadersComponent } from './dso-edit-metadata/dso-edit-metadata-headers/dso-edit-metadata-headers.component';
|
|
||||||
import { DsoEditMetadataValueHeadersComponent } from './dso-edit-metadata/dso-edit-metadata-value-headers/dso-edit-metadata-value-headers.component';
|
|
||||||
import { ThemedDsoEditMetadataComponent } from './dso-edit-metadata/themed-dso-edit-metadata.component';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
DsoEditMetadataComponent,
|
|
||||||
ThemedDsoEditMetadataComponent,
|
|
||||||
MetadataFieldSelectorComponent,
|
|
||||||
DsoEditMetadataFieldValuesComponent,
|
|
||||||
DsoEditMetadataValueComponent,
|
|
||||||
DsoEditMetadataHeadersComponent,
|
|
||||||
DsoEditMetadataValueHeadersComponent
|
|
||||||
],
|
|
||||||
exports: [
|
|
||||||
DsoEditMetadataComponent,
|
|
||||||
ThemedDsoEditMetadataComponent,
|
|
||||||
MetadataFieldSelectorComponent,
|
|
||||||
DsoEditMetadataFieldValuesComponent,
|
|
||||||
DsoEditMetadataValueComponent,
|
|
||||||
DsoEditMetadataHeadersComponent,
|
|
||||||
DsoEditMetadataValueHeadersComponent,
|
|
||||||
]
|
|
||||||
})
|
|
||||||
export class DsoSharedModule {
|
|
||||||
|
|
||||||
}
|
|
@@ -1,7 +1,7 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
import { NgbTooltipModule, NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
import { NgbModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
|
||||||
|
|
||||||
import { EditItemPageComponent } from './edit-item-page.component';
|
import { EditItemPageComponent } from './edit-item-page.component';
|
||||||
import { ItemStatusComponent } from './item-status/item-status.component';
|
import { ItemStatusComponent } from './item-status/item-status.component';
|
||||||
@@ -18,14 +18,22 @@ import { SearchPageModule } from '../../search-page/search-page.module';
|
|||||||
import { ItemCollectionMapperComponent } from './item-collection-mapper/item-collection-mapper.component';
|
import { ItemCollectionMapperComponent } from './item-collection-mapper/item-collection-mapper.component';
|
||||||
import { ItemRelationshipsComponent } from './item-relationships/item-relationships.component';
|
import { ItemRelationshipsComponent } from './item-relationships/item-relationships.component';
|
||||||
import { EditRelationshipComponent } from './item-relationships/edit-relationship/edit-relationship.component';
|
import { EditRelationshipComponent } from './item-relationships/edit-relationship/edit-relationship.component';
|
||||||
import { EditRelationshipListComponent } from './item-relationships/edit-relationship-list/edit-relationship-list.component';
|
import {
|
||||||
|
EditRelationshipListComponent
|
||||||
|
} from './item-relationships/edit-relationship-list/edit-relationship-list.component';
|
||||||
import { AbstractItemUpdateComponent } from './abstract-item-update/abstract-item-update.component';
|
import { AbstractItemUpdateComponent } from './abstract-item-update/abstract-item-update.component';
|
||||||
import { ItemMoveComponent } from './item-move/item-move.component';
|
import { ItemMoveComponent } from './item-move/item-move.component';
|
||||||
import { ItemEditBitstreamBundleComponent } from './item-bitstreams/item-edit-bitstream-bundle/item-edit-bitstream-bundle.component';
|
import {
|
||||||
|
ItemEditBitstreamBundleComponent
|
||||||
|
} from './item-bitstreams/item-edit-bitstream-bundle/item-edit-bitstream-bundle.component';
|
||||||
import { BundleDataService } from '../../core/data/bundle-data.service';
|
import { BundleDataService } from '../../core/data/bundle-data.service';
|
||||||
import { DragDropModule } from '@angular/cdk/drag-drop';
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
||||||
import { ItemEditBitstreamDragHandleComponent } from './item-bitstreams/item-edit-bitstream-drag-handle/item-edit-bitstream-drag-handle.component';
|
import {
|
||||||
import { PaginatedDragAndDropBitstreamListComponent } from './item-bitstreams/item-edit-bitstream-bundle/paginated-drag-and-drop-bitstream-list/paginated-drag-and-drop-bitstream-list.component';
|
ItemEditBitstreamDragHandleComponent
|
||||||
|
} from './item-bitstreams/item-edit-bitstream-drag-handle/item-edit-bitstream-drag-handle.component';
|
||||||
|
import {
|
||||||
|
PaginatedDragAndDropBitstreamListComponent
|
||||||
|
} from './item-bitstreams/item-edit-bitstream-bundle/paginated-drag-and-drop-bitstream-list/paginated-drag-and-drop-bitstream-list.component';
|
||||||
import { VirtualMetadataComponent } from './virtual-metadata/virtual-metadata.component';
|
import { VirtualMetadataComponent } from './virtual-metadata/virtual-metadata.component';
|
||||||
import { ItemVersionHistoryComponent } from './item-version-history/item-version-history.component';
|
import { ItemVersionHistoryComponent } from './item-version-history/item-version-history.component';
|
||||||
import { ItemAuthorizationsComponent } from './item-authorizations/item-authorizations.component';
|
import { ItemAuthorizationsComponent } from './item-authorizations/item-authorizations.component';
|
||||||
@@ -35,15 +43,10 @@ import { ItemVersionsModule } from '../versions/item-versions.module';
|
|||||||
import { IdentifierDataService } from '../../core/data/identifier-data.service';
|
import { IdentifierDataService } from '../../core/data/identifier-data.service';
|
||||||
import { IdentifierDataComponent } from '../../shared/object-list/identifier-data/identifier-data.component';
|
import { IdentifierDataComponent } from '../../shared/object-list/identifier-data/identifier-data.component';
|
||||||
import { ItemRegisterDoiComponent } from './item-register-doi/item-register-doi.component';
|
import { ItemRegisterDoiComponent } from './item-register-doi/item-register-doi.component';
|
||||||
import { DsoSharedModule } from '../../dso-shared/dso-shared.module';
|
|
||||||
import { ItemCurateComponent } from './item-curate/item-curate.component';
|
import { ItemCurateComponent } from './item-curate/item-curate.component';
|
||||||
import { ThemedItemStatusComponent } from './item-status/themed-item-status.component';
|
import { ThemedItemStatusComponent } from './item-status/themed-item-status.component';
|
||||||
|
|
||||||
import { ItemAccessControlComponent } from './item-access-control/item-access-control.component';
|
import { ItemAccessControlComponent } from './item-access-control/item-access-control.component';
|
||||||
import { ResultsBackButtonModule } from '../../shared/results-back-button/results-back-button.module';
|
|
||||||
import {
|
|
||||||
AccessControlFormModule
|
|
||||||
} from '../../shared/access-control-form-container/access-control-form.module';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module that contains all components related to the Edit Item page administrator functionality
|
* Module that contains all components related to the Edit Item page administrator functionality
|
||||||
@@ -57,9 +60,6 @@ import {
|
|||||||
ResourcePoliciesModule,
|
ResourcePoliciesModule,
|
||||||
NgbModule,
|
NgbModule,
|
||||||
ItemVersionsModule,
|
ItemVersionsModule,
|
||||||
DsoSharedModule,
|
|
||||||
ResultsBackButtonModule,
|
|
||||||
AccessControlFormModule,
|
|
||||||
EditItemPageComponent,
|
EditItemPageComponent,
|
||||||
ItemOperationComponent,
|
ItemOperationComponent,
|
||||||
AbstractSimpleItemActionComponent,
|
AbstractSimpleItemActionComponent,
|
||||||
|
@@ -43,7 +43,6 @@ import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap';
|
|||||||
import { OrcidSyncSettingsComponent } from './orcid-page/orcid-sync-settings/orcid-sync-settings.component';
|
import { OrcidSyncSettingsComponent } from './orcid-page/orcid-sync-settings/orcid-sync-settings.component';
|
||||||
import { OrcidQueueComponent } from './orcid-page/orcid-queue/orcid-queue.component';
|
import { OrcidQueueComponent } from './orcid-page/orcid-queue/orcid-queue.component';
|
||||||
import { UploadModule } from '../shared/upload/upload.module';
|
import { UploadModule } from '../shared/upload/upload.module';
|
||||||
import { ResultsBackButtonModule } from '../shared/results-back-button/results-back-button.module';
|
|
||||||
import { ItemAlertsComponent } from './alerts/item-alerts.component';
|
import { ItemAlertsComponent } from './alerts/item-alerts.component';
|
||||||
import { ItemVersionsModule } from './versions/item-versions.module';
|
import { ItemVersionsModule } from './versions/item-versions.module';
|
||||||
import {
|
import {
|
||||||
@@ -103,7 +102,6 @@ const DECLARATIONS = [
|
|||||||
StatisticsModule.forRoot(),
|
StatisticsModule.forRoot(),
|
||||||
NgxGalleryModule,
|
NgxGalleryModule,
|
||||||
NgbAccordionModule,
|
NgbAccordionModule,
|
||||||
ResultsBackButtonModule,
|
|
||||||
UploadModule,
|
UploadModule,
|
||||||
DsoPageModule,
|
DsoPageModule,
|
||||||
...DECLARATIONS
|
...DECLARATIONS
|
||||||
|
@@ -16,7 +16,6 @@ import {UiSwitchModule} from 'ngx-ui-switch';
|
|||||||
import {
|
import {
|
||||||
ITEM_ACCESS_CONTROL_SELECT_BITSTREAMS_LIST_ID
|
ITEM_ACCESS_CONTROL_SELECT_BITSTREAMS_LIST_ID
|
||||||
} from './item-access-control-select-bitstreams-modal/item-access-control-select-bitstreams-modal.component';
|
} from './item-access-control-select-bitstreams-modal/item-access-control-select-bitstreams-modal.component';
|
||||||
import {AccessControlFormModule} from './access-control-form.module';
|
|
||||||
|
|
||||||
|
|
||||||
describe('AccessControlFormContainerComponent', () => {
|
describe('AccessControlFormContainerComponent', () => {
|
||||||
@@ -31,7 +30,6 @@ describe('AccessControlFormContainerComponent', () => {
|
|||||||
imports: [CommonModule,
|
imports: [CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
SharedBrowseByModule,
|
SharedBrowseByModule,
|
||||||
AccessControlFormModule,
|
|
||||||
NgbDatepickerModule,
|
NgbDatepickerModule,
|
||||||
UiSwitchModule]
|
UiSwitchModule]
|
||||||
})
|
})
|
||||||
@@ -65,7 +63,6 @@ describe('AccessControlFormContainerComponent', () => {
|
|||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
SharedBrowseByModule,
|
SharedBrowseByModule,
|
||||||
AccessControlFormModule,
|
|
||||||
TranslateModule.forRoot(),
|
TranslateModule.forRoot(),
|
||||||
NgbDatepickerModule,
|
NgbDatepickerModule,
|
||||||
UiSwitchModule,
|
UiSwitchModule,
|
||||||
|
@@ -1,28 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {CommonModule} from '@angular/common';
|
|
||||||
|
|
||||||
import {TranslateModule} from '@ngx-translate/core';
|
|
||||||
import {UiSwitchModule} from 'ngx-ui-switch';
|
|
||||||
|
|
||||||
import {AccessControlArrayFormComponent} from './access-control-array-form/access-control-array-form.component';
|
|
||||||
import {
|
|
||||||
ItemAccessControlSelectBitstreamsModalComponent
|
|
||||||
} from './item-access-control-select-bitstreams-modal/item-access-control-select-bitstreams-modal.component';
|
|
||||||
import {AccessControlFormContainerComponent} from './access-control-form-container.component';
|
|
||||||
import {NgbDatepickerModule} from '@ng-bootstrap/ng-bootstrap';
|
|
||||||
import {ToDatePipe} from './access-control-array-form/to-date.pipe';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
CommonModule,
|
|
||||||
TranslateModule,
|
|
||||||
UiSwitchModule,
|
|
||||||
NgbDatepickerModule,
|
|
||||||
AccessControlFormContainerComponent,
|
|
||||||
AccessControlArrayFormComponent,
|
|
||||||
ItemAccessControlSelectBitstreamsModalComponent,
|
|
||||||
ToDatePipe
|
|
||||||
],
|
|
||||||
exports: [AccessControlFormContainerComponent, AccessControlArrayFormComponent]
|
|
||||||
})
|
|
||||||
export class AccessControlFormModule {}
|
|
@@ -2,7 +2,6 @@ import { NgModule } from '@angular/core';
|
|||||||
import { BrowseByComponent } from './browse-by.component';
|
import { BrowseByComponent } from './browse-by.component';
|
||||||
import { ThemedBrowseByComponent } from './themed-browse-by.component';
|
import { ThemedBrowseByComponent } from './themed-browse-by.component';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { ResultsBackButtonModule } from '../results-back-button/results-back-button.module';
|
|
||||||
|
|
||||||
const DECLARATIONS = [
|
const DECLARATIONS = [
|
||||||
BrowseByComponent,
|
BrowseByComponent,
|
||||||
@@ -11,9 +10,8 @@ const DECLARATIONS = [
|
|||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
ResultsBackButtonModule,
|
|
||||||
CommonModule,
|
CommonModule,
|
||||||
...DECLARATIONS,
|
...DECLARATIONS
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
...DECLARATIONS,
|
...DECLARATIONS,
|
||||||
|
@@ -13,6 +13,9 @@ export const AUTH_METHOD_FOR_DECORATOR_MAP = new Map<AuthMethodType, AuthMethodT
|
|||||||
[AuthMethodType.Orcid, LogInExternalProviderComponent]
|
[AuthMethodType.Orcid, LogInExternalProviderComponent]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
export function renderAuthMethodFor(authMethodType: AuthMethodType) {
|
export function renderAuthMethodFor(authMethodType: AuthMethodType) {
|
||||||
return function decorator(objectElement: any) {
|
return function decorator(objectElement: any) {
|
||||||
if (!objectElement) {
|
if (!objectElement) {
|
||||||
|
@@ -14,6 +14,7 @@ menuMenuItemComponentMap.set(MenuItemType.TEXT, TextMenuItemComponent);
|
|||||||
/**
|
/**
|
||||||
* Decorator function to link a MenuItemType to a Component
|
* Decorator function to link a MenuItemType to a Component
|
||||||
* @param {MenuItemType} type The MenuItemType of the MenuSection's model
|
* @param {MenuItemType} type The MenuItemType of the MenuSection's model
|
||||||
|
* @deprecated
|
||||||
* @returns {(sectionComponent: GenericContructor) => void}
|
* @returns {(sectionComponent: GenericContructor) => void}
|
||||||
*/
|
*/
|
||||||
export function rendersMenuItemForType(type: MenuItemType) {
|
export function rendersMenuItemForType(type: MenuItemType) {
|
||||||
|
@@ -38,6 +38,7 @@ menuComponentMap.get(MenuID.DSO_EDIT).get(true).set(DEFAULT_THEME, DsoEditMenuEx
|
|||||||
* Decorator function to render a MenuSection for a menu
|
* Decorator function to render a MenuSection for a menu
|
||||||
* @param {MenuID} menuID The ID of the Menu in which the section is rendered
|
* @param {MenuID} menuID The ID of the Menu in which the section is rendered
|
||||||
* @param {boolean} expandable True when the section should be expandable, false when if should not
|
* @param {boolean} expandable True when the section should be expandable, false when if should not
|
||||||
|
* @deprecated
|
||||||
* @returns {(menuSectionWrapperComponent: GenericConstructor) => void}
|
* @returns {(menuSectionWrapperComponent: GenericConstructor) => void}
|
||||||
*/
|
*/
|
||||||
export function rendersSectionForMenu(menuID: MenuID, expandable: boolean, theme = DEFAULT_THEME) {
|
export function rendersSectionForMenu(menuID: MenuID, expandable: boolean, theme = DEFAULT_THEME) {
|
||||||
|
@@ -74,6 +74,7 @@ export const METADATA_REPRESENTATION_COMPONENT_DECORATOR_MAP =
|
|||||||
* @param mdRepresentationType The metadata representation type the component represents
|
* @param mdRepresentationType The metadata representation type the component represents
|
||||||
* @param context The optional context the component represents
|
* @param context The optional context the component represents
|
||||||
* @param theme The optional theme for the component
|
* @param theme The optional theme for the component
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
export function metadataRepresentationComponent(entityType: string, mdRepresentationType: MetadataRepresentationType, context: Context = DEFAULT_CONTEXT, theme = DEFAULT_THEME) {
|
export function metadataRepresentationComponent(entityType: string, mdRepresentationType: MetadataRepresentationType, context: Context = DEFAULT_CONTEXT, theme = DEFAULT_THEME) {
|
||||||
return function decorator(component: any) {
|
return function decorator(component: any) {
|
||||||
|
@@ -75,6 +75,7 @@ export function rendersWorkflowTaskOption(option: string) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Decorator used for rendering AdvancedClaimedTaskActions pages by option type
|
* Decorator used for rendering AdvancedClaimedTaskActions pages by option type
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
export function rendersAdvancedWorkflowTaskOption(option: string) {
|
export function rendersAdvancedWorkflowTaskOption(option: string) {
|
||||||
return function decorator(component: any) {
|
return function decorator(component: any) {
|
||||||
|
@@ -1,20 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { CommonModule } from '@angular/common';
|
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { ResultsBackButtonComponent } from './results-back-button.component';
|
|
||||||
import { ThemedResultsBackButtonComponent } from './themed-results-back-button.component';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
CommonModule,
|
|
||||||
TranslateModule,
|
|
||||||
ResultsBackButtonComponent,
|
|
||||||
ThemedResultsBackButtonComponent
|
|
||||||
],
|
|
||||||
exports: [
|
|
||||||
ThemedResultsBackButtonComponent
|
|
||||||
]
|
|
||||||
})
|
|
||||||
export class ResultsBackButtonModule {
|
|
||||||
|
|
||||||
}
|
|
@@ -19,6 +19,7 @@ filterTypeMap.set(FilterType.range, SearchRangeFilterComponent);
|
|||||||
/**
|
/**
|
||||||
* Sets the mapping for a facet component in relation to a filter type
|
* Sets the mapping for a facet component in relation to a filter type
|
||||||
* @param {FilterType} type The type for which the matching component is mapped
|
* @param {FilterType} type The type for which the matching component is mapped
|
||||||
|
* @deprecated
|
||||||
* @returns Decorator function that performs the actual mapping on initialization of the facet component
|
* @returns Decorator function that performs the actual mapping on initialization of the facet component
|
||||||
*/
|
*/
|
||||||
export function renderFacetFor(type: FilterType) {
|
export function renderFacetFor(type: FilterType) {
|
||||||
|
@@ -18,6 +18,7 @@ export const STARTS_WITH_DECORATOR_MAP = new Map<StartsWithType, StartsWithCompo
|
|||||||
/**
|
/**
|
||||||
* Fetch a decorator to render a StartsWith component for type
|
* Fetch a decorator to render a StartsWith component for type
|
||||||
* @param type
|
* @param type
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
export function renderStartsWithFor(type: StartsWithType) {
|
export function renderStartsWithFor(type: StartsWithType) {
|
||||||
return function decorator(objectElement: any) {
|
return function decorator(objectElement: any) {
|
||||||
|
@@ -17,6 +17,9 @@ submissionSectionsMap.set(SectionsType.Upload, SubmissionSectionUploadComponent)
|
|||||||
submissionSectionsMap.set(SectionsType.SubmissionForm, SubmissionSectionFormComponent);
|
submissionSectionsMap.set(SectionsType.SubmissionForm, SubmissionSectionFormComponent);
|
||||||
submissionSectionsMap.set(SectionsType.Identifiers, SubmissionSectionIdentifiersComponent);
|
submissionSectionsMap.set(SectionsType.Identifiers, SubmissionSectionIdentifiersComponent);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
export function renderSectionFor(sectionType: SectionsType) {
|
export function renderSectionFor(sectionType: SectionsType) {
|
||||||
return function decorator(objectElement: any) {
|
return function decorator(objectElement: any) {
|
||||||
if (!objectElement) {
|
if (!objectElement) {
|
||||||
|
@@ -37,11 +37,15 @@ import {
|
|||||||
import {
|
import {
|
||||||
EditItemSelectorComponent
|
EditItemSelectorComponent
|
||||||
} from './app/shared/dso-selector/modal-wrappers/edit-item-selector/edit-item-selector.component';
|
} from './app/shared/dso-selector/modal-wrappers/edit-item-selector/edit-item-selector.component';
|
||||||
import { CommunityListElementComponent } from './app/shared/object-list/community-list-element/community-list-element.component';
|
import {
|
||||||
import { CollectionListElementComponent} from './app/shared/object-list/collection-list-element/collection-list-element.component';
|
CommunityListElementComponent
|
||||||
|
} from './app/shared/object-list/community-list-element/community-list-element.component';
|
||||||
|
import {
|
||||||
|
CollectionListElementComponent
|
||||||
|
} from './app/shared/object-list/collection-list-element/collection-list-element.component';
|
||||||
import { CollectionDropdownComponent } from './app/shared/collection-dropdown/collection-dropdown.component';
|
import { CollectionDropdownComponent } from './app/shared/collection-dropdown/collection-dropdown.component';
|
||||||
import { SharedBrowseByModule } from '../../app/shared/browse-by/shared-browse-by.module';
|
import { SharedBrowseByModule } from '../../app/shared/browse-by/shared-browse-by.module';
|
||||||
import { ResultsBackButtonModule } from '../../app/shared/results-back-button/results-back-button.module';
|
|
||||||
import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
|
import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
|
||||||
import { FileDownloadLinkComponent } from './app/shared/file-download-link/file-download-link.component';
|
import { FileDownloadLinkComponent } from './app/shared/file-download-link/file-download-link.component';
|
||||||
import { StartsWithDateComponent } from './app/shared/starts-with/date/starts-with-date.component';
|
import { StartsWithDateComponent } from './app/shared/starts-with/date/starts-with-date.component';
|
||||||
@@ -52,9 +56,13 @@ import {
|
|||||||
import {
|
import {
|
||||||
ItemSearchResultListElementComponent
|
ItemSearchResultListElementComponent
|
||||||
} from './app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component';
|
} from './app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component';
|
||||||
import { TopLevelCommunityListComponent } from './app/home-page/top-level-community-list/top-level-community-list.component';
|
import {
|
||||||
|
TopLevelCommunityListComponent
|
||||||
|
} from './app/home-page/top-level-community-list/top-level-community-list.component';
|
||||||
import { LogInComponent } from './app/shared/log-in/log-in.component';
|
import { LogInComponent } from './app/shared/log-in/log-in.component';
|
||||||
import { BrowseEntryListElementComponent } from './app/shared/object-list/browse-entry-list-element/browse-entry-list-element.component';
|
import {
|
||||||
|
BrowseEntryListElementComponent
|
||||||
|
} from './app/shared/object-list/browse-entry-list-element/browse-entry-list-element.component';
|
||||||
import { PersonComponent } from './app/entity-groups/research-entities/item-pages/person/person.component';
|
import { PersonComponent } from './app/entity-groups/research-entities/item-pages/person/person.component';
|
||||||
import { LangSwitchComponent } from './app/shared/lang-switch/lang-switch.component';
|
import { LangSwitchComponent } from './app/shared/lang-switch/lang-switch.component';
|
||||||
|
|
||||||
@@ -106,7 +114,6 @@ const DECLARATIONS = [
|
|||||||
RootModule,
|
RootModule,
|
||||||
NavbarModule,
|
NavbarModule,
|
||||||
SharedBrowseByModule,
|
SharedBrowseByModule,
|
||||||
ResultsBackButtonModule,
|
|
||||||
ItemPageModule,
|
ItemPageModule,
|
||||||
ItemSharedModule,
|
ItemSharedModule,
|
||||||
DsoPageModule,
|
DsoPageModule,
|
||||||
|
@@ -110,7 +110,6 @@ import {
|
|||||||
ExternalSourceEntryImportModalComponent
|
ExternalSourceEntryImportModalComponent
|
||||||
} from './app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/external-source-tab/external-source-entry-import-modal/external-source-entry-import-modal.component';
|
} from './app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/external-source-tab/external-source-entry-import-modal/external-source-entry-import-modal.component';
|
||||||
import { SharedBrowseByModule } from '../../app/shared/browse-by/shared-browse-by.module';
|
import { SharedBrowseByModule } from '../../app/shared/browse-by/shared-browse-by.module';
|
||||||
import { ResultsBackButtonModule } from '../../app/shared/results-back-button/results-back-button.module';
|
|
||||||
import { ItemVersionsModule } from '../../app/item-page/versions/item-versions.module';
|
import { ItemVersionsModule } from '../../app/item-page/versions/item-versions.module';
|
||||||
import { ItemSharedModule } from '../../app/item-page/item-shared.module';
|
import { ItemSharedModule } from '../../app/item-page/item-shared.module';
|
||||||
import { SearchFiltersComponent } from './app/shared/search/search-filters/search-filters.component';
|
import { SearchFiltersComponent } from './app/shared/search/search-filters/search-filters.component';
|
||||||
@@ -126,7 +125,6 @@ import {
|
|||||||
} from './app/shared/object-collection/shared/badges/access-status-badge/access-status-badge.component';
|
} from './app/shared/object-collection/shared/badges/access-status-badge/access-status-badge.component';
|
||||||
import { ResultsBackButtonComponent } from './app/shared/results-back-button/results-back-button.component';
|
import { ResultsBackButtonComponent } from './app/shared/results-back-button/results-back-button.component';
|
||||||
import { DsoEditMetadataComponent } from './app/dso-shared/dso-edit-metadata/dso-edit-metadata.component';
|
import { DsoEditMetadataComponent } from './app/dso-shared/dso-edit-metadata/dso-edit-metadata.component';
|
||||||
import { DsoSharedModule } from '../../app/dso-shared/dso-shared.module';
|
|
||||||
import { SystemWideAlertModule } from '../../app/system-wide-alert/system-wide-alert.module';
|
import { SystemWideAlertModule } from '../../app/system-wide-alert/system-wide-alert.module';
|
||||||
import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
|
import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
|
||||||
import { ItemAlertsComponent } from './app/item-page/alerts/item-alerts.component';
|
import { ItemAlertsComponent } from './app/item-page/alerts/item-alerts.component';
|
||||||
@@ -284,7 +282,6 @@ const DECLARATIONS = [
|
|||||||
ScrollToModule,
|
ScrollToModule,
|
||||||
SearchPageModule,
|
SearchPageModule,
|
||||||
SharedBrowseByModule,
|
SharedBrowseByModule,
|
||||||
ResultsBackButtonModule,
|
|
||||||
StatisticsModule,
|
StatisticsModule,
|
||||||
StatisticsPageModule,
|
StatisticsPageModule,
|
||||||
StoreModule,
|
StoreModule,
|
||||||
@@ -296,7 +293,6 @@ const DECLARATIONS = [
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
ResourcePoliciesModule,
|
ResourcePoliciesModule,
|
||||||
ComcolModule,
|
ComcolModule,
|
||||||
DsoSharedModule,
|
|
||||||
SystemWideAlertModule,
|
SystemWideAlertModule,
|
||||||
NgxGalleryModule,
|
NgxGalleryModule,
|
||||||
FormModule,
|
FormModule,
|
||||||
|
@@ -7,7 +7,6 @@ import { HeaderNavbarWrapperComponent } from './app/header-nav-wrapper/header-na
|
|||||||
import { RootModule } from '../../app/root.module';
|
import { RootModule } from '../../app/root.module';
|
||||||
import { NavbarModule } from '../../app/navbar/navbar.module';
|
import { NavbarModule } from '../../app/navbar/navbar.module';
|
||||||
import { SharedBrowseByModule } from '../../app/shared/browse-by/shared-browse-by.module';
|
import { SharedBrowseByModule } from '../../app/shared/browse-by/shared-browse-by.module';
|
||||||
import { ResultsBackButtonModule } from '../../app/shared/results-back-button/results-back-button.module';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
|
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
|
||||||
@@ -27,7 +26,6 @@ const DECLARATIONS = [
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
SharedBrowseByModule,
|
SharedBrowseByModule,
|
||||||
ResultsBackButtonModule,
|
|
||||||
RootModule,
|
RootModule,
|
||||||
NavbarModule,
|
NavbarModule,
|
||||||
...DECLARATIONS
|
...DECLARATIONS
|
||||||
|
@@ -30,7 +30,6 @@ import { ResourcePoliciesModule } from '../../app/shared/resource-policies/resou
|
|||||||
import { ComcolModule } from '../../app/shared/comcol/comcol.module';
|
import { ComcolModule } from '../../app/shared/comcol/comcol.module';
|
||||||
import { RootModule } from '../../app/root.module';
|
import { RootModule } from '../../app/root.module';
|
||||||
import { BrowseByPageModule } from '../../app/browse-by/browse-by-page.module';
|
import { BrowseByPageModule } from '../../app/browse-by/browse-by-page.module';
|
||||||
import { ResultsBackButtonModule } from '../../app/shared/results-back-button/results-back-button.module';
|
|
||||||
import { SharedBrowseByModule } from '../../app/shared/browse-by/shared-browse-by.module';
|
import { SharedBrowseByModule } from '../../app/shared/browse-by/shared-browse-by.module';
|
||||||
import { ItemVersionsModule } from '../../app/item-page/versions/item-versions.module';
|
import { ItemVersionsModule } from '../../app/item-page/versions/item-versions.module';
|
||||||
import { ItemSharedModule } from 'src/app/item-page/item-shared.module';
|
import { ItemSharedModule } from 'src/app/item-page/item-shared.module';
|
||||||
@@ -43,7 +42,6 @@ const DECLARATIONS = [
|
|||||||
AppModule,
|
AppModule,
|
||||||
RootModule,
|
RootModule,
|
||||||
BrowseByPageModule,
|
BrowseByPageModule,
|
||||||
ResultsBackButtonModule,
|
|
||||||
CollectionFormModule,
|
CollectionFormModule,
|
||||||
CollectionPageModule,
|
CollectionPageModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
@@ -75,7 +73,7 @@ const DECLARATIONS = [
|
|||||||
SearchModule,
|
SearchModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ResourcePoliciesModule,
|
ResourcePoliciesModule,
|
||||||
ComcolModule,
|
ComcolModule
|
||||||
],
|
],
|
||||||
declarations: DECLARATIONS,
|
declarations: DECLARATIONS,
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user