@ardimedia/angular-portal-azure 0.2.43 → 0.2.44
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.d.ts +1 -1
- package/apn.js +31 -77
- package/css/apn.css +1141 -1141
- package/directives/blade/angular-portal-blade-grid.ts +3 -18
- package/directives/blade/angular-portal-blade-nav.ts +3 -18
- package/directives/blade/angular-portal-blade.ts +3 -18
- package/directives/blade/blade.html +64 -64
- package/directives/grid/grid.html +1 -1
- package/directives/grid/grid.ts +7 -11
- package/directives/home/home.html +10 -10
- package/directives/home/home.ts +1 -1
- package/directives/nav/nav.html +1 -1
- package/directives/nav/nav.ts +2 -2
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -365,7 +365,7 @@ declare namespace angularportalazure {
|
|
|
365
365
|
}
|
|
366
366
|
declare namespace angularportalazure {
|
|
367
367
|
class BladeNav extends angularportalazure.BladeData {
|
|
368
|
-
|
|
368
|
+
items: Array<angularportalazure.BladeNavItem>;
|
|
369
369
|
isNav: boolean;
|
|
370
370
|
constructor(portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
|
|
371
371
|
}
|
package/apn.js
CHANGED
|
@@ -24,7 +24,7 @@ var angularportalazure;
|
|
|
24
24
|
var angularportalazure;
|
|
25
25
|
(function (angularportalazure) {
|
|
26
26
|
var Debug = (function () {
|
|
27
|
-
//#region
|
|
27
|
+
//#region Constructor
|
|
28
28
|
function Debug() {
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
@@ -91,7 +91,7 @@ var angularportalazure;
|
|
|
91
91
|
var angularportalazure;
|
|
92
92
|
(function (angularportalazure) {
|
|
93
93
|
var UserAccount = (function () {
|
|
94
|
-
//#region
|
|
94
|
+
//#region Constructor
|
|
95
95
|
function UserAccount(username, firstName, lastName) {
|
|
96
96
|
if (firstName === void 0) { firstName = ''; }
|
|
97
97
|
if (lastName === void 0) { lastName = ''; }
|
|
@@ -142,7 +142,7 @@ var angularportalazure;
|
|
|
142
142
|
var angularportalazure;
|
|
143
143
|
(function (angularportalazure) {
|
|
144
144
|
var UserControlBase = (function () {
|
|
145
|
-
//#region
|
|
145
|
+
//#region Constructor
|
|
146
146
|
function UserControlBase(portalService) {
|
|
147
147
|
angularportalazure.Debug.write('[angularportalazure-debug] \'UserControlBase\' constructor called.', [this, portalService]);
|
|
148
148
|
this.portalService = portalService;
|
|
@@ -426,7 +426,7 @@ var angularportalazure;
|
|
|
426
426
|
(function (angularportalazure) {
|
|
427
427
|
var BladeArea = (function (_super) {
|
|
428
428
|
__extends(BladeArea, _super);
|
|
429
|
-
//#region
|
|
429
|
+
//#region Constructor
|
|
430
430
|
function BladeArea(portalService) {
|
|
431
431
|
_super.call(this, portalService);
|
|
432
432
|
this.blades = new Array();
|
|
@@ -637,7 +637,7 @@ var angularportalazure;
|
|
|
637
637
|
(function (angularportalazure) {
|
|
638
638
|
var AvatarMenu = (function (_super) {
|
|
639
639
|
__extends(AvatarMenu, _super);
|
|
640
|
-
//#region
|
|
640
|
+
//#region Constructor
|
|
641
641
|
function AvatarMenu(portalService) {
|
|
642
642
|
_super.call(this, portalService);
|
|
643
643
|
angularportalazure.Debug.write('[angularportalazure-debug] \'AvatarMenu\' constructor called.', [this]);
|
|
@@ -662,7 +662,7 @@ var angularportalazure;
|
|
|
662
662
|
var angularportalazure;
|
|
663
663
|
(function (angularportalazure) {
|
|
664
664
|
var TileSize = (function () {
|
|
665
|
-
//#region
|
|
665
|
+
//#region Constructor
|
|
666
666
|
function TileSize(tileSizes, width, height) {
|
|
667
667
|
this.tileSizes = tileSizes;
|
|
668
668
|
this.width = width;
|
|
@@ -691,7 +691,7 @@ var angularportalazure;
|
|
|
691
691
|
var angularportalazure;
|
|
692
692
|
(function (angularportalazure) {
|
|
693
693
|
var Tile = (function () {
|
|
694
|
-
//#region
|
|
694
|
+
//#region Constructor
|
|
695
695
|
function Tile(title, bladePath, portalService) {
|
|
696
696
|
angularportalazure.Debug.write('[angularportalazure-debug] \'Tile\' constructor called.', [this, title, bladePath, portalService]);
|
|
697
697
|
this.portalService = portalService;
|
|
@@ -772,7 +772,7 @@ var angularportalazure;
|
|
|
772
772
|
var Startboard = (function (_super) {
|
|
773
773
|
__extends(Startboard, _super);
|
|
774
774
|
//#endregion
|
|
775
|
-
//#region
|
|
775
|
+
//#region Constructor
|
|
776
776
|
function Startboard(portalService) {
|
|
777
777
|
_super.call(this, portalService);
|
|
778
778
|
angularportalazure.Debug.write('[angularportalazure-debug] \'Startboard\' constructor called.', [this]);
|
|
@@ -792,7 +792,7 @@ var angularportalazure;
|
|
|
792
792
|
var Panorama = (function (_super) {
|
|
793
793
|
__extends(Panorama, _super);
|
|
794
794
|
//#endregion
|
|
795
|
-
//#region
|
|
795
|
+
//#region Constructor
|
|
796
796
|
function Panorama(title, portalService) {
|
|
797
797
|
_super.call(this, portalService);
|
|
798
798
|
this.isVisible = true;
|
|
@@ -818,7 +818,7 @@ var angularportalazure;
|
|
|
818
818
|
__extends(PortalShell, _super);
|
|
819
819
|
//#endregion
|
|
820
820
|
//#endregion
|
|
821
|
-
//#region
|
|
821
|
+
//#region Constructor
|
|
822
822
|
function PortalShell(title, portalService) {
|
|
823
823
|
_super.call(this, portalService);
|
|
824
824
|
angularportalazure.Debug.write('[angularportalazure-debug] \'PortalShell\' constructor called.', [this, title, portalService]);
|
|
@@ -866,7 +866,7 @@ var angularportalazure;
|
|
|
866
866
|
var angularportalazure;
|
|
867
867
|
(function (angularportalazure) {
|
|
868
868
|
var PortalService = (function () {
|
|
869
|
-
//#region
|
|
869
|
+
//#region Constructor
|
|
870
870
|
function PortalService($injector) {
|
|
871
871
|
//#endregion
|
|
872
872
|
//#region Properties
|
|
@@ -896,6 +896,7 @@ var angularportalazure;
|
|
|
896
896
|
/// <reference path="../../domain/portalservice.ts" />
|
|
897
897
|
var angularportalazure;
|
|
898
898
|
(function (angularportalazure) {
|
|
899
|
+
angularPortalBladeGrid.$inject = ['angularportalazure.portalService'];
|
|
899
900
|
function angularPortalBladeGrid(portalService) {
|
|
900
901
|
return {
|
|
901
902
|
restrict: 'E',
|
|
@@ -904,36 +905,24 @@ var angularportalazure;
|
|
|
904
905
|
bindToController: { vm: '=' },
|
|
905
906
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
906
907
|
link: function (scope, element, attrs, controller) {
|
|
907
|
-
//console.log('angularPortalBladeGrid.link()');
|
|
908
|
-
//console.log(this);
|
|
909
|
-
//#region the following code makes sure, that a function scope.vm.close is available
|
|
910
|
-
//if (scope.vm === undefined) { scope.vm = {}; }
|
|
911
|
-
//if (scope.vm.close === undefined) {
|
|
912
|
-
// scope.vm.close = function () {
|
|
913
|
-
// angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
914
|
-
// portalService.bladeArea.clearLastLevel();
|
|
915
|
-
// }
|
|
916
|
-
//}
|
|
917
|
-
//#endregion
|
|
918
908
|
},
|
|
919
909
|
controller: function () {
|
|
920
|
-
//console.log('angularPortalBladeGrid.controller()');
|
|
921
|
-
//console.log(this);
|
|
922
910
|
this.vm.close = function () {
|
|
923
911
|
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
924
912
|
portalService.bladeArea.clearLastLevel();
|
|
925
913
|
};
|
|
926
914
|
},
|
|
927
|
-
controllerAs: 'ctrl'
|
|
915
|
+
controllerAs: '$ctrl'
|
|
928
916
|
};
|
|
929
917
|
}
|
|
930
|
-
angular.module('angularportalazure').directive('angularPortalBladeGrid',
|
|
918
|
+
angular.module('angularportalazure').directive('angularPortalBladeGrid', angularPortalBladeGrid);
|
|
931
919
|
})(angularportalazure || (angularportalazure = {}));
|
|
932
920
|
/// <reference types="angular" />
|
|
933
921
|
/// <reference path="../../domain/debug.ts" />
|
|
934
922
|
/// <reference path="../../domain/portalservice.ts" />
|
|
935
923
|
var angularportalazure;
|
|
936
924
|
(function (angularportalazure) {
|
|
925
|
+
angularPortalBladeNav.$inject = ['angularportalazure.portalService'];
|
|
937
926
|
function angularPortalBladeNav(portalService) {
|
|
938
927
|
return {
|
|
939
928
|
restrict: 'E',
|
|
@@ -942,36 +931,24 @@ var angularportalazure;
|
|
|
942
931
|
bindToController: { vm: '=' },
|
|
943
932
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
944
933
|
link: function (scope, element, attrs, controller) {
|
|
945
|
-
//console.log('angularPortalBladeNav.link()');
|
|
946
|
-
//console.log(this);
|
|
947
|
-
//#region the following code makes sure, that a function scope.vm.close is available
|
|
948
|
-
//if (scope.vm === undefined) { scope.vm = {}; }
|
|
949
|
-
//if (scope.vm.close === undefined) {
|
|
950
|
-
// scope.vm.close = function () {
|
|
951
|
-
// angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
952
|
-
// portalService.bladeArea.clearLastLevel();
|
|
953
|
-
// }
|
|
954
|
-
//}
|
|
955
|
-
//#endregion
|
|
956
934
|
},
|
|
957
935
|
controller: function () {
|
|
958
|
-
//console.log('angularPortalBladeNav.controller()');
|
|
959
|
-
//console.log(this);
|
|
960
936
|
this.vm.close = function () {
|
|
961
937
|
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
962
938
|
portalService.bladeArea.clearLastLevel();
|
|
963
939
|
};
|
|
964
940
|
},
|
|
965
|
-
controllerAs: 'ctrl'
|
|
941
|
+
controllerAs: '$ctrl'
|
|
966
942
|
};
|
|
967
943
|
}
|
|
968
|
-
angular.module('angularportalazure').directive('angularPortalBladeNav',
|
|
944
|
+
angular.module('angularportalazure').directive('angularPortalBladeNav', angularPortalBladeNav);
|
|
969
945
|
})(angularportalazure || (angularportalazure = {}));
|
|
970
946
|
/// <reference types="angular" />
|
|
971
947
|
/// <reference path="../../domain/debug.ts" />
|
|
972
948
|
/// <reference path="../../domain/portalservice.ts" />
|
|
973
949
|
var angularportalazure;
|
|
974
950
|
(function (angularportalazure) {
|
|
951
|
+
angularPortalBlade.$inject = ['angularportalazure.portalService'];
|
|
975
952
|
function angularPortalBlade(portalService) {
|
|
976
953
|
return {
|
|
977
954
|
restrict: 'E',
|
|
@@ -980,30 +957,17 @@ var angularportalazure;
|
|
|
980
957
|
bindToController: { vm: '=' },
|
|
981
958
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
982
959
|
link: function (scope, element, attrs, controller) {
|
|
983
|
-
//console.log('angularPortalBlade.link()');
|
|
984
|
-
//console.log(this);
|
|
985
|
-
//#region the following code makes sure, that a function scope.vm.close is available
|
|
986
|
-
//if (scope.vm === undefined) { scope.vm = {}; }
|
|
987
|
-
//if (scope.vm.close === undefined) {
|
|
988
|
-
// scope.vm.close = function () {
|
|
989
|
-
// angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
990
|
-
// portalService.bladeArea.clearLastLevel();
|
|
991
|
-
// }
|
|
992
|
-
//}
|
|
993
|
-
//#endregion
|
|
994
960
|
},
|
|
995
961
|
controller: function () {
|
|
996
|
-
//console.log('angularPortalBlade.controller()');
|
|
997
|
-
//console.log(this);
|
|
998
962
|
this.vm.close = function () {
|
|
999
963
|
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
1000
964
|
portalService.bladeArea.clearLastLevel();
|
|
1001
965
|
};
|
|
1002
966
|
},
|
|
1003
|
-
controllerAs: 'ctrl'
|
|
967
|
+
controllerAs: '$ctrl'
|
|
1004
968
|
};
|
|
1005
969
|
}
|
|
1006
|
-
angular.module('angularportalazure').directive('angularPortalBlade',
|
|
970
|
+
angular.module('angularportalazure').directive('angularPortalBlade', angularPortalBlade);
|
|
1007
971
|
})(angularportalazure || (angularportalazure = {}));
|
|
1008
972
|
// http://blogs.msdn.com/b/laurieatkinson/archive/2014/08/23/implementing-a-save-warning-in-an-angular-spa.aspx
|
|
1009
973
|
//'use strict';
|
|
@@ -1051,26 +1015,16 @@ var angularportalazure;
|
|
|
1051
1015
|
bindToController: { vm: '=' },
|
|
1052
1016
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/grid/grid.html',
|
|
1053
1017
|
link: function (scope, element, attrs, controller) {
|
|
1054
|
-
//
|
|
1055
|
-
//
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
}
|
|
1061
|
-
if (item.title == undefined || item.title == '') {
|
|
1062
|
-
item.style = { cursor: 'default' };
|
|
1063
|
-
}
|
|
1064
|
-
if (item.bladePath == undefined || item.bladePath == '') {
|
|
1065
|
-
item.style = { cursor: 'default' };
|
|
1066
|
-
}
|
|
1067
|
-
});
|
|
1018
|
+
//angular.forEach(controller.vm.items, function (item) {
|
|
1019
|
+
// // Set some default values, depending on existing values
|
|
1020
|
+
// if (item.isVisible == undefined) { item.isVisible = true; }
|
|
1021
|
+
// if (item.title == undefined || item.title == '') { item.style = { cursor: 'default' }; }
|
|
1022
|
+
// if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
|
|
1023
|
+
//});
|
|
1068
1024
|
},
|
|
1069
1025
|
controller: function () {
|
|
1070
|
-
//console.log('grid.controller()');
|
|
1071
|
-
//console.log(this);
|
|
1072
1026
|
},
|
|
1073
|
-
controllerAs: 'ctrl'
|
|
1027
|
+
controllerAs: '$ctrl'
|
|
1074
1028
|
};
|
|
1075
1029
|
}
|
|
1076
1030
|
angular.module('angularportalazure').directive('grid', ['$window', grid]);
|
|
@@ -1091,7 +1045,7 @@ var angularportalazure;
|
|
|
1091
1045
|
//console.log('angularPortalHome.controller()');
|
|
1092
1046
|
//console.log(this);
|
|
1093
1047
|
},
|
|
1094
|
-
controllerAs: 'ctrl'
|
|
1048
|
+
controllerAs: '$ctrl'
|
|
1095
1049
|
};
|
|
1096
1050
|
}
|
|
1097
1051
|
angular.module('angularportalazure').directive('angularPortalHome', angularPortalHome);
|
|
@@ -1107,7 +1061,7 @@ var angularportalazure;
|
|
|
1107
1061
|
link: function (scope, element, attrs, controller) {
|
|
1108
1062
|
//console.log('nav.link()');
|
|
1109
1063
|
//console.log(this);
|
|
1110
|
-
angular.forEach(controller.vm.
|
|
1064
|
+
angular.forEach(controller.vm.items, function (item) {
|
|
1111
1065
|
// Set some default values, depending on existing values
|
|
1112
1066
|
if (item.isVisible == undefined) {
|
|
1113
1067
|
item.isVisible = true;
|
|
@@ -1124,7 +1078,7 @@ var angularportalazure;
|
|
|
1124
1078
|
//console.log('nav.controller()');
|
|
1125
1079
|
//console.log(this);
|
|
1126
1080
|
},
|
|
1127
|
-
controllerAs: 'ctrl'
|
|
1081
|
+
controllerAs: '$ctrl'
|
|
1128
1082
|
};
|
|
1129
1083
|
}
|
|
1130
1084
|
angular.module('angularportalazure').directive('nav', ['$window', nav]);
|
|
@@ -1419,7 +1373,7 @@ var angularportalazure;
|
|
|
1419
1373
|
if (width === void 0) { width = 200; }
|
|
1420
1374
|
_super.call(this, portalService, path, title, subtitle, width);
|
|
1421
1375
|
//#region Properties
|
|
1422
|
-
this.
|
|
1376
|
+
this.items = new Array();
|
|
1423
1377
|
this.isNav = true;
|
|
1424
1378
|
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeNav\' constructor called.', [this, portalService, path, title, subtitle, width]);
|
|
1425
1379
|
_super.prototype.onNavigateTo = this.navigateTo;
|