diff --git a/src/app/main/action/message/message.component.ts b/src/app/main/action/message/message.component.ts index 90083f5c5c..401b6e8d79 100644 --- a/src/app/main/action/message/message.component.ts +++ b/src/app/main/action/message/message.component.ts @@ -5,8 +5,7 @@ import { ApiResponseError } from '@dasch-swiss/dsp-js'; import { StatusMsg } from 'src/assets/http/statusMsg'; /** - * @ignore - * Data type for messages + * data type for messages */ export class AppMessageData { status: number; @@ -19,9 +18,6 @@ export class AppMessageData { url?: string; } -/** - * @deprecated Will be replaced by notification service with material snackbar - */ @Component({ selector: 'app-message', templateUrl: './message.component.html', @@ -50,20 +46,6 @@ export class MessageComponent implements OnInit { */ @Input() size: 'short' | 'medium' | 'long' = 'long'; - /** - * @deprecated - * @param short Show short message only - * A small message box to notify the user an event has occured. - */ - @Input() short = (this.size === 'short'); - - /** - * @deprecated - * @param medium Show medium message - * A message box without footnote or links. - */ - @Input() medium = (this.size === 'medium'); - /** * @param duration How long should the message be displayed */ @@ -79,7 +61,7 @@ export class MessageComponent implements OnInit { disable = false; /** - * @ignore + * default link list, which will be used in message content to give a user some possibilities * what he can do in the case of an error * @@ -113,12 +95,6 @@ export class MessageComponent implements OnInit { ) { } ngOnInit() { - // temporary solution as long we have to support the deprecated inputs "short" and "medium" - if (this.short || this.medium) { - this.size = (this.short ? 'short' : 'medium'); - } - - if (this.apiError) { this.message.status = this.apiError.status; } diff --git a/src/app/main/action/sort-button/sort-button.component.ts b/src/app/main/action/sort-button/sort-button.component.ts index 7dc60a0758..2c40106ed9 100644 --- a/src/app/main/action/sort-button/sort-button.component.ts +++ b/src/app/main/action/sort-button/sort-button.component.ts @@ -68,8 +68,6 @@ export class SortButtonComponent implements OnInit { } /** - * @ignore - * * @param key a string to sort by */ sortBy(key: string) { diff --git a/src/app/main/action/string-literal-input/string-literal-input.component.ts b/src/app/main/action/string-literal-input/string-literal-input.component.ts index 70ad2bb12f..3b0d399efc 100644 --- a/src/app/main/action/string-literal-input/string-literal-input.component.ts +++ b/src/app/main/action/string-literal-input/string-literal-input.component.ts @@ -133,8 +133,6 @@ export class StringLiteralInputComponent implements OnInit, OnChanges { } /** - * @ignore - * * emit data to parent on any change on the input field */ onValueChanged() { @@ -157,10 +155,8 @@ export class StringLiteralInputComponent implements OnInit, OnChanges { } /** - * @ignore - * - * Set the language after selecting; - * This updates the array of StringLiterals: adds item with the selected language if it doesn't exist + * set the language after selecting; + * this updates the array of StringLiterals: adds item with the selected language if it doesn't exist */ setLanguage(lang: string) { @@ -176,9 +172,7 @@ export class StringLiteralInputComponent implements OnInit, OnChanges { } /** - * @ignore - * - * Switch focus to input field after selecting a language + * switch focus to input field after selecting a language */ switchFocus() { // close the menu @@ -193,9 +187,7 @@ export class StringLiteralInputComponent implements OnInit, OnChanges { } /** - * @ignore - * - * Switch focus to input field after closing the menu by clicking anywhere outside of it + * switch focus to input field after closing the menu by clicking anywhere outside of it */ menuClosed() { if (!this.disabled) { @@ -205,9 +197,7 @@ export class StringLiteralInputComponent implements OnInit, OnChanges { } /** - * @ignore - * - * Set the value in the input field + * set the value in the input field */ updateFormField(value: string) { if (!value) { @@ -220,9 +210,7 @@ export class StringLiteralInputComponent implements OnInit, OnChanges { } /** - * @ignore - * - * Update the array of StringLiterals depending on value / empty value add or remove item from array. + * update the array of StringLiterals depending on value / empty value add or remove item from array. */ updateStringLiterals(lang: string, value?: string) { const index = this.value.findIndex(i => i.language === lang); @@ -249,9 +237,7 @@ export class StringLiteralInputComponent implements OnInit, OnChanges { } /** - * @ignore - * - * In case of strange array of StringLiterals, this method will reset to a API-conform array. This means an array without empty values. + * in case of strange array of StringLiterals, this method will reset to a API-conform array. This means an array without empty values. */ resetValues() { const length: number = this.value.length; @@ -277,9 +263,7 @@ export class StringLiteralInputComponent implements OnInit, OnChanges { } /** - * @ignore - * - * Get the value from array of StringLiterals for the selected language + * get the value from array of StringLiterals for the selected language */ getValueFromStringLiteral(lang: string): string { // get index for this language diff --git a/src/app/main/directive/admin-image/admin-image.config.ts b/src/app/main/directive/admin-image/admin-image.config.ts index d0bb349f0e..fe4ab5d245 100644 --- a/src/app/main/directive/admin-image/admin-image.config.ts +++ b/src/app/main/directive/admin-image/admin-image.config.ts @@ -1,7 +1,4 @@ /* eslint-disable max-len */ -/** - * @ignore - */ export class AdminImageConfig { /** diff --git a/src/app/main/directive/admin-image/admin-image.directive.ts b/src/app/main/directive/admin-image/admin-image.directive.ts index 41cbeb7179..7b7254fb97 100644 --- a/src/app/main/directive/admin-image/admin-image.directive.ts +++ b/src/app/main/directive/admin-image/admin-image.directive.ts @@ -27,27 +27,20 @@ export class AdminImageDirective implements OnChanges { /** - * @ignore + * image source */ source: string; /** - * @ignore + * in case of an error */ onError: string = AdminImageConfig.defaultNotFound; - - /** - * @ignore - */ constructor(private _renderer: Renderer2, private _ele: ElementRef ) { } - /** - * @ignore - */ ngOnChanges() { this.source = this.image; diff --git a/src/app/main/directive/existing-name/existing-name.directive.ts b/src/app/main/directive/existing-name/existing-name.directive.ts index 20eef3cc4b..50bc17b9da 100644 --- a/src/app/main/directive/existing-name/existing-name.directive.ts +++ b/src/app/main/directive/existing-name/existing-name.directive.ts @@ -7,18 +7,11 @@ import { Validators, AbstractControl, ValidatorFn } from '@angular/forms'; }) export class ExistingNameDirective implements Validators, OnChanges { - /** - * @ignore - */ @Input() existingName: string; - /** - * @ignore - */ private _valFn = Validators.nullValidator; /** - * @ignore * @param changes */ ngOnChanges(changes: SimpleChanges): void { @@ -33,7 +26,6 @@ export class ExistingNameDirective implements Validators, OnChanges { } /** - * @ignore * @param control */ validate(control: AbstractControl): { [key: string]: any } { @@ -91,8 +83,6 @@ export function existingNamesValidator(valArrayRegexp: [RegExp]): ValidatorFn { } /** - * @ignore - * * @param {RegExp} pattern * @param {string} regType * @returns ValidatorFn diff --git a/src/app/main/header/header.component.spec.ts b/src/app/main/header/header.component.spec.ts index c137899c65..c76564bf60 100644 --- a/src/app/main/header/header.component.spec.ts +++ b/src/app/main/header/header.component.spec.ts @@ -38,7 +38,6 @@ class TestHostHeaderComponent { }) class TestSearchPanelComponent { @Input() projectfilter?: boolean = false; - @Input() filterbyproject?: string; @Input() limitToProject?: string; @Input() advanced?: boolean = false; @Input() expert?: boolean = false; diff --git a/src/app/project/project-form/project-form.component.ts b/src/app/project/project-form/project-form.component.ts index 6c013f6fbe..d6e367c8cb 100644 --- a/src/app/project/project-form/project-form.component.ts +++ b/src/app/project/project-form/project-form.component.ts @@ -528,21 +528,4 @@ export class ProjectFormComponent implements OnInit { ); } - /** - * @deprecated Maybe we can reactivate later. - * - * Reset the form - */ - resetForm(ev: Event, project?: ReadProject) { - ev.preventDefault(); - - project = (project ? project : new ReadProject()); - this.description = project.description; - - this.buildForm(project); - - // --> TODO fix "set value" for keywords field - // this.form.controls['keywords'].setValue(this.keywords); - } - } diff --git a/src/app/system/groups/groups-list/groups-list.component.html b/src/app/system/groups/groups-list/groups-list.component.html index 0e896d4302..fa4bd7e606 100644 --- a/src/app/system/groups/groups-list/groups-list.component.html +++ b/src/app/system/groups/groups-list/groups-list.component.html @@ -1 +1 @@ - + diff --git a/src/app/user/user-form/password-form/password-form.component.html b/src/app/user/user-form/password-form/password-form.component.html index 1386e02c7b..d04abcb17f 100644 --- a/src/app/user/user-form/password-form/password-form.component.html +++ b/src/app/user/user-form/password-form/password-form.component.html @@ -5,7 +5,7 @@
- diff --git a/src/app/user/user-form/user-form.component.html b/src/app/user/user-form/user-form.component.html index 135d40c059..dba3f067a8 100644 --- a/src/app/user/user-form/user-form.component.html +++ b/src/app/user/user-form/user-form.component.html @@ -3,7 +3,7 @@ - +
diff --git a/src/app/user/user-form/user-form.component.ts b/src/app/user/user-form/user-form.component.ts index bb37afe83b..fb5bce9880 100644 --- a/src/app/user/user-form/user-form.component.ts +++ b/src/app/user/user-form/user-form.component.ts @@ -457,15 +457,4 @@ export class UserFormComponent implements OnInit, OnChanges { } } - /** - * reset the form - */ - resetForm(ev: Event, user?: ReadUser) { - ev.preventDefault(); - - user = user ? user : new ReadUser(); - - this.buildForm(user); - } - } diff --git a/src/app/workspace/results/list-view/list-view.component.spec.ts b/src/app/workspace/results/list-view/list-view.component.spec.ts index b80690bd67..9f2c3c6259 100644 --- a/src/app/workspace/results/list-view/list-view.component.spec.ts +++ b/src/app/workspace/results/list-view/list-view.component.spec.ts @@ -57,8 +57,8 @@ class TestProgressIndicatorComponent { */ @Component({ template: ` - - ` + + ` }) class TestParentComponent implements OnInit { diff --git a/src/app/workspace/results/list-view/list-view.component.ts b/src/app/workspace/results/list-view/list-view.component.ts index 8418ece96f..c8c7e4ccae 100644 --- a/src/app/workspace/results/list-view/list-view.component.ts +++ b/src/app/workspace/results/list-view/list-view.component.ts @@ -76,30 +76,6 @@ export class ListViewComponent implements OnChanges { */ @Output() selectedResources: EventEmitter = new EventEmitter(); - /** - * @deprecated Use selectedResources instead - * - * Click on checkbox will emit the resource info - * - * @param {EventEmitter} resourcesSelected - */ - @Output() multipleResourcesSelected?: EventEmitter = new EventEmitter(); - - /** - * @deprecated Use selectedResources instead - * - * Click on an item will emit the resource iri - * - * @param {EventEmitter} singleResourceSelected - */ - @Output() singleResourceSelected?: EventEmitter = new EventEmitter(); - - /** - * @deprecated Use selectedResources instead. - * Click on an item will emit the resource iri - */ - @Output() resourceSelected: EventEmitter = new EventEmitter(); - resources: ReadResourceSequence; selectedResourceIdx: number[] = []; diff --git a/src/app/workspace/search/advanced-search/advanced-search.component.ts b/src/app/workspace/search/advanced-search/advanced-search.component.ts index 9fc1a5365e..d38946bdc0 100644 --- a/src/app/workspace/search/advanced-search/advanced-search.component.ts +++ b/src/app/workspace/search/advanced-search/advanced-search.component.ts @@ -87,8 +87,7 @@ export class AdvancedSearchComponent implements OnInit, OnDestroy, AfterViewChec } /** - * @ignore - * Gets all available ontologies for the search form. + * gets all available ontologies for the search form. * @returns void */ initializeOntologies(): void { @@ -167,8 +166,7 @@ export class AdvancedSearchComponent implements OnInit, OnDestroy, AfterViewChec } /** - * @ignore - * Validates form and returns its status (boolean). + * validates form and returns its status (boolean). */ private _validateForm(): boolean { diff --git a/src/app/workspace/search/advanced-search/resource-and-property-selection/resource-and-property-selection.component.ts b/src/app/workspace/search/advanced-search/resource-and-property-selection/resource-and-property-selection.component.ts index 65e1803472..90e7b7ea46 100644 --- a/src/app/workspace/search/advanced-search/resource-and-property-selection/resource-and-property-selection.component.ts +++ b/src/app/workspace/search/advanced-search/resource-and-property-selection/resource-and-property-selection.component.ts @@ -126,8 +126,7 @@ export class ResourceAndPropertySelectionComponent implements OnInit, OnChanges } /** - * @ignore - * Add a property to the search form. + * add a property to the search form. * @returns void */ addProperty(): void { @@ -135,8 +134,7 @@ export class ResourceAndPropertySelectionComponent implements OnInit, OnChanges } /** - * @ignore - * Remove the last property from the search form. + * remove the last property from the search form. * @returns void */ removeProperty(): void { @@ -144,8 +142,7 @@ export class ResourceAndPropertySelectionComponent implements OnInit, OnChanges } /** - * @ignore - * Resets the form (selected resource class and specified properties) preserving the active ontology. + * resets the form (selected resource class and specified properties) preserving the active ontology. */ resetForm() { if (this.activeOntology !== undefined) { diff --git a/src/app/workspace/search/expert-search/expert-search.component.ts b/src/app/workspace/search/expert-search/expert-search.component.ts index 4a4afa37d5..25d791c62f 100644 --- a/src/app/workspace/search/expert-search/expert-search.component.ts +++ b/src/app/workspace/search/expert-search/expert-search.component.ts @@ -6,8 +6,7 @@ import { SearchParams } from '../../results/list-view/list-view.component'; import { AdvancedSearchParams, AdvancedSearchParamsService } from '../services/advanced-search-params.service'; /** - * @ignore - * Validator checking that the query does not contain a certain term, here OFFSET + * validator checking that the query does not contain a certain term, here OFFSET * * @param {RegExp} termRe */ @@ -73,16 +72,14 @@ CONSTRUCT { } /** - * @ignore - * Reset the form to the initial state. + * reset the form to the initial state. */ resetForm() { this.expertSearchForm.reset({ gravsearchquery: this.defaultGravsearchQuery }); } /** - * @ignore - * Send the gravsearch query to the result view by emitting the gravsearch as an output. + * send the gravsearch query to the result view by emitting the gravsearch as an output. */ submitQuery() { const gravsearch = this._generateGravsearch(0); @@ -96,8 +93,7 @@ CONSTRUCT { } /** - * @ignore - * Generate the whole gravsearch query matching the query given by the form. + * generate the whole gravsearch query matching the query given by the form. */ private _generateGravsearch(offset: number = 0): string { const query = this.expertSearchForm.controls['gravsearchquery'].value; diff --git a/src/app/workspace/search/fulltext-search/fulltext-search.component.ts b/src/app/workspace/search/fulltext-search/fulltext-search.component.ts index 4ceae3ae62..443e9437ec 100644 --- a/src/app/workspace/search/fulltext-search/fulltext-search.component.ts +++ b/src/app/workspace/search/fulltext-search/fulltext-search.component.ts @@ -54,14 +54,6 @@ export class FulltextSearchComponent implements OnInit, OnChanges, OnDestroy { */ @Input() projectfilter?: boolean = false; - /** - * @deprecated Use `limitToProject` instead - * - * @param [filterbyproject] If the full-text search should be - * filtered by one project, you can define it with project iri. - */ - @Input() filterbyproject?: string; - /** * filter ontologies in advanced search or query in fulltext search by specified project IRI * @@ -148,11 +140,6 @@ export class FulltextSearchComponent implements OnInit, OnChanges, OnDestroy { this.searchQuery = decodeURI(decodeURI(currentSearchTerm)); } - // filterbyproject is set as deprecated. To avoid breaking changes we still support it - if (this.filterbyproject) { - this.limitToProject = this.filterbyproject; - } - // initialise prevSearch const prevSearchOption = JSON.parse(localStorage.getItem('prevSearch')); if (prevSearchOption !== null) { diff --git a/src/app/workspace/search/search-panel/search-panel.component.ts b/src/app/workspace/search/search-panel/search-panel.component.ts index ce0bff51a0..da54c17fc7 100644 --- a/src/app/workspace/search/search-panel/search-panel.component.ts +++ b/src/app/workspace/search/search-panel/search-panel.component.ts @@ -25,14 +25,6 @@ export class SearchPanelComponent implements OnInit { */ @Input() projectfilter?: boolean = false; - /** - * @deprecated Use `limitToProject` instead - * - * @param [filterbyproject] If your full-text search should be filtered by one project, you can define it with project - * iri in the parameter filterbyproject. - */ - @Input() filterbyproject?: string; - /** * filter ontologies in advanced search or query in fulltext search by specified project IRI * @@ -76,10 +68,7 @@ export class SearchPanelComponent implements OnInit { ) { } ngOnInit() { - // filterbyproject is set as deprecated. To avoid breaking changes we still support the parameter - if (this.filterbyproject) { - this.limitToProject = this.filterbyproject; - } + } openPanelWithBackdrop(type: string) {