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;
46 background-color: #337ab7;
54 border: 0px solid black;
57 vertical-align: bottom;
61 border: 0px solid black;
66 .td-level1-label-tree {
76 .td-level2-label-tree {
86 .td-level3-label-tree {
96 .td-level4-label-tree {
106 .td-level5-label-tree {
116 .td-level6-label-tree {
126 .td-level7-label-tree {
136 .td-level8-label-tree {
147 .td-level9-label-tree {
158 .td-level10-label-tree {
164 .td-default_value-tree {
165 border: 0px solid black;
167 width: 180px !important;
168 vertical-align: bottom;
169 text-align: left !important;
182 border: 0px solid black;
186 text-align: center !important;
189 /* #contextmenu-node{
191 background-color: white;
192 border: solid #CCCCCC 1px;
203 line-height: 1.42857143;
208 .contextmenu-item:hover{
209 background-color: #3c8dbc;
216 background-color: white;
217 border: solid #CCCCCC 1px;
229 line-height: 1.42857143;
234 .contextmenu-item:hover{
235 background-color: #3c8dbc;
241 <div attribute-test="cldsmodelling" class="container-fluid" ng-controller="ActivityModellingCtrl" style="height: 90vh;margin:0;padding:0;overflow: hidden;">
242 <div id="utm-splitter" class="k-content" style="height: 90vh;overflow: hidden;">
243 <div attribute-test="cldsmodelling2" id="UTMdashboard" style="height: 90vh;overflow: hidden;margin-left: 2px;margin-right: 2px;">
244 <div style="display: none;" id="projectExplorer">
245 <!-- clds: remove project explorer - use display: none -->
246 <!-- div style="width: 30%; height: 90vh;overflow: hidden;" id="projectExplorer" -->
247 <div class="panel panel-primary">
248 <div class="panel-heading">
249 <div style="color: white;">
251 <span class="pull-left"> <span>Project Explorer</span>
252 </span> <span class="pull-right" ng-click="showUTMView=!showUTMView"><i
253 ng-class="showUTMView == true ?'fa fa-plus-circle':'fa fa-minus-circle'"></i></span>
256 <div class="clearfix"></div>
258 <div ng-class="{hidden:showUTMView,chaldean:showUTMView}">
259 <div class="panel-body" style="height: 79vh; overflow: auto;">
260 <div ng-if="projectName != null" >
263 <span class="pull-left"
264 ng-click="showUTMViewMain=!showUTMViewMain"> <i
265 ng-class="showUTMViewMain == true ?'fa fa-plus-circle':'fa fa-minus-circle'"></i>
266 </span> <b>{{projectName}} </b>
271 <div style="margin-left: 5px"
272 ng-class="{hidden:showUTMViewMain,chaldean:showUTMViewMain}">
276 <span class="pull-left"
277 ng-click="showUTMViewModel=!showUTMViewModel"> <i
278 ng-class="showUTMViewModel == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
283 <div style="margin-left: 15px"
284 ng-class="{hidden:showUTMViewModel,chaldean:showUTMViewModel}">
286 <div id="div_models" ng-include="'model_renderer.html'">
293 <span class="pull-left"
294 ng-click="showUTMViewService=!showUTMViewService"> <i
295 ng-class="showUTMViewService == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
297 </span><b>Service</b>
301 <div style="margin-left: 10px"
302 ng-class="{hidden:showUTMViewService,chaldean:showUTMViewService}">
304 <div style="width: 190px;">
306 <span class="pull-left"
307 ng-click="showUTMViewDtl=!showUTMViewDtl"> <i
308 ng-class="showUTMViewDtl == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
310 </span><b>Service Details</b>
314 <div style="margin-left: 10px"
315 ng-class="{hidden:!showUTMViewDtl,chaldean:!showUTMViewDtl}">
318 <div ng-show="serviceInfo != null">
320 <span class="pull-left"
321 ng-click="showUTMViewServiceName=!showUTMViewServiceName">
323 ng-class="showUTMViewServiceName == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
325 </span><b>Service Name</b>
327 <div style="margin-left: 10px"
328 ng-class="{hidden:!showUTMViewServiceName,chaldean:!showUTMViewServiceName}">
329 <div style="margin-left: 10px">
330 {{serviceInfo.service.name}}</div>
335 <div ng-show="serviceInfo != null">
337 <span class="pull-left"
338 ng-click="showUTMViewPortName=!showUTMViewPortName">
340 ng-class="showUTMViewPortName == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
342 </span><b>Port Name</b>
344 <div style="margin-left: 10px"
345 ng-class="{hidden:!showUTMViewPortName,chaldean:!showUTMViewPortName}">
346 <div style="margin-left: 10px">
347 {{serviceInfo.service.ports[0].name}}</div>
351 <div ng-show="serviceInfo != null">
353 <span class="pull-left"
354 ng-click="showUTMViewBindingName=!showUTMViewBindingName">
356 ng-class="showUTMViewBindingName == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
358 </span><b> Binding Name</b>
360 <div style="margin-left: 10px"
361 ng-class="{hidden:!showUTMViewBindingName,chaldean:!showUTMViewBindingName}">
362 <div style="margin-left: 10px">
363 {{serviceInfo.bindingInfo.binding.name}}</div>
367 <div ng-show="serviceInfo != null">
369 <span class="pull-left"
370 ng-click="showUTMViewBindingPortType=!showUTMViewBindingPortType">
371 <i ng-class="showUTMViewBindingPortType == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
373 </span><b>Binding Port Type</b>
375 <div style="margin-left: 10px"
376 ng-class="{hidden:!showUTMViewBindingPortType,chaldean:!showUTMViewBindingPortType}">
377 <div style="margin-left: 10px">
378 {{serviceInfo.bindingInfo.portTypeInfo.portType.name}}</div>
382 <div ng-show="serviceInfo != null">
384 <span class="pull-left"
385 ng-click="showUTMViewOperation=!showUTMViewOperation">
387 ng-class="showUTMViewOperation == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
389 </span><b>Operation Name</b>
391 <div style="margin-left: 10px"
392 ng-class="{hidden:!showUTMViewOperation,chaldean:!showUTMViewOperation}">
393 <div style="margin-left: 10px">
394 {{serviceInfo.bindingInfo.portTypeInfo.operationInfo[0].operation.name}}</div>
399 <table class="table-tree">
401 <td class="td-label-tree" style="margin-top: 30px;">
412 <span class="pull-left" ng-click="showUTMViewInput=!showUTMViewInput">
413 <i ng-class="showUTMViewInput == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
423 <td class="td-default_value-tree" >
424 <table style="margin-top: 30px;">
433 <td class="td-blank"></td>
439 <div ng-show="isModel">
440 <table style="margin-top: -10px;width: 260px;margin-left: -116px;">
442 <td class="td-default_value-tree">
443 <input type="radio" ng-model="utmModelSchemaExtension.radioSelection"
444 ng-click="requiredOnly()"
445 value="Required Only"><b>Required Only</b>
449 <!-- <td class="td-default_value-tree">
450 <h6> <b>Default Value</b></h6>
456 <td style="text-align: left;" class="td-default_value-tree">
457 <input type="radio" ng-model="utmModelSchemaExtension.radioSelection"
458 ng-click="selectAll()"
459 value="Select All"> <b>Select All</b>
466 <td style="text-align: left;" class="td-default_value-tree">
467 <input type="radio" ng-model="utmModelSchemaExtension.radioSelection"
468 ng-click="unSelectAll()"
469 value="Unselect All"> <b>Unselect All</b>
479 <!-- <td class="td-blank"></td>
480 <td class="td-blank"></td> -->
481 <td class="td-default_value-tree">
482 <h6> <b>Default Value</b></h6>
491 <div style="margin-left: 20px;margin-top: -12px;"
492 ng-class="{hidden:showUTMViewInput,chaldean:showUTMViewInput}">
494 <div ng-show="serviceInputPartInfo.length>0" >
496 <!-- <div ng-repeat="inputInfo in serviceInputPartInfo">
497 inputInfo :: {{inputInfo}}
498 <div ng-repeat="schemaElement in inputInfo.schemaElements" ng-include="'service_tree_element_renderer.html'" ng-init="currentElementName= inputInfo.part.name;parentName='ServiceInput'; parentElement=inputInfo; heirarchyLevel=1">
503 <div ng-repeat="inputInfo in serviceInputPartInfo">
504 <div class="inputInfoClass" ng-init="currentElementName= inputInfo.part.name;parentName='ServiceInput'; parentElement=inputInfo; heirarchyLevel=1;infoType=inputInfo"></div>
512 <table class="table-tree" style="margin-top: -12px;>
514 <td class="td-label-tree">
516 <span class="pull-left"
517 ng-click="showUTMViewOutput=!showUTMViewOutput">
519 ng-class="showUTMViewOutput == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
522 <b>Service Output</b>
526 <td class="td-default_value-tree">
532 <div style="margin-left: 20px;"
533 ng-class="{hidden:showUTMViewOutput,chaldean:showUTMViewOutput}">
534 <div ng-show="serviceOutputPartInfo.length>0" style="width: 250px">
536 <!-- <div ng-repeat="outputInfo in serviceOutputPartInfo" >
537 outputInfo::: {{outputInfo}}
538 <div ng-repeat="schemaElement in outputInfo.schemaElements" ng-include="'service_tree_element_renderer.html'" ng-init="currentElementName=outputInfo.part.name;parentName='ServiceOutput'; parentElement=outputInfo; heirarchyLevel=1">
541 <div ng-repeat="outputInfo in serviceOutputPartInfo">
542 <div class="inputInfoClass" ng-init="currentElementName=outputInfo.part.name;parentName='ServiceOutput'; parentElement=outputInfo; heirarchyLevel=1; infoType=outputInfo"></div>
548 <table class="table-tree" style="margin-top: -12px;">
550 <td class="td-label-tree" >
552 <span class="pull-left"
553 ng-click="showUTMViewFault=!showUTMViewFault">
554 <i ng-class="showUTMViewFault == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
560 <td class="td-default_value-tree">
566 <div style="margin-left: 20px;"
567 ng-class="{hidden:showUTMViewFault,chaldean:showUTMViewFault}">
569 <div ng-show="servicefaultPartInfo.length>0" style="width: 250px">
571 <!-- <div ng-repeat="faultInfo in servicefaultPartInfo" style="margin-top: -12px;">
572 faultInfo ::::{{faultInfo}}
573 <div ng-repeat="schemaElement in faultInfo.schemaElements" ng-include="'service_tree_element_renderer.html'" ng-init="currentElementName=faultInfo.schemaElements[0].name;parentName='ServiceFault'; parentElement=faultInfo; heirarchyLevel=1">
576 <div ng-repeat="faultInfo in servicefaultPartInfo">
577 <div class="inputInfoClass" ng-init="currentElementName=faultInfo.part.name;parentName='ServiceFault'; parentElement=faultInfo; heirarchyLevel=1; infoType=faultInfo"></div>
588 <span class="pull-left"
589 ng-click="showUTMViewTestSet=!showUTMViewTestSet">
591 ng-class="showUTMViewTestSet == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
594 <b ng-click="selectActivityTestSet()">Test Set</b>
597 <div style="margin-left: 15px;"
598 ng-class="{hidden:!showUTMViewTestSet,chaldean:!showUTMViewTestSet}">
599 <div ng-show=" modeltestset.activityTestCases.length>0" style="width: 250px">
600 <div ng-repeat="activityTestCase in modeltestset.activityTestCases">
602 <div ng-if="activityTestCase.version ==null">
604 <div ng-mouseover="selectTC(activityTestCase)"><b id="{{activityTestCase.testCaseName}}" data-stuff='{{activityTestCase}}' data-model='{{utmModels}}' class="TCS" style="cursor:pointer;">{{activityTestCase.testCaseName}}</b></div>
607 <div ng-if="activityTestCase.version !=null">
609 <div ng-mouseover="selectTC(activityTestCase)"><b id="{{activityTestCase.testCaseName}}" data-stuff='{{activityTestCase}}' data-model='{{utmModels}}' class="TCS" style="cursor:pointer;">{{activityTestCase.testCaseName + "_" + activityTestCase.version}}</b></div>
624 <!-- clds: width 100 instead of 70 -->
625 <div style="width: 100%;height:90vh" id="activity_modeler">
626 <!-- div style="width: 70%;height:90vh" id="activity_modeler" -->
628 <div class="panel panel-primary">
629 <div class="panel-heading">
630 <div style="color: white;">
632 <span class="pull-left">
633 <span id="modeler_name">Closed Loop Modeler</span>
635 <span class="pull-right" >
636 <span id="templa_name"></span>
638 <i ng-click="showTDRView=!showTDRView" ng-class="showTDRView == true ?'fa fa-plus-circle':'fa fa-minus-circle'"></i>
642 <div class="clearfix"></div>
644 <div ng-class="{hidden:showTDRView,chaldean:showTDRView}">
645 <div style="height: 83.5vh; width: 100%;">
646 <div class="panel-body" style="height: 83.5vh;padding: 0px;">
647 <div id="paletteDiv" style="width: 100%;height: 83.5vh;"
648 ng-show="isPalette" ng-include="'./modeler/dist/index.html'">
652 <!--Commented becoz i m not able to find the htmls-->
653 <!-- <div ng-show="isTestset && !isPalette && !isRequirementCoverage" style="width: 100%;height: 83.5vh;" ng-include src="'partials/portfolios/generate_testset.html'" ></div>
654 <div ng-show="!isTestset && !isPalette && isRequirementCoverage" style="width: 100%;height: 83.5vh;" ng-include src="'partials/portfolios/requirement_coverage.html'" ></div> -->
664 <!-- <div id="propertyExplorer" style="width: 20%;height:90vh" >
666 <div class="panel panel-primary">
667 <div class="panel-heading">
668 <div style="color: white;">
670 <span class="pull-left"> <span>Property Explorer</span>
672 </span> <span class="pull-right" ng-click="showTDRView=!showTDRView"><i
673 ng-class="showTDRView == true ?'fa fa-plus-circle':'fa fa-minus-circle'"></i></span>
676 <div class="clearfix"></div>
678 <div ng-class="{hidden:showTDRView,chaldean:showTDRView}">
679 <div class="panel-body" style="height: 79vh; overflow: auto;">
683 <div id="propertyDiv" ng-show="ispropertyExplorer" ng-include src="'./partials/portfolios/Property_Explorer.html'"></div>
695 <div ng-show ="isResult"> </div>
696 <script type="text/ng-template" id="service_tree_element_renderer.html">
700 <div ng-show="schemaElement.complexType != null">
703 <div ng-if="currentElementName == ''">
704 <div ng-init="currentElementName = schemaElement.complexType.name">
709 <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 ;">
711 <table class="{{tableStyle}}"> <tr>
712 <td class="{{tdLabelStyle}}">
713 <span class="pull-left" ng-click="showUTMViewMsgHeader=!showUTMViewMsgHeader">
715 ng-class="showUTMViewMsgHeader == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
719 {{currentElementName}}
723 <td class="td-tree"></td>
724 <td class="td-tree"></td>
725 <td class="td-tree"></td>
726 <td class="td-blank"></td>
727 <td class="td-default_value-tree"> </td>
732 <div style="margin-left: 10px"
733 ng-class="{hidden:showUTMViewMsgHeader,chaldean:showUTMViewMsgHeader}">
735 <div style="margin-left: 10px"
736 ng-repeat="schemaElement in schemaElement.elements" ng-init="currentElementName=objectName;parentName=ParentKey; parentElement=parElement; heirarchyLevel = heirLevel + 1" ng-include="'service_tree_element_renderer.html'">
744 <div ng-show="schemaElement.element.name != null">
745 <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">
746 <table class="{{tableStyle}}">
748 <td style="text-align: left;vertical-align: top;" class="{{tdLabelStyle}}">
749 <div ng-mouseover="getContextMenu(schemaElement,elementKey)" context-menu="myContextDiv">
750 <span class="pull-left" ng-click="showUTMViewMsgHeader=!showUTMViewMsgHeader" ng-style="(schemaElement.type.recursive ||schemaElement.list) && {'color':'#0000FF'} || {'color': '#444444'}">
751 <i ng-class="showUTMViewMsgHeader == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
753 {{schemaElement.element.name}}
758 <div ng-if= "repeatableHeirarchicalElementMap !=null">
759 <div ng-if="repeatableHeirarchicalElementMap[elementKey] != null">
760 <div ng-repeat="repeatableElement in repeatableHeirarchicalElementMap[elementKey].repeatableElements">
761 <div ng-init="addRepeatableElement1(schemaElement, parentElement, elementKey, $index)">
764 <div ng-repeat="heirarchicalElement in repeatableHeirarchicalElementMap[elementKey].heirarchicalElements">
765 <div ng-init="addHierarchicalElement1(schemaElement, parentElement, elementKey, $index)">
771 <td class="td-blank"></td>
773 <td style="text-align: right;" class="td-tree">
774 <div ng-show="schemaElement.type.complexType == null">
775 <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()"/>
778 <td class="td-blank"></td>
779 <td class="td-blank"></td>
780 <td style="text-align:center;word-wrap: break-word" class="td-default_value-tree"><label id="{{elementKey + '_label'}}"/>{{utmModelSchemaExtension.utmSchemaExtentionMap[elementKey].defaultValue}}</td>
782 <div style="margin-left: 10px"
783 ng-class="{hidden:!showUTMViewMsgHeader,chaldean:!showUTMViewMsgHeader}">
784 <div ng-if = "schemaElement.type != null && schemaElement.type.restriction != null">
785 <div ng-repeat="object in filteredObjects = (schemaElement.type.restriction.minExclusivesAndMinInclusivesAndMaxExclusives | filter: {name : 'enumeration'})">
786 {{object.value.value}}
792 <div ng-show="schemaElement.type.complexType != null">
793 <div ng-init="parKey=parentName + '_' + schemaElement.element.name + (schemaElement.repeatableHierarchicalPrefix != null ? schemaElement.repeatableHierarchicalPrefix : ''); heirLevel=heirarchyLevel; parElement=schemaElement">
794 <div style="margin-left: 10px"
795 ng-class="{hidden:!showUTMViewMsgHeader,chaldean:!showUTMViewMsgHeader}">
797 <div style="margin-left: 10px"
798 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'">
806 <script type="text/ng-template" id="model_renderer.html">
808 <div ng-show="utmModels != null && utmModels.name != null">
810 <table class="{{tableStyle}}"> <tr>
811 <td class="{{tdLabelStyle}}">
812 <span class="pull-left" ng-click="showUTMViewModel=!showUTMViewModel">
814 ng-class="showUTMViewModel == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
820 <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>
823 <td class="td-tree"></td>
824 <td class="td-default_value-tree"> </td>
826 <div style="margin-left: 10px"
827 ng-class="{hidden:showUTMViewModel,chaldean:showUTMViewModel}">
828 <div style="margin-left: 10px"
829 ng-repeat="utmModels in utmModels.subModels" ng-include="'model_renderer.html'">