@ardimedia/angular-portal-azure 0.2.88 → 0.2.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apn.js +42 -36
- package/directives/nav/nav.ts +36 -36
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -1050,42 +1050,48 @@ var angularportalazure;
|
|
|
1050
1050
|
})(angularportalazure || (angularportalazure = {}));
|
|
1051
1051
|
var angularportalazure;
|
|
1052
1052
|
(function (angularportalazure) {
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
angular.
|
|
1053
|
+
nav.$inject = ['angularportalazure.portalService'];
|
|
1054
|
+
function nav(portalService) {
|
|
1055
|
+
return {
|
|
1056
|
+
restrict: 'E',
|
|
1057
|
+
transclude: true,
|
|
1058
|
+
scope: {},
|
|
1059
|
+
bindToController: { vm: '=' },
|
|
1060
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
1061
|
+
link: function (scope, element, attrs, controller) {
|
|
1062
|
+
angular.forEach(controller.items, function (item) {
|
|
1063
|
+
// Set some default values, depending on existing values
|
|
1064
|
+
if (item.isVisible == undefined) {
|
|
1065
|
+
item.isVisible = true;
|
|
1066
|
+
}
|
|
1067
|
+
if (item.title == undefined || item.title == '') {
|
|
1068
|
+
item.style = { cursor: 'default' };
|
|
1069
|
+
}
|
|
1070
|
+
if (item.bladePath == undefined || item.bladePath == '') {
|
|
1071
|
+
item.style = { cursor: 'default' };
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
},
|
|
1075
|
+
controller: function () {
|
|
1076
|
+
//this.$onInit = function () {
|
|
1077
|
+
// this.close = function () {
|
|
1078
|
+
// portalService.bladeArea.clearLastLevel();
|
|
1079
|
+
// };
|
|
1080
|
+
//};
|
|
1081
|
+
},
|
|
1082
|
+
controllerAs: '$ctrl'
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
angular.module('angularportalazure').directive('nav', nav);
|
|
1086
|
+
//var nav = {
|
|
1087
|
+
// transclude: true,
|
|
1088
|
+
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
1089
|
+
// controller: function () { },
|
|
1090
|
+
// bindings: {
|
|
1091
|
+
// vm: '='
|
|
1092
|
+
// }
|
|
1093
|
+
//};
|
|
1094
|
+
//angular.module('angularportalazure').component('nav', nav);
|
|
1089
1095
|
})(angularportalazure || (angularportalazure = {}));
|
|
1090
1096
|
/// <reference path="bladearea.ts" />
|
|
1091
1097
|
/// <reference path="debug.ts" />
|
package/directives/nav/nav.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
namespace angularportalazure {
|
|
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
|
-
|
|
2
|
+
nav.$inject = ['angularportalazure.portalService'];
|
|
3
|
+
function nav(portalService: angularportalazure.PortalService) {
|
|
4
|
+
return {
|
|
5
|
+
restrict: 'E',
|
|
6
|
+
transclude: true,
|
|
7
|
+
scope: {},
|
|
8
|
+
bindToController: { vm: '=' },
|
|
9
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
10
|
+
link: function (scope, element, attrs, controller) {
|
|
11
|
+
angular.forEach(controller.items, function (item) {
|
|
12
|
+
// Set some default values, depending on existing values
|
|
13
|
+
if (item.isVisible == undefined) { item.isVisible = true; }
|
|
14
|
+
if (item.title == undefined || item.title == '') { item.style = { cursor: 'default' }; }
|
|
15
|
+
if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
controller: function () {
|
|
19
|
+
//this.$onInit = function () {
|
|
20
|
+
// this.close = function () {
|
|
21
|
+
// portalService.bladeArea.clearLastLevel();
|
|
22
|
+
// };
|
|
23
|
+
//};
|
|
24
|
+
},
|
|
25
|
+
controllerAs: '$ctrl'
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
angular.module('angularportalazure').directive('nav', nav);
|
|
29
29
|
|
|
30
|
-
var nav = {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
30
|
+
//var nav = {
|
|
31
|
+
// transclude: true,
|
|
32
|
+
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
33
|
+
// controller: function () { },
|
|
34
|
+
// bindings: {
|
|
35
|
+
// vm: '='
|
|
36
|
+
// }
|
|
37
|
+
//};
|
|
38
38
|
|
|
39
|
-
angular.module('angularportalazure').component('nav', nav);
|
|
39
|
+
//angular.module('angularportalazure').component('nav', nav);
|
|
40
40
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@ardimedia/angular-portal-azure",
|
|
3
3
|
"description": "Angular Portal Azure - GUI Framework.",
|
|
4
4
|
"author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.89",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|