define([], function () {
'use strict';
- angular.module('app.yangman').controller('AugmentationModalCtrl', AugmentationModalCtrl);
+ angular.module('app.yangman').controller('YMAugmentationModalCtrl', YMAugmentationModalCtrl);
- AugmentationModalCtrl.$inject = ['$scope'];
+ YMAugmentationModalCtrl.$inject = ['$scope'];
- function AugmentationModalCtrl($scope){
+ function YMAugmentationModalCtrl($scope){
$scope.init = init;
/**
define([], function () {
'use strict';
- angular.module('app.yangman').controller('CaseCtrl', CaseCtrl);
+ angular.module('app.yangman').controller('YMCaseCtrl', YMCaseCtrl);
- CaseCtrl.$inject = ['$scope'];
+ YMCaseCtrl.$inject = ['$scope'];
- function CaseCtrl($scope){
+ function YMCaseCtrl($scope){
var yangCase = this;
yangCase.empty = ($scope.case.children.length === 0 ||
define([], function () {
'use strict';
- angular.module('app.yangman').controller('ChoiceCtrl', ChoiceCtrl);
+ angular.module('app.yangman').controller('YMChoiceCtrl', YMChoiceCtrl);
- ChoiceCtrl.$inject = ['$scope', 'constants'];
+ YMChoiceCtrl.$inject = ['$scope', 'constants'];
- function ChoiceCtrl($scope, constants){
+ function YMChoiceCtrl($scope, constants){
var yangChoice = this;
$scope.constants = constants;
define([], function () {
'use strict';
- angular.module('app.yangman').controller('ContainerCtrl', ContainerCtrl);
+ angular.module('app.yangman').controller('YMContainerCtrl', YMContainerCtrl);
- ContainerCtrl.$inject = ['$scope'];
+ YMContainerCtrl.$inject = ['$scope'];
- function ContainerCtrl($scope){
+ function YMContainerCtrl($scope){
var yangContainer = this;
// methods
define([], function () {
'use strict';
- angular.module('app.yangman').controller('InputCtrl', InputCtrl);
+ angular.module('app.yangman').controller('YMInputCtrl', YMInputCtrl);
- InputCtrl.$inject = ['$scope'];
+ YMInputCtrl.$inject = ['$scope'];
- function InputCtrl($scope){
+ function YMInputCtrl($scope){
var yangInput = this;
// methods
define([], function () {
'use strict';
- angular.module('app.yangman').controller('LeafListCtrl', LeafListCtrl);
+ angular.module('app.yangman').controller('YMLeafListCtrl', YMLeafListCtrl);
- LeafListCtrl.$inject = ['$scope'];
+ YMLeafListCtrl.$inject = ['$scope'];
- function LeafListCtrl($scope){
+ function YMLeafListCtrl($scope){
var yangLeafList = this;
// methods
define([], function () {
'use strict';
- angular.module('app.yangman').controller('LeafCtrl', LeafCtrl);
+ angular.module('app.yangman').controller('YMLeafCtrl', YMLeafCtrl);
- LeafCtrl.$inject = ['$scope'];
+ YMLeafCtrl.$inject = ['$scope'];
- function LeafCtrl($scope){
+ function YMLeafCtrl($scope){
var types = [
'binary',
'bits',
define([], function () {
'use strict';
- angular.module('app.yangman').controller('ListCtrl', ListCtrl);
+ angular.module('app.yangman').controller('YMListCtrl', YMListCtrl);
- ListCtrl.$inject = ['$scope', 'ListFilteringService', 'NodeWrapperService', 'constants'];
+ YMListCtrl.$inject = ['$scope', 'ListFilteringService', 'NodeWrapperService', 'constants'];
- function ListCtrl($scope, ListFilteringService, NodeWrapperService, constants){
+ function YMListCtrl($scope, ListFilteringService, NodeWrapperService, constants){
var yangList = this;
$scope.actElement = null;
define([], function () {
'use strict';
- angular.module('app.yangman').controller('OutputCtrl', OutputCtrl);
+ angular.module('app.yangman').controller('YMOutputCtrl', YMOutputCtrl);
- OutputCtrl.$inject = ['$scope'];
+ YMOutputCtrl.$inject = ['$scope'];
- function OutputCtrl($scope){
+ function YMOutputCtrl($scope){
var yangOutput = this;
yangOutput.notEditable = true;
define([], function () {
'use strict';
- angular.module('app.yangman').controller('RpcCtrl', RpcCtrl);
+ angular.module('app.yangman').controller('YMRpcCtrl', YMRpcCtrl);
- RpcCtrl.$inject = ['$scope'];
+ YMRpcCtrl.$inject = ['$scope'];
- function RpcCtrl($scope){
+ function YMRpcCtrl($scope){
var yangRpc = this;
// methods
define([], function () {
'use strict';
- angular.module('app.yangman').controller('TypeBitCtrl', TypeBitCtrl);
+ angular.module('app.yangman').controller('YMTypeBitCtrl', YMTypeBitCtrl);
- TypeBitCtrl.$inject = ['$scope'];
+ YMTypeBitCtrl.$inject = ['$scope'];
- function TypeBitCtrl($scope){
+ function YMTypeBitCtrl($scope){
var yangTypeBit = this;
// methods
define([], function () {
'use strict';
- angular.module('app.yangman').controller('TypeBooleanCtrl', TypeBooleanCtrl);
+ angular.module('app.yangman').controller('YMTypeBooleanCtrl', YMTypeBooleanCtrl);
- TypeBooleanCtrl.$inject = ['$scope'];
+ YMTypeBooleanCtrl.$inject = ['$scope'];
- function TypeBooleanCtrl($scope){
+ function YMTypeBooleanCtrl($scope){
var yangTypeBolean = this;
$scope.$watch('node.value', function(){
define([], function () {
'use strict';
- angular.module('app.yangman').controller('TypeEmptyCtrl', TypeEmptyCtrl);
+ angular.module('app.yangman').controller('YMTypeEmptyCtrl', YMTypeEmptyCtrl);
- TypeEmptyCtrl.$inject = ['$scope'];
+ YMTypeEmptyCtrl.$inject = ['$scope'];
- function TypeEmptyCtrl($scope){
+ function YMTypeEmptyCtrl($scope){
var yangTypeEmpty = this;
// methods
yangTypeEmpty.valueChanged = valueChanged;
define([], function () {
'use strict';
- angular.module('app.yangman').controller('TypeEnumCtrl', TypeEnumCtrl);
+ angular.module('app.yangman').controller('YMTypeEnumCtrl', YMTypeEnumCtrl);
- TypeEnumCtrl.$inject = ['$scope'];
+ YMTypeEnumCtrl.$inject = ['$scope'];
- function TypeEnumCtrl($scope){
+ function YMTypeEnumCtrl($scope){
var yangTypeEnum = this;
// methods
define([], function () {
'use strict';
- angular.module('app.yangman').controller('TypeCtrl', TypeCtrl);
+ angular.module('app.yangman').controller('YMTypeCtrl', YMTypeCtrl);
- TypeCtrl.$inject = ['$scope'];
+ YMTypeCtrl.$inject = ['$scope'];
- function TypeCtrl($scope){
+ function YMTypeCtrl($scope){
var yangType = this;
// methods
define([
- 'app/yangman/controllers/form/augmentation-modal.controller',
- 'app/yangman/controllers/form/case.controller',
- 'app/yangman/controllers/form/container.controller',
- 'app/yangman/controllers/form/choice.controller',
- 'app/yangman/controllers/form/input.controller',
- 'app/yangman/controllers/form/leaf.controller',
- 'app/yangman/controllers/form/leaf-list.controller',
- 'app/yangman/controllers/form/list.controller',
- 'app/yangman/controllers/form/output.controller',
- 'app/yangman/controllers/form/rpc.controller',
- 'app/yangman/controllers/form/type.controller',
- 'app/yangman/controllers/form/type-bit.controller',
- 'app/yangman/controllers/form/type-boolean.controller',
- 'app/yangman/controllers/form/type-empty.controller',
- 'app/yangman/controllers/form/type-enum.controller',
+ 'app/yangman/controllers/form/ym-augmentation-modal.controller',
+ 'app/yangman/controllers/form/ym-case.controller',
+ 'app/yangman/controllers/form/ym-container.controller',
+ 'app/yangman/controllers/form/ym-choice.controller',
+ 'app/yangman/controllers/form/ym-input.controller',
+ 'app/yangman/controllers/form/ym-leaf.controller',
+ 'app/yangman/controllers/form/ym-leaf-list.controller',
+ 'app/yangman/controllers/form/ym-list.controller',
+ 'app/yangman/controllers/form/ym-output.controller',
+ 'app/yangman/controllers/form/ym-rpc.controller',
+ 'app/yangman/controllers/form/ym-type.controller',
+ 'app/yangman/controllers/form/ym-type-bit.controller',
+ 'app/yangman/controllers/form/ym-type-boolean.controller',
+ 'app/yangman/controllers/form/ym-type-empty.controller',
+ 'app/yangman/controllers/form/ym-type-enum.controller',
'app/yangman/directives/yang-form-menu.directive',
'app/yangman/directives/ym-info-box.directive',
], function () {
-<div ng-controller="CaseCtrl as yangCase" ng-hide="yangCase.empty">
+<div ng-controller="YMCaseCtrl as yangCase" ng-hide="yangCase.empty">
<!-- case's children -->
<div ng-repeat="node in case.getChildren(null,null,constants.NODE_UI_DISPLAY) | ymOnlyConfigElem"
ng-include="yangForm.viewPath + '/config/' + node.type + '.tpl.html'"
ng-hide="node.augmentationId && !augmentations.getAugmentation(node.parent, node.augmentationId).expanded"></div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="ChoiceCtrl as yangChoice"
+<div ng-controller="YMChoiceCtrl as yangChoice"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}">
ng-include="yangForm.viewPath + '/config/' + case.type +'.tpl.html'"
ng-show="node.choice.id === case.id && node.expanded"
ng-if="!(case.augmentationId && !augmentations.getAugmentation(case.parent, case.augmentationId).expanded)"></div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="ContainerCtrl as yangContainer"
+<div ng-controller="YMContainerCtrl as yangContainer"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}">
ng-hide="node.augmentationId && !augmentations.getAugmentation(node.parent, node.augmentationId).expanded">
</div>
</div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="InputCtrl as yangInput"
+<div ng-controller="YMInputCtrl as yangInput"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}">
ng-hide="node.augmentationId && !augmentations.getAugmentation(node.parent, node.augmentationId).expanded">
</div>
</div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="LeafListCtrl as yangLeafList"
+<div ng-controller="YMLeafListCtrl as yangLeafList"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}">
</md-icon>
</md-input-container>
</div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="LeafCtrl as yangLeaf"
+<div ng-controller="YMLeafCtrl as yangLeaf"
layout="row"
layout-align="start {{yangLeaf.getLeafCentering()}}"
class="yangmanModule__right-panel__form__leaf-container {{yangLeaf.getLeafType()}}">
<!-- Empty placeholder for better look -->
<div class="menu-placeholder" ng-if="!yangLeaf.isActionMenu() && !yangLeaf.isNodeInfo()"></div>
- <div ng-controller="TypeCtrl as yangType"
+ <div ng-controller="YMTypeCtrl as yangType"
ng-repeat="type in node.getChildren('type')"
ng-include="yangForm.viewPath + '/config/types/' + yangLeaf.getLeafType() + '.tpl.html'"
{{yangLeaf.getLeafType() === 'union' ? 'flex="grow"' : ''}}
layout="row">
</div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="ListCtrl as yangList"
+<div ng-controller="YMListCtrl as yangList"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}"
ng-init="yangList.init()">
-<div ng-controller="OutputCtrl as yangOutput"
+<div ng-controller="YMOutputCtrl as yangOutput"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}">
ng-hide="node.augmentationId && !augmentations.getAugmentation(node.parent, node.augmentationId).expanded">
</div>
</div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="RpcCtrl as yangRpc"
+<div ng-controller="YMRpcCtrl as yangRpc"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}">
<div ng-repeat="node in node.getChildren(null,null,constants.NODE_UI_DISPLAY) | ymOnlyConfigElem"
ng-include="yangForm.viewPath + '/config/' + node.type + '.tpl.html'"></div>
</div>
-</div>
\ No newline at end of file
+</div>
-<section ng-controller="TypeBitCtrl as yangTypeBit"
+<section ng-controller="YMTypeBitCtrl as yangTypeBit"
layout="row"
flex="50"
class="md-whiteframe-z2 box-container"
aria-label="{{bit.label}}">
{{bit.label}}
</md-checkbox>
-</section>
\ No newline at end of file
+</section>
-<section ng-controller="TypeBooleanCtrl as yangTypeBolean" flex>
+<section ng-controller="YMTypeBooleanCtrl as yangTypeBolean" flex>
<md-switch ng-model="node.value"
id="{{ node.label + node.id }}"
aria-label="Boolean"
-<section ng-controller="TypeEmptyCtrl as yangTypeEmpty"
+<section ng-controller="YMTypeEmptyCtrl as yangTypeEmpty"
layout="row"
flex="50"
class="md-whiteframe-z2 box-container"
ng-change="yangTypeEmpty.valueChanged()"
ng-disabled="{{ yangOutput.notEditable }}"
aria-label="{{type.label}}"></md-checkbox>
-</section>
\ No newline at end of file
+</section>
-<md-input-container ng-controller="TypeEnumCtrl as yangTypeEnum">
+<md-input-container ng-controller="YMTypeEnumCtrl as yangTypeEnum">
<md-select ng-model="type.selEnum" md-on-close="yangTypeEnum.valueChanged()" ng-disabled="{{ yangOutput.notEditable }}">
<md-option ng-repeat="enum in type.getChildren('enum')" ng-value="enum">
{{enum.label}}
</md-option>
</md-select>
-</md-input-container>
\ No newline at end of file
+</md-input-container>
-<div ng-controller="CaseCtrl as yangCase" ng-show="case.isFilled() && yangCase.empty">
+<div ng-controller="YMCaseCtrl as yangCase" ng-show="case.isFilled() && yangCase.empty">
<!-- case's children -->
<div ng-repeat="node in case.getChildren(null,null,constants.NODE_UI_DISPLAY)"
ng-include="yangForm.viewPath + '/operational/' + node.type + '.tpl.html'"></div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="ChoiceCtrl as yangChoice"
+<div ng-controller="YMChoiceCtrl as yangChoice"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}"
ng-show="node.isFilled()">
ng-include="yangForm.viewPath + '/operational/' + case.type +'.tpl.html'"
ng-show="node.choice.id === case.id && node.expanded"
ng-if="!(case.augmentationId && !augmentations.getAugmentation(case.parent, case.augmentationId).expanded)"></div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="ContainerCtrl as yangContainer"
+<div ng-controller="YMContainerCtrl as yangContainer"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}"
ng-show="node.isFilled()">
ng-hide="node.augmentationId && !augmentations.getAugmentation(node.parent, node.augmentationId).expanded">
</div>
</div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="InputCtrl as yangInput"
+<div ng-controller="YMInputCtrl as yangInput"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}"
ng-show="node.isFilled()">
ng-hide="node.augmentationId && !augmentations.getAugmentation(node.parent, node.augmentationId).expanded">
</div>
</div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="LeafListCtrl as yangLeafList"
+<div ng-controller="YMLeafListCtrl as yangLeafList"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}"
ng-show="node.isFilled()">
<input ng-model="elem.value" aria-label="{{elem.value}}" ng-disabled="true">
</md-input-container>
</div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="LeafCtrl as yanfLeaf"
+<div ng-controller="YMLeafCtrl as yanfLeaf"
layout="row"
layout-align="start center"
class="yangmanModule__right-panel__form__leaf-container"
<md-input-container>
<input ng-model="node.value" aria-label="{{node.value}}" ng-disabled="true">
</md-input-container>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="ListCtrl as yangList"
+<div ng-controller="YMListCtrl as yangList"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}"
ng-show="node.isFilled()">
-<div ng-controller="OutputCtrl as yangOutput"
+<div ng-controller="YMOutputCtrl as yangOutput"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}"
ng-show="node.isFilled()">
ng-hide="node.augmentationId && !augmentations.getAugmentation(node.parent, node.augmentationId).expanded">
</div>
</div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="RpcCtrl as yangRpc"
+<div ng-controller="YMRpcCtrl as yangRpc"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}"
ng-show="node.isFilled()">
<div ng-repeat="node in node.getChildren(null,null,constants.NODE_UI_DISPLAY)"
ng-include="yangForm.viewPath + '/operational/' + node.type + '.tpl.html'"></div>
</div>
-</div>
\ No newline at end of file
+</div>
-<div ng-controller="RpcCtrl as yangRpc"
+<div ng-controller="YMRpcCtrl as yangRpc"
class="yangmanModule__right-panel__form__element-container"
ng-class="{'expanded' : node.expanded}">
<div ng-repeat="node in node.getChildren(null,null,constants.NODE_UI_DISPLAY) | ymOnlyConfigElem"
ng-include="yangForm.viewPath + '/config/' + node.type + '.tpl.html'"></div>
</div>
-</div>
\ No newline at end of file
+</div>
'ngMessages',
'common/yangutils/yangutils.module',
'codemirror',
+ 'codeMirror-showHint',
'codeMirror-jsonParametersHint',
'codeMirror-javascriptMode',
'codeMirror-matchBrackets',