2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END============================================
20 ===================================================================
41 border: 0px solid black;
47 background-color: #337ab7;
56 border: 0px solid black;
59 vertical-align: bottom;
63 border: 0px solid black;
68 .td-level1-label-tree {
78 .td-level2-label-tree {
88 .td-level3-label-tree {
98 .td-level4-label-tree {
108 .td-level5-label-tree {
118 .td-level6-label-tree {
128 .td-level7-label-tree {
138 .td-level8-label-tree {
148 .td-level9-label-tree {
153 .table-level10-tree {
158 .td-level10-label-tree {
163 .td-default_value-tree {
164 border: 0px solid black;
166 width: 180px !important;
167 vertical-align: bottom;
168 text-align: left !important;
180 border: 0px solid black;
184 text-align: center !important;
189 background-color: white;
190 border: solid #CCCCCC 1px;
201 line-height: 1.42857143;
206 .contextmenu-item:hover {
207 background-color: #3c8dbc;
214 <div attribute-test="cldsmodelling" class="container-fluid"
215 ng-controller="ActivityModellingCtrl"
216 style="height: 90vh; margin: 0; padding: 0; overflow: hidden;">
217 <div id="utm-splitter" class="k-content"
218 style="height: 90vh; overflow: hidden;">
219 <div attribute-test="cldsmodelling2" id="UTMdashboard"
220 style="height: 90vh; overflow: hidden; margin-left: 2px; margin-right: 2px;">
221 <div style="display: none;" id="projectExplorer">
222 <!-- clds: remove project explorer - use display: none -->
223 <!-- div style="width: 30%; height: 90vh;overflow: hidden;" id="projectExplorer" -->
224 <div class="panel panel-primary">
225 <div class="panel-heading">
226 <div style="color: white;">
228 <span class="pull-left"> <span>Project Explorer</span>
229 </span> <span class="pull-right" ng-click="showUTMView=!showUTMView"><i
230 ng-class="showUTMView == true ?'fa fa-plus-circle':'fa fa-minus-circle'"></i></span>
233 <div class="clearfix"></div>
235 <div ng-class="{hidden:showUTMView,chaldean:showUTMView}">
236 <div class="panel-body" style="height: 79vh; overflow: auto;">
237 <div ng-if="projectName != null">
240 <span class="pull-left"
241 ng-click="showUTMViewMain=!showUTMViewMain"> <i
242 ng-class="showUTMViewMain == true ?'fa fa-plus-circle':'fa fa-minus-circle'"></i>
243 </span> <b>{{projectName}} </b>
248 <div style="margin-left: 5px"
249 ng-class="{hidden:showUTMViewMain,chaldean:showUTMViewMain}">
253 <span class="pull-left"
254 ng-click="showUTMViewModel=!showUTMViewModel"> <i
255 ng-class="showUTMViewModel == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
260 <div style="margin-left: 15px"
261 ng-class="{hidden:showUTMViewModel,chaldean:showUTMViewModel}">
263 <div id="div_models" ng-include="'model_renderer.html'">
270 <span class="pull-left"
271 ng-click="showUTMViewService=!showUTMViewService"> <i
272 ng-class="showUTMViewService == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
274 </span><b>Service</b>
278 <div style="margin-left: 10px"
279 ng-class="{hidden:showUTMViewService,chaldean:showUTMViewService}">
281 <div style="width: 190px;">
283 <span class="pull-left"
284 ng-click="showUTMViewDtl=!showUTMViewDtl"> <i
285 ng-class="showUTMViewDtl == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
287 </span><b>Service Details</b>
291 <table class="table-tree">
293 <td class="td-label-tree" style="margin-top: 30px;">
304 <span class="pull-left"
305 ng-click="showUTMViewInput=!showUTMViewInput">
307 ng-class="showUTMViewInput == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
309 </span> <b>Service Input</b>
316 <td class="td-default_value-tree">
317 <table style="margin-top: 30px;">
326 <td class="td-blank"></td>
332 <div ng-show="isModel">
334 style="margin-top: -10px; width: 260px; margin-left: -116px;">
336 <td class="td-default_value-tree"><input
338 ng-model="utmModelSchemaExtension.radioSelection"
339 ng-click="requiredOnly()" value="Required Only"><b>Required
343 <!-- <td class="td-default_value-tree">
344 <h6> <b>Default Value</b></h6>
350 <td style="text-align: left;"
351 class="td-default_value-tree"><input type="radio"
352 ng-model="utmModelSchemaExtension.radioSelection"
353 ng-click="selectAll()" value="Select All"> <b>Select
360 <td style="text-align: left;"
361 class="td-default_value-tree"><input type="radio"
362 ng-model="utmModelSchemaExtension.radioSelection"
363 ng-click="unSelectAll()" value="Unselect All">
364 <b>Unselect All</b></td>
373 <!-- <td class="td-blank"></td>
374 <td class="td-blank"></td> -->
375 <td class="td-default_value-tree">
388 <table class="table-tree"
389 style="margin-top: -12px;>
391 <td class="td-label-tree">
393 <span class="pull-left"
394 ng-click="showUTMViewOutput=!showUTMViewOutput"> <i
395 ng-class="showUTMViewOutput == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
397 </span> <b>Service Output</b>
401 <td class="td-default_value-tree"></td>
402 <td class="td-tree"></td>
407 <table class="table-tree" style="margin-top: -12px;">
409 <td class="td-label-tree">
411 <span class="pull-left"
412 ng-click="showUTMViewFault=!showUTMViewFault"> <i
413 ng-class="showUTMViewFault == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
415 </span> <b>Service Fault</b>
418 <td class="td-default_value-tree"></td>
419 <td class="td-tree"></td>
428 <span class="pull-left"
429 ng-click="showUTMViewTestSet=!showUTMViewTestSet"> <i
430 ng-class="showUTMViewTestSet == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
432 </span> <b ng-click="selectActivityTestSet()">Test Set</b>
435 <div style="margin-left: 15px;"
436 ng-class="{hidden:!showUTMViewTestSet,chaldean:!showUTMViewTestSet}">
437 <div ng-show=" modeltestset.activityTestCases.length>0"
438 style="width: 250px">
440 ng-repeat="activityTestCase in modeltestset.activityTestCases">
442 <div ng-if="activityTestCase.version ==null">
444 <div ng-mouseover="selectTC(activityTestCase)">
445 <b id="{{activityTestCase.testCaseName}}"
446 data-stuff='{{activityTestCase}}'
447 data-model='{{utmModels}}' class="TCS"
448 style="cursor: pointer;">{{activityTestCase.testCaseName}}</b>
452 <div ng-if="activityTestCase.version !=null">
454 <div ng-mouseover="selectTC(activityTestCase)">
455 <b id="{{activityTestCase.testCaseName}}"
456 data-stuff='{{activityTestCase}}'
457 data-model='{{utmModels}}' class="TCS"
458 style="cursor: pointer;">{{activityTestCase.testCaseName
459 + "_" + activityTestCase.version}}</b>
475 <!-- clds: width 100 instead of 70 -->
476 <div style="width: 100%; height: 90vh" id="activity_modeler">
477 <!-- div style="width: 70%;height:90vh" id="activity_modeler" -->
479 <div class="panel panel-primary">
480 <div class="panel-heading">
481 <div style="color: white;">
483 <span class="pull-left"> <span id="modeler_name">Closed
485 </span> <span class="pull-right"> <span id="loop_name">No
486 LOOP loaded yet</span> <i ng-click="showTDRView=!showTDRView"
487 ng-class="showTDRView == true ?'fa fa-plus-circle':'fa fa-minus-circle'"></i>
491 <div class="clearfix"></div>
493 <div ng-class="{hidden:showTDRView,chaldean:showTDRView}">
494 <div style="height: 83.5vh; width: 100%;">
495 <div class="panel-body" style="height: 83.5vh; padding: 0px;">
496 <div id="paletteDiv" style="width: 100%; height: 83.5vh;"
497 ng-show="isPalette" ng-include="'./modeler/dist/index.html'">
507 <div ng-show="isResult"></div>
508 <script type="text/ng-template" id="service_tree_element_renderer.html">
512 <div ng-show="schemaElement.complexType != null">
515 <div ng-if="currentElementName == ''">
516 <div ng-init="currentElementName = schemaElement.complexType.name">
521 <div ng-init="ParentKey=parentName + '_' + currentElementName + (schemaElement.repeatableHierarchicalPrefix != null ? schemaElement.repeatableHierarchicalPrefix : ''); parElement=schemaElement;tableStyle='table-level' + heirarchyLevel + '-tree'; tdLabelStyle='td-level' + heirarchyLevel + '-label-tree'; heirLevel=heirarchyLevel ;">
523 <table class="{{tableStyle}}"> <tr>
524 <td class="{{tdLabelStyle}}">
525 <span class="pull-left" ng-click="showUTMViewMsgHeader=!showUTMViewMsgHeader">
527 ng-class="showUTMViewMsgHeader == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
531 {{currentElementName}}
535 <td class="td-tree"></td>
536 <td class="td-tree"></td>
537 <td class="td-tree"></td>
538 <td class="td-blank"></td>
539 <td class="td-default_value-tree"> </td>
544 <div style="margin-left: 10px"
545 ng-class="{hidden:showUTMViewMsgHeader,chaldean:showUTMViewMsgHeader}">
547 <div style="margin-left: 10px"
548 ng-repeat="schemaElement in schemaElement.elements" ng-init="currentElementName=objectName;parentName=ParentKey; parentElement=parElement; heirarchyLevel = heirLevel + 1" ng-include="'service_tree_element_renderer.html'">
556 <div ng-show="schemaElement.element.name != null">
557 <div ng-init = "elementKey=parentName + '_' + schemaElement.element.name + (schemaElement.repeatableHierarchicalPrefix != null ? schemaElement.repeatableHierarchicalPrefix : ''); tableStyle='table-level' + heirarchyLevel + '-tree'; tdLabelStyle='td-level' + heirarchyLevel +'-label-tree'" id="elementKey">
558 <table class="{{tableStyle}}">
560 <td style="text-align: left;vertical-align: top;" class="{{tdLabelStyle}}">
561 <div ng-mouseover="getContextMenu(schemaElement,elementKey)" context-menu="myContextDiv">
562 <span class="pull-left" ng-click="showUTMViewMsgHeader=!showUTMViewMsgHeader" ng-style="(schemaElement.type.recursive ||schemaElement.list) && {'color':'#0000FF'} || {'color': '#444444'}">
563 <i ng-class="showUTMViewMsgHeader == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
565 {{schemaElement.element.name}}
570 <div ng-if= "repeatableHeirarchicalElementMap !=null">
571 <div ng-if="repeatableHeirarchicalElementMap[elementKey] != null">
572 <div ng-repeat="repeatableElement in repeatableHeirarchicalElementMap[elementKey].repeatableElements">
573 <div ng-init="addRepeatableElement1(schemaElement, parentElement, elementKey, $index)">
576 <div ng-repeat="heirarchicalElement in repeatableHeirarchicalElementMap[elementKey].heirarchicalElements">
577 <div ng-init="addHierarchicalElement1(schemaElement, parentElement, elementKey, $index)">
583 <td class="td-blank"></td>
585 <td style="text-align: right;" class="td-tree">
586 <div ng-show="schemaElement.type.complexType == null">
587 <input type="checkbox" id="{{elementKey + '_checkbox'}}" ng-model="utmModelSchemaExtension.utmSchemaExtentionMap[elementKey].checked" ng-init="requiredValues[elementKey]=schemaElement.element.minOccurs;utmModelSchemaExtension.utmSchemaExtentionMap[elementKey].checked=(utmModelSchemaExtension.radioSelection == 'Required Only' && schemaElement.element.minOccurs !=0) || utmModelSchemaExtension.radioSelection == 'Select All' || utmModelSchemaExtension.utmSchemaExtentionMap[elementKey].checked" ng-change="onChange()"/>
590 <td class="td-blank"></td>
591 <td class="td-blank"></td>
592 <td style="text-align:center;word-wrap: break-word" class="td-default_value-tree"><label id="{{elementKey + '_label'}}"/>{{utmModelSchemaExtension.utmSchemaExtentionMap[elementKey].defaultValue}}</td>
594 <div style="margin-left: 10px"
595 ng-class="{hidden:!showUTMViewMsgHeader,chaldean:!showUTMViewMsgHeader}">
596 <div ng-if = "schemaElement.type != null && schemaElement.type.restriction != null">
597 <div ng-repeat="object in filteredObjects = (schemaElement.type.restriction.minExclusivesAndMinInclusivesAndMaxExclusives | filter: {name : 'enumeration'})">
598 {{object.value.value}}
604 <div ng-show="schemaElement.type.complexType != null">
605 <div ng-init="parKey=parentName + '_' + schemaElement.element.name + (schemaElement.repeatableHierarchicalPrefix != null ? schemaElement.repeatableHierarchicalPrefix : ''); heirLevel=heirarchyLevel; parElement=schemaElement">
606 <div style="margin-left: 10px"
607 ng-class="{hidden:!showUTMViewMsgHeader,chaldean:!showUTMViewMsgHeader}">
609 <div style="margin-left: 10px"
610 ng-repeat="schemaElement in schemaElement.type.elements" ng-init="currentElementName=schemaElement.element.name;parentName=parKey; parentElement=parElement; heirarchyLevel=heirLevel+1 ;" ng-include="'service_tree_element_renderer.html'">
618 <script type="text/ng-template" id="model_renderer.html">
620 <div ng-show="utmModels != null && utmModels.name != null">
622 <table class="{{tableStyle}}"> <tr>
623 <td class="{{tdLabelStyle}}">
624 <span class="pull-left" ng-click="showUTMViewModel=!showUTMViewModel">
626 ng-class="showUTMViewModel == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
632 <label ng-click="onSelectActivityModel($event.target.attributes.data.value)" data="{{utmModels.name}}" class="models" style="cursor:pointer;width:260px;" id="{{utmModels.name}}" ng-right-click="createSubModel(utmModels)" context-menu="mySubModelContext"> {{utmModels.name}} </label>
635 <td class="td-tree"></td>
636 <td class="td-default_value-tree"> </td>
638 <div style="margin-left: 10px"
639 ng-class="{hidden:showUTMViewModel,chaldean:showUTMViewModel}">
640 <div style="margin-left: 10px"
641 ng-repeat="utmModels in utmModels.subModels" ng-include="'model_renderer.html'">