solved lint issues, added typedoc, fixed lgtm warnings

This commit is contained in:
lotte
2020-06-30 13:44:38 +02:00
parent c7994f9d90
commit 09665dfbe2
12 changed files with 39 additions and 14 deletions

View File

@@ -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';

View File

@@ -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() {

View File

@@ -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

View File

@@ -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)

View File

@@ -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