@ardimedia/angular-portal-azure 0.2.11 → 0.2.12
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 +21 -14
- package/directives/blade/blade.ts +12 -12
- package/directives/nav/nav.ts +7 -2
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -903,18 +903,20 @@ var angularportalazure;
|
|
|
903
903
|
scope: {},
|
|
904
904
|
bindToController: { vm: '=' },
|
|
905
905
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
906
|
+
link: function (scope, element, attrs, controller) {
|
|
907
|
+
console.log('azurePortalBlade.link()');
|
|
908
|
+
//#region the following code makes sure, that a function scope.vm.close is available
|
|
909
|
+
if (scope.vm === undefined) {
|
|
910
|
+
scope.vm = {};
|
|
911
|
+
}
|
|
912
|
+
if (scope.vm.close === undefined) {
|
|
913
|
+
scope.vm.close = function () {
|
|
914
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
915
|
+
portalService.bladeArea.clearLastLevel();
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
//#endregion
|
|
919
|
+
},
|
|
918
920
|
controller: function () {
|
|
919
921
|
this.blade = this.vm.blade;
|
|
920
922
|
this.contentTitle = this.vm.contentTitle;
|
|
@@ -984,9 +986,13 @@ var angularportalazure;
|
|
|
984
986
|
(function (angularportalazure) {
|
|
985
987
|
function nav($window) {
|
|
986
988
|
return {
|
|
987
|
-
|
|
989
|
+
restrict: 'E',
|
|
990
|
+
//scope: { vm: '=viewModel' },
|
|
991
|
+
scope: {},
|
|
992
|
+
bindToController: { vm: '=' },
|
|
988
993
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
989
994
|
link: function (scope, element, attrs, controller) {
|
|
995
|
+
console.log('nav.link()');
|
|
990
996
|
angular.forEach(scope.vm.navItems, function (item) {
|
|
991
997
|
// Set some default values, depending on existing values
|
|
992
998
|
if (item.isVisible == undefined) {
|
|
@@ -999,7 +1005,8 @@ var angularportalazure;
|
|
|
999
1005
|
item.style = { cursor: 'default' };
|
|
1000
1006
|
}
|
|
1001
1007
|
});
|
|
1002
|
-
}
|
|
1008
|
+
},
|
|
1009
|
+
controllerAs: 'vm'
|
|
1003
1010
|
};
|
|
1004
1011
|
}
|
|
1005
1012
|
angular.module('angularportalazure').directive('nav', ['$window', nav]);
|
|
@@ -10,21 +10,21 @@ namespace angularportalazure {
|
|
|
10
10
|
scope: {}, //scope: { vm: '=vm' },
|
|
11
11
|
bindToController: { vm: '=' },
|
|
12
12
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
link: function (scope, element, attrs, controller) {
|
|
14
|
+
console.log('azurePortalBlade.link()');
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
//#region the following code makes sure, that a function scope.vm.close is available
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
if (scope.vm === undefined) { scope.vm = {}; }
|
|
19
|
+
if (scope.vm.close === undefined) {
|
|
20
|
+
scope.vm.close = function () {
|
|
21
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
22
|
+
portalService.bladeArea.clearLastLevel();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
//#endregion
|
|
27
|
+
},
|
|
28
28
|
controller: function () {
|
|
29
29
|
this.blade = this.vm.blade;
|
|
30
30
|
this.contentTitle = this.vm.contentTitle;
|
package/directives/nav/nav.ts
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
namespace angularportalazure {
|
|
2
2
|
function nav($window) {
|
|
3
3
|
return {
|
|
4
|
-
|
|
4
|
+
restrict: 'E',
|
|
5
|
+
//scope: { vm: '=viewModel' },
|
|
6
|
+
scope: {}, //scope: { vm: '=viewModel' },
|
|
7
|
+
bindToController: { vm: '=' },
|
|
5
8
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
6
9
|
link: function (scope, element, attrs, controller) {
|
|
10
|
+
console.log('nav.link()');
|
|
7
11
|
angular.forEach(scope.vm.navItems, function (item) {
|
|
8
12
|
// Set some default values, depending on existing values
|
|
9
13
|
if (item.isVisible == undefined) { item.isVisible = true; }
|
|
10
14
|
if (item.title == undefined || item.title == '') { item.style = { cursor: 'default' }; }
|
|
11
15
|
if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
|
|
12
16
|
});
|
|
13
|
-
}
|
|
17
|
+
},
|
|
18
|
+
controllerAs: 'vm'
|
|
14
19
|
};
|
|
15
20
|
}
|
|
16
21
|
|
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.12",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|