@ardimedia/angular-portal-azure 0.2.89 → 0.2.91
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 +124 -96
- package/directives/blade/angular-portal-blade.ts +42 -22
- package/directives/grid/grid.ts +31 -20
- package/directives/home/home.ts +22 -12
- package/directives/nav/nav.ts +37 -36
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -984,114 +984,142 @@ var angularportalazure;
|
|
|
984
984
|
/// <reference path="../../domain/portalservice.ts" />
|
|
985
985
|
var angularportalazure;
|
|
986
986
|
(function (angularportalazure) {
|
|
987
|
-
angularPortalBlade.$inject = ['angularportalazure.portalService'];
|
|
988
|
-
function angularPortalBlade(portalService) {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
987
|
+
//angularPortalBlade.$inject = ['angularportalazure.portalService'];
|
|
988
|
+
//function angularPortalBlade(portalService: angularportalazure.PortalService) {
|
|
989
|
+
// return {
|
|
990
|
+
// restrict: 'E',
|
|
991
|
+
// transclude: true,
|
|
992
|
+
// scope: {},
|
|
993
|
+
// bindToController: { vm: '=' },
|
|
994
|
+
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
995
|
+
// link: function (scope, element, attrs, controller) {
|
|
996
|
+
// //controller.close = function () {
|
|
997
|
+
// // portalService.bladeArea.clearLastLevel();
|
|
998
|
+
// //};
|
|
999
|
+
// },
|
|
1000
|
+
// controller: function () {
|
|
1001
|
+
// this.$onInit = function () {
|
|
1002
|
+
// this.close = function () {
|
|
1003
|
+
// portalService.bladeArea.clearLastLevel();
|
|
1004
|
+
// };
|
|
1005
|
+
// };
|
|
1006
|
+
// },
|
|
1007
|
+
// controllerAs: '$ctrl'
|
|
1008
|
+
// };
|
|
1009
|
+
//}
|
|
1010
|
+
//angular.module('angularportalazure').directive('angularPortalBlade', angularPortalBlade);
|
|
1011
|
+
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
1012
|
+
function AngularPortalBladeController(portalService) {
|
|
1013
|
+
this.$onInit = function () {
|
|
1014
|
+
this.close = function () {
|
|
1015
|
+
portalService.bladeArea.clearLastLevel();
|
|
1016
|
+
};
|
|
1008
1017
|
};
|
|
1009
1018
|
}
|
|
1010
|
-
|
|
1019
|
+
var angularPortalBlade = {
|
|
1020
|
+
transclude: true,
|
|
1021
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
1022
|
+
controller: AngularPortalBladeController,
|
|
1023
|
+
bindings: {
|
|
1024
|
+
vm: '='
|
|
1025
|
+
}
|
|
1026
|
+
};
|
|
1027
|
+
angular.module('angularportalazure').component('angularPortalBlade', angularPortalBlade);
|
|
1011
1028
|
})(angularportalazure || (angularportalazure = {}));
|
|
1012
1029
|
// http://blogs.msdn.com/b/laurieatkinson/archive/2014/08/23/implementing-a-save-warning-in-an-angular-spa.aspx
|
|
1013
1030
|
var angularportalazure;
|
|
1014
1031
|
(function (angularportalazure) {
|
|
1015
|
-
grid.$inject = ['angularportalazure.portalService'];
|
|
1016
|
-
function grid(portalService) {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
}
|
|
1034
|
-
angular.module('angularportalazure').directive('grid', grid);
|
|
1032
|
+
//grid.$inject = ['angularportalazure.portalService'];
|
|
1033
|
+
//function grid(portalService: angularportalazure.PortalService) {
|
|
1034
|
+
// return {
|
|
1035
|
+
// restrict: 'E',
|
|
1036
|
+
// transclude: true,
|
|
1037
|
+
// scope: {},
|
|
1038
|
+
// bindToController: { vm: '=' },
|
|
1039
|
+
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/grid/grid.html',
|
|
1040
|
+
// link: function (scope, element, attrs, controller) { },
|
|
1041
|
+
// controller: function () {
|
|
1042
|
+
// //this.$onInit = function () {
|
|
1043
|
+
// // this.close = function () {
|
|
1044
|
+
// // portalService.bladeArea.clearLastLevel();
|
|
1045
|
+
// // };
|
|
1046
|
+
// //};
|
|
1047
|
+
// },
|
|
1048
|
+
// controllerAs: '$ctrl'
|
|
1049
|
+
// };
|
|
1050
|
+
//}
|
|
1051
|
+
//angular.module('angularportalazure').directive('grid', grid);
|
|
1052
|
+
var grid = {
|
|
1053
|
+
transclude: true,
|
|
1054
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/grid/grid.html',
|
|
1055
|
+
controller: function () { },
|
|
1056
|
+
bindings: {
|
|
1057
|
+
vm: '='
|
|
1058
|
+
}
|
|
1059
|
+
};
|
|
1060
|
+
angular.module('angularportalazure').component('grid', grid);
|
|
1035
1061
|
})(angularportalazure || (angularportalazure = {}));
|
|
1036
1062
|
var angularportalazure;
|
|
1037
1063
|
(function (angularportalazure) {
|
|
1038
|
-
function angularPortalHome() {
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
}
|
|
1049
|
-
angular.module('angularportalazure').directive('angularPortalHome', angularPortalHome);
|
|
1064
|
+
//function angularPortalHome() {
|
|
1065
|
+
// return {
|
|
1066
|
+
// restrict: 'E',
|
|
1067
|
+
// scope: {},
|
|
1068
|
+
// bindToController: { vm: '=' },
|
|
1069
|
+
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
|
|
1070
|
+
// link: function (scope, element, attrs, controller) { },
|
|
1071
|
+
// controller: function () { },
|
|
1072
|
+
// controllerAs: '$ctrl'
|
|
1073
|
+
// };
|
|
1074
|
+
//}
|
|
1075
|
+
//angular.module('angularportalazure').directive('angularPortalHome', angularPortalHome);
|
|
1076
|
+
var angularPortalHome = {
|
|
1077
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
|
|
1078
|
+
controller: function () { },
|
|
1079
|
+
bindings: {
|
|
1080
|
+
vm: '='
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
angular.module('angularportalazure').component('angularPortalHome', angularPortalHome);
|
|
1050
1084
|
})(angularportalazure || (angularportalazure = {}));
|
|
1051
1085
|
var angularportalazure;
|
|
1052
1086
|
(function (angularportalazure) {
|
|
1053
|
-
nav.$inject = ['angularportalazure.portalService'];
|
|
1054
|
-
function nav(portalService) {
|
|
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
|
-
|
|
1089
|
-
// controller: function () { },
|
|
1090
|
-
// bindings: {
|
|
1091
|
-
// vm: '='
|
|
1092
|
-
// }
|
|
1093
|
-
//};
|
|
1094
|
-
//angular.module('angularportalazure').component('nav', nav);
|
|
1087
|
+
//nav.$inject = ['angularportalazure.portalService'];
|
|
1088
|
+
//function nav(portalService: angularportalazure.PortalService) {
|
|
1089
|
+
// return {
|
|
1090
|
+
// restrict: 'E',
|
|
1091
|
+
// transclude: true,
|
|
1092
|
+
// scope: {},
|
|
1093
|
+
// bindToController: { vm: '=' },
|
|
1094
|
+
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
1095
|
+
// link: function (scope, element, attrs, controller) {
|
|
1096
|
+
// angular.forEach(controller.items, function (item) {
|
|
1097
|
+
// // Set some default values, depending on existing values
|
|
1098
|
+
// if (item.isVisible == undefined) { item.isVisible = true; }
|
|
1099
|
+
// if (item.title == undefined || item.title == '') { item.style = { cursor: 'default' }; }
|
|
1100
|
+
// if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
|
|
1101
|
+
// });
|
|
1102
|
+
// },
|
|
1103
|
+
// controller: function () {
|
|
1104
|
+
// //this.$onInit = function () {
|
|
1105
|
+
// // this.close = function () {
|
|
1106
|
+
// // portalService.bladeArea.clearLastLevel();
|
|
1107
|
+
// // };
|
|
1108
|
+
// //};
|
|
1109
|
+
// },
|
|
1110
|
+
// controllerAs: '$ctrl'
|
|
1111
|
+
// };
|
|
1112
|
+
//}
|
|
1113
|
+
//angular.module('angularportalazure').directive('nav', nav);
|
|
1114
|
+
var nav = {
|
|
1115
|
+
transclude: true,
|
|
1116
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
1117
|
+
controller: function () { },
|
|
1118
|
+
bindings: {
|
|
1119
|
+
vm: '='
|
|
1120
|
+
}
|
|
1121
|
+
};
|
|
1122
|
+
angular.module('angularportalazure').component('nav', nav);
|
|
1095
1123
|
})(angularportalazure || (angularportalazure = {}));
|
|
1096
1124
|
/// <reference path="bladearea.ts" />
|
|
1097
1125
|
/// <reference path="debug.ts" />
|
|
@@ -3,29 +3,49 @@
|
|
|
3
3
|
/// <reference path="../../domain/portalservice.ts" />
|
|
4
4
|
|
|
5
5
|
namespace angularportalazure {
|
|
6
|
-
angularPortalBlade.$inject = ['angularportalazure.portalService'];
|
|
7
|
-
function angularPortalBlade(portalService: angularportalazure.PortalService) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
6
|
+
//angularPortalBlade.$inject = ['angularportalazure.portalService'];
|
|
7
|
+
//function angularPortalBlade(portalService: angularportalazure.PortalService) {
|
|
8
|
+
// return {
|
|
9
|
+
// restrict: 'E',
|
|
10
|
+
// transclude: true,
|
|
11
|
+
// scope: {},
|
|
12
|
+
// bindToController: { vm: '=' },
|
|
13
|
+
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
14
|
+
// link: function (scope, element, attrs, controller) {
|
|
15
|
+
// //controller.close = function () {
|
|
16
|
+
// // portalService.bladeArea.clearLastLevel();
|
|
17
|
+
// //};
|
|
18
|
+
// },
|
|
19
|
+
// controller: function () {
|
|
20
|
+
// this.$onInit = function () {
|
|
21
|
+
// this.close = function () {
|
|
22
|
+
// portalService.bladeArea.clearLastLevel();
|
|
23
|
+
// };
|
|
24
|
+
// };
|
|
25
|
+
// },
|
|
26
|
+
// controllerAs: '$ctrl'
|
|
27
|
+
// };
|
|
28
|
+
//}
|
|
29
|
+
|
|
30
|
+
//angular.module('angularportalazure').directive('angularPortalBlade', angularPortalBlade);
|
|
31
|
+
|
|
32
|
+
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
33
|
+
function AngularPortalBladeController(portalService: angularportalazure.PortalService) {
|
|
34
|
+
this.$onInit = function () {
|
|
35
|
+
this.close = function () {
|
|
36
|
+
portalService.bladeArea.clearLastLevel();
|
|
37
|
+
};
|
|
27
38
|
};
|
|
28
39
|
}
|
|
29
40
|
|
|
30
|
-
|
|
41
|
+
var angularPortalBlade = {
|
|
42
|
+
transclude: true,
|
|
43
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
44
|
+
controller: AngularPortalBladeController,
|
|
45
|
+
bindings: {
|
|
46
|
+
vm: '='
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
angular.module('angularportalazure').component('angularPortalBlade', angularPortalBlade);
|
|
31
51
|
}
|
package/directives/grid/grid.ts
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
namespace angularportalazure {
|
|
2
|
-
grid.$inject = ['angularportalazure.portalService'];
|
|
3
|
-
function grid(portalService: angularportalazure.PortalService) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
2
|
+
//grid.$inject = ['angularportalazure.portalService'];
|
|
3
|
+
//function grid(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/grid/grid.html',
|
|
10
|
+
// link: function (scope, element, attrs, controller) { },
|
|
11
|
+
// controller: function () {
|
|
12
|
+
// //this.$onInit = function () {
|
|
13
|
+
// // this.close = function () {
|
|
14
|
+
// // portalService.bladeArea.clearLastLevel();
|
|
15
|
+
// // };
|
|
16
|
+
// //};
|
|
17
|
+
// },
|
|
18
|
+
// controllerAs: '$ctrl'
|
|
19
|
+
// };
|
|
20
|
+
//}
|
|
21
21
|
|
|
22
|
-
angular.module('angularportalazure').directive('grid', grid);
|
|
22
|
+
//angular.module('angularportalazure').directive('grid', grid);
|
|
23
|
+
|
|
24
|
+
var grid = {
|
|
25
|
+
transclude: true,
|
|
26
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/grid/grid.html',
|
|
27
|
+
controller: function () { },
|
|
28
|
+
bindings: {
|
|
29
|
+
vm: '='
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
angular.module('angularportalazure').component('grid', grid);
|
|
23
34
|
}
|
package/directives/home/home.ts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
namespace angularportalazure {
|
|
2
|
-
function angularPortalHome() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
2
|
+
//function angularPortalHome() {
|
|
3
|
+
// return {
|
|
4
|
+
// restrict: 'E',
|
|
5
|
+
// scope: {},
|
|
6
|
+
// bindToController: { vm: '=' },
|
|
7
|
+
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
|
|
8
|
+
// link: function (scope, element, attrs, controller) { },
|
|
9
|
+
// controller: function () { },
|
|
10
|
+
// controllerAs: '$ctrl'
|
|
11
|
+
// };
|
|
12
|
+
//}
|
|
13
13
|
|
|
14
|
-
angular.module('angularportalazure').directive('angularPortalHome', angularPortalHome);
|
|
14
|
+
//angular.module('angularportalazure').directive('angularPortalHome', angularPortalHome);
|
|
15
|
+
|
|
16
|
+
var angularPortalHome = {
|
|
17
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
|
|
18
|
+
controller: function () { },
|
|
19
|
+
bindings: {
|
|
20
|
+
vm: '='
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
angular.module('angularportalazure').component('angularPortalHome', angularPortalHome);
|
|
15
25
|
}
|
package/directives/nav/nav.ts
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
namespace angularportalazure {
|
|
2
|
-
nav.$inject = ['angularportalazure.portalService'];
|
|
3
|
-
function nav(portalService: angularportalazure.PortalService) {
|
|
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
|
-
angular.module('angularportalazure').directive('nav', nav);
|
|
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
|
+
//}
|
|
29
28
|
|
|
30
|
-
//
|
|
31
|
-
// transclude: true,
|
|
32
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
33
|
-
// controller: function () { },
|
|
34
|
-
// bindings: {
|
|
35
|
-
// vm: '='
|
|
36
|
-
// }
|
|
37
|
-
//};
|
|
29
|
+
//angular.module('angularportalazure').directive('nav', nav);
|
|
38
30
|
|
|
39
|
-
|
|
31
|
+
var nav = {
|
|
32
|
+
transclude: true,
|
|
33
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
34
|
+
controller: function () { },
|
|
35
|
+
bindings: {
|
|
36
|
+
vm: '='
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
angular.module('angularportalazure').component('nav', nav);
|
|
40
41
|
}
|
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.91",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|