mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
solved lint issues, added typedoc, fixed lgtm warnings
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { Component, EventEmitter, Input, OnInit, Output, Optional } from '@angular/core';
|
||||
import { Component, EventEmitter, Input, Optional, Output } from '@angular/core';
|
||||
import { ProcessParameter } from '../../../processes/process-parameter.model';
|
||||
import { ScriptParameter } from '../../../scripts/script-parameter.model';
|
||||
import { hasNoValue } from '../../../../shared/empty.util';
|
||||
import { ControlContainer, NgForm } from '@angular/forms';
|
||||
import { controlContainerFactory } from '../../process-form.component';
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Optional, Input } from '@angular/core';
|
||||
import { Component, Input, Optional } from '@angular/core';
|
||||
import { ValueInputComponent } from '../value-input.component';
|
||||
import { ControlContainer, NgForm } from '@angular/forms';
|
||||
import { controlContainerFactory } from '../../../process-form.component';
|
||||
@@ -19,6 +19,10 @@ export class DateValueInputComponent extends ValueInputComponent<string> {
|
||||
* The current value of the date string
|
||||
*/
|
||||
value: string;
|
||||
|
||||
/**
|
||||
* Initial value of the field
|
||||
*/
|
||||
@Input() initialValue;
|
||||
|
||||
ngOnInit() {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { Component, EventEmitter, Input, OnChanges, OnInit, Optional, Output } from '@angular/core';
|
||||
import { Component, EventEmitter, Input, Optional, Output } from '@angular/core';
|
||||
import { ScriptParameterType } from '../../../scripts/script-parameter-type.model';
|
||||
import { ScriptParameter } from '../../../scripts/script-parameter.model';
|
||||
import { ControlContainer, NgForm } from '@angular/forms';
|
||||
@@ -23,7 +23,9 @@ export class ParameterValueInputComponent {
|
||||
*/
|
||||
@Input() parameter: ScriptParameter;
|
||||
|
||||
|
||||
/**
|
||||
* Initial value for input
|
||||
*/
|
||||
@Input() initialValue: any;
|
||||
/**
|
||||
* Emits the value of the input when its updated
|
||||
|
@@ -19,12 +19,16 @@ export class StringValueInputComponent extends ValueInputComponent<string> {
|
||||
* The current value of the string
|
||||
*/
|
||||
value: string;
|
||||
|
||||
/**
|
||||
* Initial value of the field
|
||||
*/
|
||||
@Input() initialValue;
|
||||
|
||||
ngOnInit() {
|
||||
this.value = this.initialValue;
|
||||
}
|
||||
|
||||
|
||||
setValue(value) {
|
||||
this.value = value;
|
||||
this.updateValue.emit(value)
|
||||
|
@@ -24,6 +24,10 @@ export class ProcessParametersComponent implements OnChanges {
|
||||
* The currently selected script
|
||||
*/
|
||||
@Input() script: Script;
|
||||
|
||||
/**
|
||||
* Initial parameters on load
|
||||
*/
|
||||
@Input() initialParams: ProcessParameter[];
|
||||
/**
|
||||
* Emits the parameter values when they're updated
|
||||
|
Reference in New Issue
Block a user