3 ~ ============LICENSE_START=======================================================
4 ~ Copyright (C) 2022 Nordix Foundation.
5 ~ ================================================================================
6 ~ Licensed under the Apache License, Version 2.0 (the "License");
7 ~ you may not use this file except in compliance with the License.
8 ~ You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing, software
13 ~ distributed under the License is distributed on an "AS IS" BASIS,
14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ~ See the License for the specific language governing permissions and
16 ~ limitations under the License.
18 ~ SPDX-License-Identifier: Apache-2.0
19 ~ ============LICENSE_END=========================================================
22 <div class="component-container">
23 <ng-container [formGroup]="formGroup">
24 <div formArrayName="concatParameterList">
25 <div *ngFor="let parameter of parameters; let idx = index">
26 <div *ngIf="idx > 0" class="text-center"><span class="concat-plus-icon"></span></div>
27 <div class="parameter-card">
28 <div class="card-content">
29 <ng-container *ngIf="parameter.type === STRING_FUNCTION_TYPE">
30 <input type="text" [formControlName]="idx" [value]="parameter.value"/><br/>
32 <ng-container *ngIf="parameter.type !== STRING_FUNCTION_TYPE">
33 <tosca-function [property]="propertyInputList[idx]" [componentInstanceMap]="componentInstanceMap" [allowClear]="false"
34 (onValidityChange)="onFunctionValidityChange($event, idx)">
37 <div class="buttons-container">
38 <span class="delete-icon" (click)="removeParameter(idx)"></span>
45 <div class="buttons-container">
46 <a class="add-link" (click)="addStringParameter()">String Value</a> <a class="add-link" (click)="addFunction()">String Value Expression</a>