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 <table class="table-tree">
316 <td class="td-label-tree" style="margin-top: 30px;">
327 <span class="pull-left" ng-click="showUTMViewInput=!showUTMViewInput">
328 <i ng-class="showUTMViewInput == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
338 <td class="td-default_value-tree" >
339 <table style="margin-top: 30px;">
348 <td class="td-blank"></td>
354 <div ng-show="isModel">
355 <table style="margin-top: -10px;width: 260px;margin-left: -116px;">
357 <td class="td-default_value-tree">
358 <input type="radio" ng-model="utmModelSchemaExtension.radioSelection"
359 ng-click="requiredOnly()"
360 value="Required Only"><b>Required Only</b>
364 <!-- <td class="td-default_value-tree">
365 <h6> <b>Default Value</b></h6>
371 <td style="text-align: left;" class="td-default_value-tree">
372 <input type="radio" ng-model="utmModelSchemaExtension.radioSelection"
373 ng-click="selectAll()"
374 value="Select All"> <b>Select All</b>
381 <td style="text-align: left;" class="td-default_value-tree">
382 <input type="radio" ng-model="utmModelSchemaExtension.radioSelection"
383 ng-click="unSelectAll()"
384 value="Unselect All"> <b>Unselect All</b>
394 <!-- <td class="td-blank"></td>
395 <td class="td-blank"></td> -->
396 <td class="td-default_value-tree">
397 <h6> <b>Default Value</b></h6>
407 <table class="table-tree" style="margin-top: -12px;>
409 <td class="td-label-tree">
411 <span class="pull-left"
412 ng-click="showUTMViewOutput=!showUTMViewOutput">
414 ng-class="showUTMViewOutput == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
417 <b>Service Output</b>
421 <td class="td-default_value-tree">
429 <table class="table-tree" style="margin-top: -12px;">
431 <td class="td-label-tree" >
433 <span class="pull-left"
434 ng-click="showUTMViewFault=!showUTMViewFault">
435 <i ng-class="showUTMViewFault == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
441 <td class="td-default_value-tree">
453 <span class="pull-left"
454 ng-click="showUTMViewTestSet=!showUTMViewTestSet">
456 ng-class="showUTMViewTestSet == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
459 <b ng-click="selectActivityTestSet()">Test Set</b>
462 <div style="margin-left: 15px;"
463 ng-class="{hidden:!showUTMViewTestSet,chaldean:!showUTMViewTestSet}">
464 <div ng-show=" modeltestset.activityTestCases.length>0" style="width: 250px">
465 <div ng-repeat="activityTestCase in modeltestset.activityTestCases">
467 <div ng-if="activityTestCase.version ==null">
469 <div ng-mouseover="selectTC(activityTestCase)"><b id="{{activityTestCase.testCaseName}}" data-stuff='{{activityTestCase}}' data-model='{{utmModels}}' class="TCS" style="cursor:pointer;">{{activityTestCase.testCaseName}}</b></div>
472 <div ng-if="activityTestCase.version !=null">
474 <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>
489 <!-- clds: width 100 instead of 70 -->
490 <div style="width: 100%;height:90vh" id="activity_modeler">
491 <!-- div style="width: 70%;height:90vh" id="activity_modeler" -->
493 <div class="panel panel-primary">
494 <div class="panel-heading">
495 <div style="color: white;">
497 <span class="pull-left">
498 <span id="modeler_name">Closed Loop Modeler</span>
500 <span class="pull-right" >
501 <span id="templa_name"></span>
503 <i ng-click="showTDRView=!showTDRView" ng-class="showTDRView == true ?'fa fa-plus-circle':'fa fa-minus-circle'"></i>
507 <div class="clearfix"></div>
509 <div ng-class="{hidden:showTDRView,chaldean:showTDRView}">
510 <div style="height: 83.5vh; width: 100%;">
511 <div class="panel-body" style="height: 83.5vh;padding: 0px;">
512 <div id="paletteDiv" style="width: 100%;height: 83.5vh;"
513 ng-show="isPalette" ng-include="'./modeler/dist/index.html'">
517 <!--Commented becoz i m not able to find the htmls-->
518 <!-- <div ng-show="isTestset && !isPalette && !isRequirementCoverage" style="width: 100%;height: 83.5vh;" ng-include src="'partials/portfolios/generate_testset.html'" ></div>
519 <div ng-show="!isTestset && !isPalette && isRequirementCoverage" style="width: 100%;height: 83.5vh;" ng-include src="'partials/portfolios/requirement_coverage.html'" ></div> -->
529 <!-- <div id="propertyExplorer" style="width: 20%;height:90vh" >
531 <div class="panel panel-primary">
532 <div class="panel-heading">
533 <div style="color: white;">
535 <span class="pull-left"> <span>Property Explorer</span>
537 </span> <span class="pull-right" ng-click="showTDRView=!showTDRView"><i
538 ng-class="showTDRView == true ?'fa fa-plus-circle':'fa fa-minus-circle'"></i></span>
541 <div class="clearfix"></div>
543 <div ng-class="{hidden:showTDRView,chaldean:showTDRView}">
544 <div class="panel-body" style="height: 79vh; overflow: auto;">
548 <div id="propertyDiv" ng-show="ispropertyExplorer" ng-include src="'./partials/portfolios/Property_Explorer.html'"></div>
560 <div ng-show ="isResult"> </div>
561 <script type="text/ng-template" id="service_tree_element_renderer.html">
565 <div ng-show="schemaElement.complexType != null">
568 <div ng-if="currentElementName == ''">
569 <div ng-init="currentElementName = schemaElement.complexType.name">
574 <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 ;">
576 <table class="{{tableStyle}}"> <tr>
577 <td class="{{tdLabelStyle}}">
578 <span class="pull-left" ng-click="showUTMViewMsgHeader=!showUTMViewMsgHeader">
580 ng-class="showUTMViewMsgHeader == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
584 {{currentElementName}}
588 <td class="td-tree"></td>
589 <td class="td-tree"></td>
590 <td class="td-tree"></td>
591 <td class="td-blank"></td>
592 <td class="td-default_value-tree"> </td>
597 <div style="margin-left: 10px"
598 ng-class="{hidden:showUTMViewMsgHeader,chaldean:showUTMViewMsgHeader}">
600 <div style="margin-left: 10px"
601 ng-repeat="schemaElement in schemaElement.elements" ng-init="currentElementName=objectName;parentName=ParentKey; parentElement=parElement; heirarchyLevel = heirLevel + 1" ng-include="'service_tree_element_renderer.html'">
609 <div ng-show="schemaElement.element.name != null">
610 <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">
611 <table class="{{tableStyle}}">
613 <td style="text-align: left;vertical-align: top;" class="{{tdLabelStyle}}">
614 <div ng-mouseover="getContextMenu(schemaElement,elementKey)" context-menu="myContextDiv">
615 <span class="pull-left" ng-click="showUTMViewMsgHeader=!showUTMViewMsgHeader" ng-style="(schemaElement.type.recursive ||schemaElement.list) && {'color':'#0000FF'} || {'color': '#444444'}">
616 <i ng-class="showUTMViewMsgHeader == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
618 {{schemaElement.element.name}}
623 <div ng-if= "repeatableHeirarchicalElementMap !=null">
624 <div ng-if="repeatableHeirarchicalElementMap[elementKey] != null">
625 <div ng-repeat="repeatableElement in repeatableHeirarchicalElementMap[elementKey].repeatableElements">
626 <div ng-init="addRepeatableElement1(schemaElement, parentElement, elementKey, $index)">
629 <div ng-repeat="heirarchicalElement in repeatableHeirarchicalElementMap[elementKey].heirarchicalElements">
630 <div ng-init="addHierarchicalElement1(schemaElement, parentElement, elementKey, $index)">
636 <td class="td-blank"></td>
638 <td style="text-align: right;" class="td-tree">
639 <div ng-show="schemaElement.type.complexType == null">
640 <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()"/>
643 <td class="td-blank"></td>
644 <td class="td-blank"></td>
645 <td style="text-align:center;word-wrap: break-word" class="td-default_value-tree"><label id="{{elementKey + '_label'}}"/>{{utmModelSchemaExtension.utmSchemaExtentionMap[elementKey].defaultValue}}</td>
647 <div style="margin-left: 10px"
648 ng-class="{hidden:!showUTMViewMsgHeader,chaldean:!showUTMViewMsgHeader}">
649 <div ng-if = "schemaElement.type != null && schemaElement.type.restriction != null">
650 <div ng-repeat="object in filteredObjects = (schemaElement.type.restriction.minExclusivesAndMinInclusivesAndMaxExclusives | filter: {name : 'enumeration'})">
651 {{object.value.value}}
657 <div ng-show="schemaElement.type.complexType != null">
658 <div ng-init="parKey=parentName + '_' + schemaElement.element.name + (schemaElement.repeatableHierarchicalPrefix != null ? schemaElement.repeatableHierarchicalPrefix : ''); heirLevel=heirarchyLevel; parElement=schemaElement">
659 <div style="margin-left: 10px"
660 ng-class="{hidden:!showUTMViewMsgHeader,chaldean:!showUTMViewMsgHeader}">
662 <div style="margin-left: 10px"
663 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'">
671 <script type="text/ng-template" id="model_renderer.html">
673 <div ng-show="utmModels != null && utmModels.name != null">
675 <table class="{{tableStyle}}"> <tr>
676 <td class="{{tdLabelStyle}}">
677 <span class="pull-left" ng-click="showUTMViewModel=!showUTMViewModel">
679 ng-class="showUTMViewModel == true ?'fa fa-plus-circle':'fa fa-minus-circle'">
685 <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>
688 <td class="td-tree"></td>
689 <td class="td-default_value-tree"> </td>
691 <div style="margin-left: 10px"
692 ng-class="{hidden:showUTMViewModel,chaldean:showUTMViewModel}">
693 <div style="margin-left: 10px"
694 ng-repeat="utmModels in utmModels.subModels" ng-include="'model_renderer.html'">