aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.html
blob: c0ea41dbc0e70c6135dce6c03a7a50f58c45a8ad (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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
<!--Header-->
<header>
    <div class="row m-0">
        <div class="col pl-0">
            <p class="logo mb-0"></p>
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb mb-0">
                    <li class="breadcrumb-item">
                        <a href="#">CBA Packages</a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="#">Package Name</a>
                    </li>
                    <li class="breadcrumb-item active" aria-current="page">
                        <p class="mb-0">Topology View</p>
                    </li>
                </ol>
            </nav>
        </div>
        <div class="col pr-0 text-right">
            <ul class="topology-actions">
                <li>
                    <div class="btn-group" role="group" aria-label="Basic example">
                        <a href="#" role="button" aria-pressed="true" class="btn-topology-action float tooltip-bottom"
                           data-tooltip="Preview">
                            <i class="fa fa-eye"></i>
                        </a>
                        <a href="#" role="button" aria-pressed="true" class="btn-topology-action float tooltip-bottom"
                           data-tooltip="Download">
                            <i class="fa fa-download"></i>
                        </a>
                        <a href="#" role="button" aria-pressed="true" class="btn-topology-action float tooltip-bottom"
                           data-tooltip="Share">
                            <i class="fa fa-share-square"></i>
                        </a>
                    </div>
                </li>
                <li>
                    <div class="dropdown">
                        <input class="dropdown-toggle" type="text">
                        <div class="dropdown-text">Save</div>
                        <ul class="dropdown-content">
                            <li>
                                <a href="">Save</a>
                            </li>
                            <li>
                                <a href="">Save &amp; Deploy</a>
                            </li>
                        </ul>
                    </div>
                </li>
            </ul>


        </div>
    </div>
</header>
<ng-sidebar-container class="sidebar-container">
    <!-- Controller SideBar -->
    <ng-sidebar [(opened)]="controllerSideBar" [sidebarClass]="'demo-sidebar controllerSidebar container-fluid'"
                [mode]="'push'"
                #sidebarLeft>
        <div class="row">
            <div class="col-12 p-0">
                <form>
                    <input type="text" class="form-control input-search-controller"
                           placeholder="Search actions and functions">
                </form>
            </div>
            <h1 class="col-12">Actions</h1>
            <div class="col-12 text-center p-0">
                <div class="btn-group actionBtns" role="group">
                    <button type="button" class="btn">Insert Custom</button>
                    <button type="button" class="btn">Import Action</button>
                </div>
            </div>
      <div class="col-12 actionsList">
        <b>Select from other packages:</b>
        <div class="actions-scroll">
          <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" id="customCheck1">
            <label class="custom-control-label" for="customCheck1">Action name
              <p class="m-0">Toplogy name</p>
            </label>
          </div>
          <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" id="customCheck2">
            <label class="custom-control-label" for="customCheck2">Action name
              <p class="m-0">Toplogy name</p>
            </label>
          </div>
          <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" id="customCheck3">
            <label class="custom-control-label" for="customCheck3">Action name
              <p class="m-0">Toplogy name</p>
            </label>
          </div>
          <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" id="customCheck4">
            <label class="custom-control-label" for="customCheck4">Action name
              <p class="m-0">Toplogy name</p>
            </label>
          </div>
        </div>
        <div class="btn-group inserActionBtns" role="group" aria-label="Basic example">
          <button type="button" class="btn btn-secondary mr-3">Insert</button>
          <button type="button" class="btn btn-secondary">Cancel</button>
        </div>
      </div>

        <h1 class="col-12">Functions</h1>
        <div id="palette-paper" class="col-12 componentsList">
            <b>Drag and drop function to Action’s box</b>
            <ul class="list-group actions-scroll">
                <!-- <li class="list-group-item" *ngFor="let function of viewedFunctions">
                    <p class="compType-1">{{function.modelName}}</p>
                </li> -->
                <li class="list-group-item">
                    <p class="compType-2">component-netconf-executor</p>
                </li>
                <li class="list-group-item">
                    <p class="compType-3">component-remote-ansible-executor</p>
                </li>
                <li class="list-group-item">
                    <p class="compType-4">dg-generic</p>
                </li>
                <li class="list-group-item">
                    <p class="compType-1">component-resource-resolution</p>
                </li>
            </ul>
        </div>
        </div>
    </ng-sidebar>
    <!-- Page content -->
    <div ng-sidebar-content id="board-paper">
        <button class="rotate" (click)="_toggleSidebar1()">
      <span>
        Controller
        <i class="fa fa-angle-double-left"></i>
      </span>
        </button>
        <!-- Canvas -->
        <div class="editBar text-center">
            <div class="btn-group mr-2" role="group" aria-label="First group">
                <button type="button" class="btn btn-secondary tooltip-bottom" data-tooltip="Undo">
                    <img src="/assets/img/icon-undoActive.svg">
                </button>
                <button type="button" class="btn btn-secondary tooltip-bottom" data-tooltip="Redo">
                    <img src="/assets/img/icon-redo.svg">
                </button>
            </div>
            <div class="btn-group mr-2" role="group" aria-label="Second group">
                <button type="button" class="btn btn-secondary tooltip-bottom" data-tooltip="Zoom Out">
                    <img src="/assets/img/icon-zoomOut.svg">
                </button>
                <button type="button" class="btn btn-secondary pl-0 pr-0">100%</button>
                <button type="button" class="btn btn-secondary tooltip-bottom" data-tooltip="Zoom In">
                    <img src="/assets/img/icon-zoomIn.svg">
                </button>
            </div>
            <div class="btn-group viewBtns" role="group" aria-label="Third group">
                <button type="button" class="btn btn-secondary topologySource active">View</button>
                <button type="button" class="btn btn-secondary topologyView">Source</button>
            </div>
        </div>
        <!-- <div class="card actionContainer">
            <div class="card-header">
                <span>Action 1</span>
            </div>
            <div class="card-body">
                <a (click)="sidebarRight.open()" class="componentContainer text-center">
                    <img src="/assets/img/icon-comType1.svg" title="">
                    <h2>config-assign</h2>
                    <p>component-resource-resolution</p>
                </a>
                <a (click)="sidebarRight.open()" class="componentContainer text-center">
                    <img src="/assets/img/icon-comType2.svg" title="">
                    <h2>execute</h2>
                    <p>component-netconf-executor</p>
                </a>
                <a (click)="sidebarRight.open()" class="componentContainer text-center">
                    <img src="/assets/img/icon-comType3.svg" title="">
                    <h2>function 1</h2>
                    <p>dg-generic</p>
                </a>
                <a (click)="sidebarRight.open()" class="componentContainer text-center">
                    <img src="/assets/img/icon-comType2.svg" title="">
                    <h2>execute</h2>
                    <p>component-netconf-executor</p>
                </a>
            </div>
        </div> -->
        <!-- <button (click)="_toggleSidebar2()" style="float:right;">Toggle sidebar right</button> -->
    </div>
    <!-- Attribute SideBar -->
    <ng-sidebar [(opened)]="attributesSideBar" [sidebarClass]="'demo-sidebar attributesSideBar '" [mode]="'push'"
                [position]="'right'"
                #sidebarRight>
        <div class="container-fluid0">
            <div class="row m-0">
                <div class="col-2 pr-0">
                    <button (click)="sidebarRight.close()" class="closeBar"></button>
                </div>
                <div class="col-10 attributesContainer p-0">
                    <h1>Action Attributes</h1>
                    <div class="scrolll">
                        <div class="row m-0">
                            <div class="col-12">
                                <div class="form-group actionName">
                                    <label for="exampleInputEmail1">Action Name</label>
                                    <input type="text" class="form-control" placeholder="Action 1">
                                </div>
                            </div>
                        </div>
                        <div class="accordion" id="accordionExample">
                            <div class="card">
                                <div class="card-header row" id="headingOne">
                                    <h2 class="col-10 mb-0">
                                        <button class="btn btn-link" type="button" data-toggle="collapse"
                                                data-target="#collapseOne" aria-expanded="true"
                                                aria-controls="collapseOne">
                                            Steps
                                        </button>
                                    </h2>
                                    <div class="col-2 p-0 text-center">
                                        <button class="btn btn-addAttribute" type="button"></button>
                                    </div>
                                </div>

                                <div id="collapseOne" class="collapse show" aria-labelledby="headingOne"
                                     data-parent="#accordionExample">
                                    <div class="card-body">
                                        <div class="row">
                                            <div class="col-9">
                                                <label for="exampleInputEmail1">Name</label> &nbsp;
                                                <button type="button" class="btn p-0">
                                                    <img src="/assets/img/icon-edit.svg">
                                                </button>
                                            </div>
                                            <div class="col-3">
                                                <button type="button" class="btn btn-deleteAttribute">Delete</button>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">Name</label>
                                            <input type="text" class="form-control" placeholder="Action 1">
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleFormControlTextarea1">Description</label>
                                            <textarea class="form-control" id="exampleFormControlTextarea1"
                                                      rows="3"></textarea>
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">Target</label>
                                            <input type="text" class="form-control" placeholder="Action 1">
                                        </div>

                                    </div>
                                </div>
                            </div>
                            <div class="card">
                                <div class="card-header row" id="headingTwo">
                                    <h2 class="col-10 mb-0">
                                        <button class="btn btn-link" type="button" data-toggle="collapse"
                                                data-target="#collapseTwo" aria-expanded="true"
                                                aria-controls="collapseTwo">
                                            Inputs
                                        </button>
                                    </h2>
                                    <div class="col-2 p-0 text-center">
                                        <button class="btn btn-addAttribute" type="button"></button>
                                    </div>
                                </div>
                                <div id="collapseTwo" class="collapse show" aria-labelledby="headingTwo"
                                     data-parent="#accordionExample">
                                    <div class="card-body">
                                        <div class="row">
                                            <div class="col-9">
                                                <label for="exampleInputEmail1">Name</label> &nbsp;
                                                <button type="button" class="btn p-0">
                                                    <img src="/assets/img/icon-edit.svg">
                                                </button>
                                            </div>
                                            <div class="col-3">
                                                <button type="button" class="btn btn-deleteAttribute">Delete</button>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">Name</label>
                                            <input type="text" class="form-control" placeholder="Action 1">
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleFormControlTextarea1">Description</label>
                                            <textarea class="form-control" id="exampleFormControlTextarea1"
                                                      rows="3"></textarea>
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">Target</label>
                                            <input type="text" class="form-control" placeholder="Action 1">
                                        </div>

                                    </div>
                                </div>
                            </div>
                            <div class="card">
                                <div class="card-header row" id="headingThree">
                                    <h2 class="col-10 mb-0">
                                        <button class="btn btn-link" type="button" data-toggle="collapse"
                                                data-target="#collapseThree" aria-expanded="true"
                                                aria-controls="collapseThree">
                                            Outputs
                                        </button>
                                    </h2>
                                    <div class="col-2 p-0 text-center">
                                        <button class="btn btn-addAttribute" type="button"></button>
                                    </div>
                                </div>
                                <div id="collapseThree" class="collapse show" aria-labelledby="headingThree"
                                     data-parent="#accordionExample">
                                    <div class="card-body">
                                        <div class="row">
                                            <div class="col-9">
                                                <label for="exampleInputEmail1">Name</label> &nbsp;
                                                <button type="button" class="btn p-0">
                                                    <img src="/assets/img/icon-edit.svg">
                                                </button>
                                            </div>
                                            <div class="col-3">
                                                <button type="button" class="btn btn-deleteAttribute">Delete</button>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">Name</label>
                                            <input type="text" class="form-control" placeholder="Action 1">
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleFormControlTextarea1">Description</label>
                                            <textarea class="form-control" id="exampleFormControlTextarea1"
                                                      rows="3"></textarea>
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">Target</label>
                                            <input type="text" class="form-control" placeholder="Action 1">
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </ng-sidebar>

</ng-sidebar-container>