aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/inputs-table/inputs-table.component.html
blob: 8d3f6d1836a0db43ea0b1d6c7c8d93e193adcf0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<div class="properties-table">
    <loader [display]="isLoading" size="large" [relative]="false"></loader>
    <div class="table-header">
        <div class="table-cell col1">Property Name</div>
        <div class="table-cell col2">Type</div>
        <div class="table-cell col3">ES</div>
        <div class="table-cell valueCol">Value</div>
    </div>
    <div class="table-body">
        <div class="no-data" *ngIf="!inputs || !inputs.length">No data to display</div>
        <div>
            <div class="table-row" *ngFor="let input of inputs" (click)="selectedInputId = input.path" [ngClass]="{'selected': selectedInputId && selectedInputId === input.path}">
                <div class="table-cell col1">
                    <div class="inner-cell-div" tooltip="{{input.name}}"><span class="property-name">{{input.name}}</span></div>
                    <span *ngIf="input.description"
                          class="property-description-icon sprite-new show-desc"
                          tooltip="{{input.description}}"></span>
                </div>
                <div class="table-cell col2">
                    <div class="inner-cell-div" tooltip="{{input.type | contentAfterLastDot}}">
                        <span>{{input.type | contentAfterLastDot}}</span>
                    </div>
                </div>
                <div class="table-cell col3">{{input.schema && input.schema.property && input.schema.property.type ? (input.schema.property.type | contentAfterLastDot) : ''}}</div>
                <div class="table-cell valueCol input-value-col" [class.inner-table-container]="input.childrenProperties || !input.isSimpleType">
                    <dynamic-element class="value-input"
                                     *ngIf="input.isSimpleType"
                                     pattern="validationUtils.getValidationPattern(input.type)"
                                     [(value)]="input.defaultValue"
                                     [type]="input.type"
                                     [name]="input.name"
                                 (change)="onInputValueChanged(input);"
                                 [readonly]="readonly">
                    </dynamic-element>
                    <div class="delete-button-container">
                        <span *ngIf="!input.ownerId && !readonly" class="sprite-new delete-btn" (click)="openDeleteModal(input)"></span>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<confirm-delete-input #deleteInputConfirmation (deleteInput)="onDeleteInput()"></confirm-delete-input>