@ardimedia/angular-portal-azure 0.2.43 → 0.2.45

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 CHANGED
@@ -339,7 +339,7 @@ declare namespace angularportalazure {
339
339
  }
340
340
  }
341
341
  declare namespace angularportalazure {
342
- class BladeList extends angularportalazure.BladeData {
342
+ class BladeGrid extends angularportalazure.BladeData {
343
343
  items: any[];
344
344
  constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
345
345
  activate(): void;
@@ -365,7 +365,7 @@ declare namespace angularportalazure {
365
365
  }
366
366
  declare namespace angularportalazure {
367
367
  class BladeNav extends angularportalazure.BladeData {
368
- navItems: Array<angularportalazure.BladeNavItem>;
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 Constructors
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 Constructors
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 Constructors
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 Constructors
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 Constructors
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 Constructors
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 Constructors
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 Constructors
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 Constructors
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 Constructors
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 Constructors
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', ['angularportalazure.portalService', 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', ['angularportalazure.portalService', 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', ['angularportalazure.portalService', 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
- //console.log('grid.link()');
1055
- //console.log(this);
1056
- angular.forEach(controller.vm.items, function (item) {
1057
- // Set some default values, depending on existing values
1058
- if (item.isVisible == undefined) {
1059
- item.isVisible = true;
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.navItems, function (item) {
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]);
@@ -1227,24 +1181,24 @@ var angularportalazure;
1227
1181
  /// <reference path="portalservice.ts" />
1228
1182
  var angularportalazure;
1229
1183
  (function (angularportalazure) {
1230
- var BladeList = (function (_super) {
1231
- __extends(BladeList, _super);
1184
+ var BladeGrid = (function (_super) {
1185
+ __extends(BladeGrid, _super);
1232
1186
  //#endregion
1233
1187
  //#region Constructor
1234
- function BladeList(portalService, path, title, subtitle, width) {
1188
+ function BladeGrid(portalService, path, title, subtitle, width) {
1235
1189
  if (subtitle === void 0) { subtitle = ''; }
1236
1190
  if (width === void 0) { width = 200; }
1237
1191
  _super.call(this, portalService, path, title, subtitle, width);
1238
1192
  //#region Properties
1239
1193
  this.items = [];
1240
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeList\' constructor called.', [this, portalService, path, title, subtitle, width]);
1194
+ angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid\' constructor called.', [this, portalService, path, title, subtitle, width]);
1241
1195
  this.isCommandNew = true;
1242
1196
  this.commandNewText = 'neu';
1243
1197
  }
1244
1198
  //#endregion
1245
1199
  //#region Methods
1246
- BladeList.prototype.activate = function () {
1247
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeList.activate\' called.', [this]);
1200
+ BladeGrid.prototype.activate = function () {
1201
+ angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid.activate\' called.', [this]);
1248
1202
  var that = this;
1249
1203
  that.statusbar = 'Daten laden...';
1250
1204
  that.statusbarClass = '';
@@ -1255,10 +1209,10 @@ var angularportalazure;
1255
1209
  that.loadItems(onActivate);
1256
1210
  }
1257
1211
  };
1258
- BladeList.prototype.onActivate = function () {
1259
- throw new Error('[angularportalazure.BladeList] \'onActivate\' is an abstract function. Define one in the derived class.');
1212
+ BladeGrid.prototype.onActivate = function () {
1213
+ throw new Error('[angularportalazure.BladeGrid] \'onActivate\' is an abstract function. Define one in the derived class.');
1260
1214
  };
1261
- BladeList.prototype.loadItems = function (f) {
1215
+ BladeGrid.prototype.loadItems = function (f) {
1262
1216
  var that = this;
1263
1217
  f.success(function (data) {
1264
1218
  that.items = data;
@@ -1270,8 +1224,8 @@ var angularportalazure;
1270
1224
  });
1271
1225
  };
1272
1226
  //#region Filter
1273
- BladeList.prototype.onFilter = function (actual, expected) {
1274
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeList.filter\' called.', [this, actual, expected]);
1227
+ BladeGrid.prototype.onFilter = function (actual, expected) {
1228
+ angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid.filter\' called.', [this, actual, expected]);
1275
1229
  //#region Documentation
1276
1230
  // > onFilter will be called for each item in an array
1277
1231
  // > If the item is an native type (string, number), the filter will be called with the native type in the parameter 'actual'
@@ -1356,17 +1310,17 @@ var angularportalazure;
1356
1310
  //#endregion
1357
1311
  //#region OBSOLETE
1358
1312
  /** Obsolete */
1359
- BladeList.prototype.setObsoleteLayoutProperites = function () {
1360
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeList.setObsoleteLayoutProperites\' called.', [this]);
1313
+ BladeGrid.prototype.setObsoleteLayoutProperites = function () {
1314
+ angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid.setObsoleteLayoutProperites\' called.', [this]);
1361
1315
  if (this.items.length !== 0) {
1362
1316
  this.blade.navGrid.items = this.items; //--> needed, otherwise nav html pages will no longer work.
1363
1317
  }
1364
1318
  this.blade.isNavGrid = this.isNavGrid;
1365
1319
  _super.prototype.setObsoleteLayoutProperites.call(this);
1366
1320
  };
1367
- return BladeList;
1321
+ return BladeGrid;
1368
1322
  }(angularportalazure.BladeData));
1369
- angularportalazure.BladeList = BladeList;
1323
+ angularportalazure.BladeGrid = BladeGrid;
1370
1324
  })(angularportalazure || (angularportalazure = {}));
1371
1325
  /// <reference path="debug.ts" />
1372
1326
  /// <reference path="bladenav.ts" />
@@ -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.navItems = new Array();
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;