2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2022 Nordix Foundation. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 <div class="cell field-name">
23 *ngIf="!isAssociateWorkflow"
24 [testId]="'param-name-' + (param.name || 'unnamed')"
25 [(value)]="param.name"
26 (valueChange)="onChangeName()"
27 [readonly]="readonly">
29 <span *ngIf="isAssociateWorkflow">{{param.name}}</span>
32 <div class="cell field-type">
34 *ngIf="!isAssociateWorkflow"
35 [testId]="'param-type-' + (param.name || 'unnamed')"
36 [values]="propTypeEnum"
37 [(value)]="param.type"
38 (valueChange)="onChangeType()"
39 [readonly]="readonly">
40 </ui-element-dropdown>
41 <span *ngIf="isAssociateWorkflow">{{param.type}}</span>
44 <div class="cell field-property" *ngIf="isInputParam">
46 *ngIf="filteredInputProps.length || operationOutputCats.length || !isAssociateWorkflow"
47 [(ngModel)]="param.inputId"
48 (change)="onChangeProperty($event)"
49 [ngClass]="{'disabled': readonly}"
50 [attr.data-tests-id]="'value-param-property-' + (param.name || 'unnamed')">
52 *ngFor="let prop of filteredInputProps"
53 [ngValue]="prop.value">
57 *ngFor="let operation of operationOutputCats"
58 label="{{operation.operationName}}">
60 *ngFor="let output of operation.outputs"
61 [ngValue]="output.value">
66 *ngFor="let cap of filteredCapabilitiesProps"
67 label="{{cap.capabilityName}}">
69 *ngFor="let prop of cap.properties"
70 [ngValue]="prop.value">
76 *ngIf="!filteredInputProps.length && !operationOutputCats.length && isAssociateWorkflow"
77 class="no-properties-error">
78 {{ 'PARAM_NONE_OF_TYPE' | translate }}
82 <div class="cell field-mandatory" *ngIf="!isAssociateWorkflow">
84 *ngIf="!isAssociateWorkflow"
85 [attr.data-tests-id]="'param-mandatory-' + (param.name || 'unnamed')"
86 [(checked)]="param.required"
87 [ngClass]="{'disabled':readonly}">
91 <div class="cell remove" *ngIf="!isAssociateWorkflow && !readonly">
96 [attr.data-tests-id]="'param-remove-' + (param.name || 'unnamed')"
97 (click)="onRemoveParam(param)"