@ardimedia/angular-portal-azure 0.2.12 → 0.2.14
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 -5
- package/directives/blade/blade.ts +6 -3
- package/directives/nav/nav.ts +7 -3
- package/directives/navgrid/navgrid.ts +11 -2
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -901,10 +901,11 @@ var angularportalazure;
|
|
|
901
901
|
restrict: 'E',
|
|
902
902
|
transclude: true,
|
|
903
903
|
scope: {},
|
|
904
|
-
bindToController: { vm: '=' },
|
|
904
|
+
bindToController: { vm: '=vm' },
|
|
905
905
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
906
906
|
link: function (scope, element, attrs, controller) {
|
|
907
907
|
console.log('azurePortalBlade.link()');
|
|
908
|
+
console.log(this);
|
|
908
909
|
//#region the following code makes sure, that a function scope.vm.close is available
|
|
909
910
|
if (scope.vm === undefined) {
|
|
910
911
|
scope.vm = {};
|
|
@@ -918,6 +919,8 @@ var angularportalazure;
|
|
|
918
919
|
//#endregion
|
|
919
920
|
},
|
|
920
921
|
controller: function () {
|
|
922
|
+
console.log('azurePortalBlade.controller()');
|
|
923
|
+
console.log(this);
|
|
921
924
|
this.blade = this.vm.blade;
|
|
922
925
|
this.contentTitle = this.vm.contentTitle;
|
|
923
926
|
this.contentSubTitle = this.vm.contentSubTitle;
|
|
@@ -987,12 +990,12 @@ var angularportalazure;
|
|
|
987
990
|
function nav($window) {
|
|
988
991
|
return {
|
|
989
992
|
restrict: 'E',
|
|
990
|
-
//scope: { vm: '=viewModel' },
|
|
991
993
|
scope: {},
|
|
992
|
-
bindToController: { vm: '=' },
|
|
994
|
+
bindToController: { vm: '=viewModel' },
|
|
993
995
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
994
996
|
link: function (scope, element, attrs, controller) {
|
|
995
997
|
console.log('nav.link()');
|
|
998
|
+
console.log(this);
|
|
996
999
|
angular.forEach(scope.vm.navItems, function (item) {
|
|
997
1000
|
// Set some default values, depending on existing values
|
|
998
1001
|
if (item.isVisible == undefined) {
|
|
@@ -1006,6 +1009,10 @@ var angularportalazure;
|
|
|
1006
1009
|
}
|
|
1007
1010
|
});
|
|
1008
1011
|
},
|
|
1012
|
+
controller: function () {
|
|
1013
|
+
console.log('nav.controller()');
|
|
1014
|
+
console.log(this);
|
|
1015
|
+
},
|
|
1009
1016
|
controllerAs: 'vm'
|
|
1010
1017
|
};
|
|
1011
1018
|
}
|
|
@@ -1015,9 +1022,13 @@ var angularportalazure;
|
|
|
1015
1022
|
(function (angularportalazure) {
|
|
1016
1023
|
function navGrid($window) {
|
|
1017
1024
|
return {
|
|
1018
|
-
|
|
1025
|
+
restrict: 'E',
|
|
1026
|
+
scope: {},
|
|
1027
|
+
bindToController: { vm: '=viewModel' },
|
|
1019
1028
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/navgrid/navgrid.html',
|
|
1020
1029
|
link: function (scope, element, attrs, controller) {
|
|
1030
|
+
console.log('navGrid.link()');
|
|
1031
|
+
console.log(this);
|
|
1021
1032
|
angular.forEach(scope.vm.items, function (item) {
|
|
1022
1033
|
// Set some default values, depending on existing values
|
|
1023
1034
|
if (item.isVisible == undefined) {
|
|
@@ -1030,7 +1041,12 @@ var angularportalazure;
|
|
|
1030
1041
|
item.style = { cursor: 'default' };
|
|
1031
1042
|
}
|
|
1032
1043
|
});
|
|
1033
|
-
}
|
|
1044
|
+
},
|
|
1045
|
+
controller: function () {
|
|
1046
|
+
console.log('navGrid.controller()');
|
|
1047
|
+
console.log(this);
|
|
1048
|
+
},
|
|
1049
|
+
controllerAs: 'vm'
|
|
1034
1050
|
};
|
|
1035
1051
|
}
|
|
1036
1052
|
angular.module('angularportalazure').directive('navGrid', ['$window', navGrid]);
|
|
@@ -7,12 +7,12 @@ namespace angularportalazure {
|
|
|
7
7
|
return {
|
|
8
8
|
restrict: 'E',
|
|
9
9
|
transclude: true,
|
|
10
|
-
scope: {},
|
|
11
|
-
bindToController: { vm: '=' },
|
|
10
|
+
scope: {},
|
|
11
|
+
bindToController: { vm: '=vm' },
|
|
12
12
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
13
13
|
link: function (scope, element, attrs, controller) {
|
|
14
14
|
console.log('azurePortalBlade.link()');
|
|
15
|
-
|
|
15
|
+
console.log(this);
|
|
16
16
|
//#region the following code makes sure, that a function scope.vm.close is available
|
|
17
17
|
|
|
18
18
|
if (scope.vm === undefined) { scope.vm = {}; }
|
|
@@ -26,6 +26,9 @@ namespace angularportalazure {
|
|
|
26
26
|
//#endregion
|
|
27
27
|
},
|
|
28
28
|
controller: function () {
|
|
29
|
+
console.log('azurePortalBlade.controller()');
|
|
30
|
+
console.log(this);
|
|
31
|
+
|
|
29
32
|
this.blade = this.vm.blade;
|
|
30
33
|
this.contentTitle = this.vm.contentTitle;
|
|
31
34
|
this.contentSubTitle = this.vm.contentSubTitle;
|
package/directives/nav/nav.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
function nav($window) {
|
|
3
3
|
return {
|
|
4
4
|
restrict: 'E',
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
bindToController: { vm: '=' },
|
|
5
|
+
scope: {},
|
|
6
|
+
bindToController: { vm: '=viewModel' },
|
|
8
7
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
9
8
|
link: function (scope, element, attrs, controller) {
|
|
10
9
|
console.log('nav.link()');
|
|
10
|
+
console.log(this);
|
|
11
11
|
angular.forEach(scope.vm.navItems, function (item) {
|
|
12
12
|
// Set some default values, depending on existing values
|
|
13
13
|
if (item.isVisible == undefined) { item.isVisible = true; }
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
|
|
16
16
|
});
|
|
17
17
|
},
|
|
18
|
+
controller: function () {
|
|
19
|
+
console.log('nav.controller()');
|
|
20
|
+
console.log(this);
|
|
21
|
+
},
|
|
18
22
|
controllerAs: 'vm'
|
|
19
23
|
};
|
|
20
24
|
}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
namespace angularportalazure {
|
|
2
2
|
function navGrid($window) {
|
|
3
3
|
return {
|
|
4
|
-
|
|
4
|
+
restrict: 'E',
|
|
5
|
+
scope: {},
|
|
6
|
+
bindToController: { vm: '=viewModel' },
|
|
5
7
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/navgrid/navgrid.html',
|
|
6
8
|
link: function (scope, element, attrs, controller) {
|
|
9
|
+
console.log('navGrid.link()');
|
|
10
|
+
console.log(this);
|
|
7
11
|
angular.forEach(scope.vm.items, 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
|
+
controller: function () {
|
|
19
|
+
console.log('navGrid.controller()');
|
|
20
|
+
console.log(this);
|
|
21
|
+
},
|
|
22
|
+
controllerAs: 'vm'
|
|
14
23
|
};
|
|
15
24
|
}
|
|
16
25
|
|
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.14",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|