blob: 02dfe21865956fe615f42ade0d6406ecccc011fe (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
<!--/*
* ============LICENSE_START=======================================================
* ONAP : CDS
* ================================================================================
* Copyright (C) 2020 TechMahindra
*=================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
*/-->
<div class="row">
<!--Sources Options-->
<div class="col-3">
<div class="card sourceOptions">
<h5>Sources Options</h5>
<div class="searchBox">
<input class="searchText" [(ngModel)]="searchText" type="input" placeholder="Search">
</div>
<div class="row sourceOtionsScroll">
<div class="col">
<div class="sourceOption" *ngFor="let item of option| search :searchText">
<!-- <input type="checkbox" class="checkbox" [(ngModel)]="checked"
(change)="onChange(item, $event.target.checked)">
{{item.name}} -->
<div class="custom-control custom-checkbox">
<input [disabled]="sourcesOptions.has(item.name)" [checked]="tempSources.has(item.name)"
(change)="setTempSources($event,item)" type="checkbox" class="custom-control-input"
id="input-{{item.name}}">
<label class="custom-control-label" for="input-{{item.name}}">{{item.name}}</label>
</div>
</div>
</div>
</div>
<div class="row sourceOptionActions">
<div (click)="selectAll()" class="col">
<a>Select all</a>
</div>
<div class="col">
<button (click)="addSources()" class="btn">Add to list</button>
</div>
</div>
</div>
</div>
<!--Sources List-->
<div class="col-9">
<div class="card sourceList">
<h5>Sources List</h5>
<div class="accordion sourceListItems" id="accordionExample">
<div class="card" *ngFor="let item of sourcesOptions | keyvalue; let i=index; trackBy:identify">
<div class="card-header" id="headingOne">
<h2 class="mb-0">
<button class="btn btn-link" type="button" data-toggle="collapse"
attr.data-target="#collapse-{{item.key}}" aria-expanded="true"
attr.aria-controls="collapse-{{item.key}}">
<div class="custom-control custom-checkbox">
<input (change)="setToDeleteSources($event,item)" type="checkbox" class="custom-control-input"
id="current-{{item.key}}" required>
<label class="custom-control-label" for="current-{{item.key}}"></label>
</div>
{{item.key}}
</button>
</h2>
</div>
<div id="collapse-{{item.key}}" class="collapse" aria-labelledby="headingOne" data-parent="#accordionExample">
<div class="card-body">
<ace-editor [mode]="'json'" (textChange)="addProperties(item,editor.text)" [autoUpdateContent]="true"
[durationBeforeCallback]="500" [theme]="'tomorrow_night_bright'" #editor style="height:300px;">
</ace-editor>
</div>
</div>
</div>
</div>
<!-- <div cdkDropList #doneList="cdkDropList" [cdkDropListData]="sourcesOptions" [cdkDropListConnectedTo]="[todoList]"
class="example-list1 sourceListScroll" (cdkDropListDropped)="drop($event)">
<div class="example-box1" *ngFor="let item of sourcesOptions" cdkDrag>
<input type="checkbox" value="item.name">
<mat-expansion-panel class="expansion-panel">
<mat-expansion-panel-header [collapsedHeight]="'23px'" [expandedHeight]="'23px'">
<mat-panel-title>
{{item.name}}
</mat-panel-title>
</mat-expansion-panel-header>
<br>
<ace-editor [(text)]=item.value [mode]="'javascript'" [autoUpdateContent]="true"
[durationBeforeCallback]="1000" (textChanged)="textChanged($event,item)" [theme]="'tomorrow_night_bright'"
#editor style="height:300px;">
</ace-editor>
</mat-expansion-panel>
</div>
</div> -->
<div class="row deleteSource">
<div class="col">
<a type="button" (click)="deleteSource()" class="">Delete Source</a>
</div>
</div>
</div>
</div>
</div>
|