@ardimedia/angular-portal-azure 0.2.264 → 0.2.266

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.
Files changed (3) hide show
  1. package/apn.js +114 -140
  2. package/package.json +24 -24
  3. package/apn.d.ts +0 -443
package/apn.js CHANGED
@@ -1,5 +1,5 @@
1
- /// <reference types="angular" />
2
1
  "use strict";
2
+ /// <reference types="angular" />
3
3
  var angularportalazure;
4
4
  (function (angularportalazure) {
5
5
  /** Define Angular module and its dependencies */
@@ -40,11 +40,10 @@ var angularportalazure;
40
40
  return null;
41
41
  }
42
42
  })(angularportalazure || (angularportalazure = {}));
43
- "use strict";
44
43
  var angularportalazure;
45
44
  (function (angularportalazure) {
46
45
  var UserAccount = (function () {
47
- //#region Constructor
46
+ // #region Constructor
48
47
  function UserAccount(username, firstName, lastName) {
49
48
  if (firstName === void 0) { firstName = ''; }
50
49
  if (lastName === void 0) { lastName = ''; }
@@ -89,17 +88,16 @@ var angularportalazure;
89
88
  angularportalazure.UserAccount = UserAccount;
90
89
  })(angularportalazure || (angularportalazure = {}));
91
90
  /// <reference path="portalservice.ts" />
92
- "use strict";
93
91
  var angularportalazure;
94
92
  (function (angularportalazure) {
95
93
  var UserControlBase = (function () {
96
- //#region Constructor
94
+ // #region Constructor
97
95
  function UserControlBase($scope, portalService) {
98
96
  this.$scope = $scope;
99
97
  this.portalService = portalService;
100
98
  }
101
- //#endregion
102
- //#region Methods
99
+ // #endregion
100
+ // #region Methods
103
101
  /** angular1: $onInit(), $onChanges(changesObj), $doCheck(), $onDestroy(), $postLink() */
104
102
  UserControlBase.prototype.$onDestroy = function () {
105
103
  this.removeWindowResizeListener();
@@ -137,8 +135,6 @@ var angularportalazure;
137
135
  }());
138
136
  angularportalazure.UserControlBase = UserControlBase;
139
137
  })(angularportalazure || (angularportalazure = {}));
140
- "use strict";
141
- "use strict";
142
138
  var __extends = (this && this.__extends) || (function () {
143
139
  var extendStatics = Object.setPrototypeOf ||
144
140
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -157,13 +153,13 @@ var angularportalazure;
157
153
  (function (angularportalazure) {
158
154
  var Blade = (function (_super) {
159
155
  __extends(Blade, _super);
160
- //#region Constructor
156
+ // #region Constructor
161
157
  function Blade($scope, portalService, path, title, subtitle, width) {
162
158
  if (subtitle === void 0) { subtitle = ''; }
163
159
  if (width === void 0) { width = 200; }
164
160
  var _this = _super.call(this, $scope, portalService) || this;
165
- //#endregion
166
- //#region Properties
161
+ // #endregion
162
+ // #region Properties
167
163
  /** HACK: 2016-11-06/hp
168
164
  [angular-portal-blade] needs [this] as the controller.
169
165
  We don't know how to provide [this] to the directive.
@@ -177,9 +173,9 @@ var angularportalazure;
177
173
  _this.isInnerHtml = true;
178
174
  _this.statusBar = '';
179
175
  _this.statusBarClass = '';
180
- //#endregion
181
- //#endregion
182
- //#region Commands
176
+ // #endregion
177
+ // #endregion
178
+ // #region Commands
183
179
  _this.isCommandBrowse = false;
184
180
  _this.commandBrowse = function () { _this.onCommandBrowse(); };
185
181
  _this.commandBrowseText = '';
@@ -283,9 +279,8 @@ var angularportalazure;
283
279
  enumerable: true,
284
280
  configurable: true
285
281
  });
286
- //#endregion
287
- //#region Methods
288
- //#region Methods
282
+ // #endregion
283
+ // #region Methods
289
284
  Blade.prototype.activate = function () {
290
285
  this.onActivate();
291
286
  this.onActivated();
@@ -326,10 +321,14 @@ var angularportalazure;
326
321
  throw new Error('[angularportalazure.Blade] path: \'' + this.path + '\' could not be removed, since no \'this.portalService.areaBlades\' available.');
327
322
  }
328
323
  };
329
- //#region Set StatusBar
330
- Blade.prototype.clearStatusBar = function () {
331
- this.statusBar = '';
332
- this.statusBarClass = '';
324
+ // #region Set StatusBar
325
+ Blade.prototype.clearStatusBar = function (text, style) {
326
+ this.statusBar = text ? text : '';
327
+ this.statusBarClass = style.info;
328
+ };
329
+ Blade.prototype.setStatusBarCopyData = function () {
330
+ this.statusBar = 'Daten kopieren...';
331
+ this.statusBarClass = 'apa-statusbar-info';
333
332
  };
334
333
  Blade.prototype.setStatusBarLoadData = function () {
335
334
  this.statusBar = 'Daten laden...';
@@ -363,9 +362,8 @@ var angularportalazure;
363
362
  this.statusBar = angularportalazure.Exception.getOneLineMessage(exception);
364
363
  this.statusBarClass = 'apa-statusbar-error';
365
364
  };
366
- //#endregion
367
- //#endregion
368
- //#region Commands
365
+ // #endregion
366
+ // #region Commands
369
367
  Blade.prototype.onCommandBrowse = function () {
370
368
  throw new Error('[angularportalazure.Blade] \'onCommandBrowse\' is an abstract function. Define one in the derived class.');
371
369
  };
@@ -420,8 +418,9 @@ var angularportalazure;
420
418
  Blade.prototype.onCommandExcel = function () {
421
419
  throw new Error('[angularportalazure.Blade] \'onCommandExcel\' is an abstract function. Define one in the derived class.');
422
420
  };
421
+ // #endregion
423
422
  //#endregion
424
- //** Change title, as soon as watchExpression changes. watchExpression is either a variable ore an expresssion, e.g. [name1 + name2] */
423
+ /** Change title, as soon as watchExpression changes. watchExpression is either a variable ore an expression, e.g. [name1 + name2] */
425
424
  Blade.prototype.setTitle = function (watchExpression, func) {
426
425
  var _this = this;
427
426
  if (this.watcherTitle === undefined) {
@@ -439,8 +438,8 @@ var angularportalazure;
439
438
  Blade.prototype.setBladeHeights = function () {
440
439
  this.bladeContentHeight = this.portalService.$window.innerHeight - 40 - 125; // 40 = topbar, 125 = blade header
441
440
  this.bladeContentHeightInner = this.bladeContentHeight - 50 - 3; // 50 = padding (top and bottom), somehow we miss 3px
442
- //this.portalService.$timeout(() => {
443
- //}, 50);
441
+ // this.portalService.$timeout(() => {
442
+ // }, 50);
444
443
  };
445
444
  return Blade;
446
445
  }(angularportalazure.UserControlBase));
@@ -451,7 +450,6 @@ var angularportalazure;
451
450
  /// <reference path="usercontrolbase.ts" />
452
451
  /// <reference path="portalservice.ts" />
453
452
  /// <reference path="iaddbladeeventargs.ts" />
454
- "use strict";
455
453
  var angularportalazure;
456
454
  (function (angularportalazure) {
457
455
  var AreaBlades = (function (_super) {
@@ -459,15 +457,15 @@ var angularportalazure;
459
457
  function AreaBlades($scope, portalService) {
460
458
  var _this = _super.call(this, $scope, portalService) || this;
461
459
  _this.blades = new Array();
462
- //this.areaBlades = this.portalService.$window.document.getElementById('apa-blade-area');
460
+ // this.areaBlades = this.portalService.$window.document.getElementById('apa-blade-area');
463
461
  _this.portalScroll = _this.portalService.$window.document.getElementById('apa-portal-scroll');
464
462
  _this.setupAddBladeListener();
465
463
  _this.setupShowHideNotificationAreaListener();
466
464
  _this.setupWindowResizeListener(function () { _this.setPortalScrollCss(); });
467
465
  return _this;
468
466
  }
469
- //#endregion
470
- //#region Methods
467
+ // #endregion
468
+ // #region Methods
471
469
  AreaBlades.prototype.raiseAddBladeEvent = function (args) {
472
470
  var isBladeAlreadyShown = false;
473
471
  this.blades.forEach(function (blade) {
@@ -501,7 +499,7 @@ var angularportalazure;
501
499
  this.portalService.$analytics.pageTrack(path);
502
500
  path = path.toLowerCase();
503
501
  senderPath = senderPath.toLowerCase();
504
- //#region Verify
502
+ // #region Verify
505
503
  if (path === undefined || path === '') {
506
504
  return;
507
505
  }
@@ -514,11 +512,11 @@ var angularportalazure;
514
512
  throw new Error('[angularportalazure.AreaBlades] HTML element with ID [apa-portal-scroll] not found. Maybe it is to early to call function \'BladeArea.addBlade\'.');
515
513
  }
516
514
  }
517
- //#endregion
518
- //#region Clear all children of the parent path
515
+ // #endregion
516
+ // #region Clear all children of the parent path
519
517
  this.clearChild(senderPath);
520
- //#endregion
521
- //#region Make sure the blade is not yet show
518
+ // #endregion
519
+ // #region Make sure the blade is not yet show
522
520
  this.blades.forEach(function (blade) {
523
521
  // we do not distinguish between lower and upper case path name
524
522
  if (blade.comparePaths(blade.path, path)) {
@@ -526,12 +524,12 @@ var angularportalazure;
526
524
  }
527
525
  ;
528
526
  });
529
- //#endregion
530
- //#region Show the blade
527
+ // #endregion
528
+ // #region Show the blade
531
529
  var blade = new angularportalazure.Blade(this.$scope, this.portalService, path, '');
532
530
  this.blades.push(blade);
533
- //#endregion
534
- //#region Position the blade
531
+ // #endregion
532
+ // #region Position the blade
535
533
  if (this.portalService.$window !== undefined) {
536
534
  this.portalService.$window.setTimeout(function () {
537
535
  var azureportalblades = _this.portalService.$window.document.getElementsByClassName('azureportalblade');
@@ -544,7 +542,7 @@ var angularportalazure;
544
542
  }
545
543
  }, 250);
546
544
  }
547
- //#endregion
545
+ // #endregion
548
546
  return blade;
549
547
  };
550
548
  AreaBlades.prototype.clearAll = function () {
@@ -622,7 +620,7 @@ var angularportalazure;
622
620
  this.areaNotificationShowListener();
623
621
  this.areaNotificationHideListener();
624
622
  };
625
- //#endregion
623
+ // #endregion
626
624
  AreaBlades.prototype.setPortalScrollCss = function () {
627
625
  this.portalScroll.style.marginRight = this.portalService.areaNotification.widthAreaUsed + 'px';
628
626
  };
@@ -643,25 +641,24 @@ var angularportalazure;
643
641
  };
644
642
  return AreaBlades;
645
643
  }(angularportalazure.UserControlBase));
646
- //#region Constructor
644
+ // #region Constructor
647
645
  AreaBlades.$inject = ['$scope', 'angularportalazure.portalService'];
648
646
  angularportalazure.AreaBlades = AreaBlades;
649
647
  angular.module('angularportalazure').service('angularportalazure.areaBlades', AreaBlades);
650
648
  })(angularportalazure || (angularportalazure = {}));
651
649
  /// <reference path="areablades.ts" />
652
650
  /// <reference path="portalservice.ts" />
653
- "use strict";
654
651
  var angularportalazure;
655
652
  (function (angularportalazure) {
656
653
  var BladeData = (function (_super) {
657
654
  __extends(BladeData, _super);
658
- //#region Constructor
655
+ // #region Constructor
659
656
  function BladeData($scope, portalService, path, title, subtitle, width) {
660
657
  if (subtitle === void 0) { subtitle = ''; }
661
658
  if (width === void 0) { width = 300; }
662
659
  return _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
663
660
  }
664
- //#endregion
661
+ // #endregion
665
662
  BladeData.prototype.onLoadItem = function () {
666
663
  this.visibility = 'collapse';
667
664
  this.setStatusBarLoadData();
@@ -685,26 +682,25 @@ var angularportalazure;
685
682
  /// <reference path="bladedata.ts" />
686
683
  /// <reference path="bladenavitem.ts" />
687
684
  /// <reference path="portalservice.ts" />
688
- "use strict";
689
685
  var angularportalazure;
690
686
  (function (angularportalazure) {
691
687
  var BladeNav = (function (_super) {
692
688
  __extends(BladeNav, _super);
693
- //#region Constructor
689
+ // #region Constructor
694
690
  function BladeNav($scope, portalService, path, title, subtitle, width) {
695
691
  if (title === void 0) { title = ''; }
696
692
  if (subtitle === void 0) { subtitle = ''; }
697
693
  if (width === void 0) { width = 315; }
698
694
  var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
699
- //#endregion
700
- //#region Properties
695
+ // #endregion
696
+ // #region Properties
701
697
  _this.items = new Array();
702
698
  _this.isNav = true;
703
699
  _this.isInnerHtml = false;
704
700
  return _this;
705
701
  }
706
- //#endregion
707
- //#region Methods
702
+ // #endregion
703
+ // #region Methods
708
704
  BladeNav.prototype.onNavigateTo = function (path) {
709
705
  if (path === '') {
710
706
  return;
@@ -716,11 +712,10 @@ var angularportalazure;
716
712
  angularportalazure.BladeNav = BladeNav;
717
713
  })(angularportalazure || (angularportalazure = {}));
718
714
  /// <reference path="bladenav.ts" />
719
- "use strict";
720
715
  var angularportalazure;
721
716
  (function (angularportalazure) {
722
717
  var BladeNavItem = (function () {
723
- //#region Constructor
718
+ // #region Constructor
724
719
  function BladeNavItem(title, cssClass, bladePath, hrefPath, roles, isVisible, callback, bladeNav) {
725
720
  if (title === void 0) { title = ''; }
726
721
  if (cssClass === void 0) { cssClass = ''; }
@@ -739,8 +734,8 @@ var angularportalazure;
739
734
  this.callback = callback;
740
735
  this.bladeNav = bladeNav;
741
736
  }
742
- //#endregion
743
- //#region Methods
737
+ // #endregion
738
+ // #region Methods
744
739
  BladeNavItem.prototype.onNavItemClick = function () {
745
740
  if (this.callback != null) {
746
741
  this.callback();
@@ -753,16 +748,15 @@ var angularportalazure;
753
748
  /// <reference path="bladedata.ts" />
754
749
  /// <reference path="bladenavitem.ts" />
755
750
  /// <reference path="portalservice.ts" />
756
- "use strict";
757
751
  var angularportalazure;
758
752
  (function (angularportalazure) {
759
753
  var AreaNotification = (function (_super) {
760
754
  __extends(AreaNotification, _super);
761
- //#region Constructor
755
+ // #region Constructor
762
756
  function AreaNotification($scope, portalService) {
763
757
  var _this = _super.call(this, $scope, portalService) || this;
764
- //#endregion
765
- //#region Properties
758
+ // #endregion
759
+ // #region Properties
766
760
  _this.path = '';
767
761
  _this.widthAreaUsed = 0;
768
762
  _this._width = 250;
@@ -794,8 +788,8 @@ var angularportalazure;
794
788
  enumerable: true,
795
789
  configurable: true
796
790
  });
797
- //#endregion
798
- //#region Methods
791
+ // #endregion
792
+ // #region Methods
799
793
  AreaNotification.prototype.hide = function () {
800
794
  this.path = '';
801
795
  this.widthAreaUsed = 0;
@@ -826,16 +820,14 @@ var angularportalazure;
826
820
  }(angularportalazure.UserControlBase));
827
821
  angularportalazure.AreaNotification = AreaNotification;
828
822
  })(angularportalazure || (angularportalazure = {}));
829
- "use strict";
830
823
  /// <reference path="portalservice.ts" />
831
824
  /// <reference path="useraccount.ts" />
832
825
  /// <reference path="usercontrolbase.ts" />
833
- "use strict";
834
826
  var angularportalazure;
835
827
  (function (angularportalazure) {
836
828
  var AvatarMenu = (function (_super) {
837
829
  __extends(AvatarMenu, _super);
838
- //#region Constructor
830
+ // #region Constructor
839
831
  function AvatarMenu($scope, portalService) {
840
832
  return _super.call(this, $scope, portalService) || this;
841
833
  }
@@ -843,7 +835,6 @@ var angularportalazure;
843
835
  }(angularportalazure.UserControlBase));
844
836
  angularportalazure.AvatarMenu = AvatarMenu;
845
837
  })(angularportalazure || (angularportalazure = {}));
846
- "use strict";
847
838
  var angularportalazure;
848
839
  (function (angularportalazure) {
849
840
  /** The names are used in CSS for layouting, e.g. style='mini' */
@@ -856,18 +847,17 @@ var angularportalazure;
856
847
  })(TileSizes = angularportalazure.TileSizes || (angularportalazure.TileSizes = {}));
857
848
  })(angularportalazure || (angularportalazure = {}));
858
849
  /// <reference path="tilesizes.ts" />
859
- "use strict";
860
850
  var angularportalazure;
861
851
  (function (angularportalazure) {
862
852
  var TileSize = (function () {
863
- //#region Constructor
853
+ // #region Constructor
864
854
  function TileSize(tileSizes, width, height) {
865
855
  this.tileSizes = tileSizes;
866
856
  this.width = width;
867
857
  this.height = height;
868
858
  }
869
- //#endregion
870
- //#region Methods
859
+ // #endregion
860
+ // #region Methods
871
861
  TileSize.getTileSizes = function () {
872
862
  var tileSizes = Array();
873
863
  tileSizes.push(new TileSize(angularportalazure.TileSizes.small, 90, 90));
@@ -883,11 +873,10 @@ var angularportalazure;
883
873
  /// <reference path="blade.ts" />
884
874
  /// <reference path="portalservice.ts" />
885
875
  /// <reference path="tilesize.ts" />
886
- "use strict";
887
876
  var angularportalazure;
888
877
  (function (angularportalazure) {
889
878
  var Tile = (function () {
890
- //#region Constructor
879
+ // #region Constructor
891
880
  function Tile(title, bladePath, portalService) {
892
881
  this.portalService = portalService;
893
882
  this.title = title;
@@ -895,7 +884,7 @@ var angularportalazure;
895
884
  this.tileSize = angularportalazure.TileSizes.normal;
896
885
  }
897
886
  Object.defineProperty(Tile.prototype, "bladePath", {
898
- //#region bladePath
887
+ // #region bladePath
899
888
  get: function () {
900
889
  return this._bladePath;
901
890
  },
@@ -906,8 +895,8 @@ var angularportalazure;
906
895
  enumerable: true,
907
896
  configurable: true
908
897
  });
909
- //#endregion
910
- //#region Methods
898
+ // #endregion
899
+ // #region Methods
911
900
  Tile.prototype.clicked = function () {
912
901
  this.portalService.areaBlades.setFirstBlade(this.bladePath);
913
902
  };
@@ -918,12 +907,11 @@ var angularportalazure;
918
907
  /// <reference path="tile.ts" />
919
908
  /// <reference path="tilesize.ts" />
920
909
  /// <reference path="tilesizes.ts" />
921
- "use strict";
922
910
  var angularportalazure;
923
911
  (function (angularportalazure) {
924
912
  var Tiles = (function () {
925
913
  function Tiles() {
926
- //#region Properties
914
+ // #region Properties
927
915
  this.showTiles = true;
928
916
  this.tiles = new Array();
929
917
  this.isTilesLoaded = false;
@@ -932,10 +920,10 @@ var angularportalazure;
932
920
  this.nextLeft = 0;
933
921
  this.nextTop = 0;
934
922
  this.columnHeightMax = 0;
935
- //#endregion
923
+ // #endregion
936
924
  }
937
- //#endregion
938
- //#region Methods
925
+ // #endregion
926
+ // #region Methods
939
927
  Tiles.prototype.addTile = function (tile) {
940
928
  this.isTilesLoaded = true;
941
929
  var tileSize = this.tileSizes[tile.tileSize];
@@ -961,12 +949,11 @@ var angularportalazure;
961
949
  /// <reference path="portalservice.ts" />
962
950
  /// <reference path="tiles.ts" />
963
951
  /// <reference path="usercontrolbase.ts" />
964
- "use strict";
965
952
  var angularportalazure;
966
953
  (function (angularportalazure) {
967
954
  var Startboard = (function (_super) {
968
955
  __extends(Startboard, _super);
969
- //#region Constructor
956
+ // #region Constructor
970
957
  function Startboard($scope, portalService) {
971
958
  var _this = _super.call(this, $scope, portalService) || this;
972
959
  _this.tiles = new angularportalazure.Tiles();
@@ -980,13 +967,12 @@ var angularportalazure;
980
967
  /// <reference path="startboard.ts" />
981
968
  /// <reference path="portalservice.ts" />
982
969
  /// <reference path="usercontrolbase.ts" />
983
- "use strict";
984
970
  var angularportalazure;
985
971
  (function (angularportalazure) {
986
972
  var Panorama = (function (_super) {
987
973
  __extends(Panorama, _super);
988
- //#endregion
989
- //#region Constructor
974
+ // #endregion
975
+ // #region Constructor
990
976
  function Panorama($scope, title, portalService) {
991
977
  var _this = _super.call(this, $scope, portalService) || this;
992
978
  _this.isVisible = true;
@@ -1005,11 +991,10 @@ var angularportalazure;
1005
991
  /// <reference path="panorama.ts" />
1006
992
  /// <reference path="portalservice.ts" />
1007
993
  /// <reference path="tiles.ts" />
1008
- "use strict";
1009
994
  var angularportalazure;
1010
995
  (function (angularportalazure) {
1011
996
  var PortalShell = (function () {
1012
- //#region Constructor
997
+ // #region Constructor
1013
998
  function PortalShell(portalService, title) {
1014
999
  if (title === void 0) { title = null; }
1015
1000
  this.portalService = portalService;
@@ -1033,13 +1018,12 @@ var angularportalazure;
1033
1018
  /// <reference path="panorama.ts" />
1034
1019
  /// <reference path="portalshell.ts" />
1035
1020
  /// <reference types="angulartics" />
1036
- "use strict";
1037
1021
  var angularportalazure;
1038
1022
  (function (angularportalazure) {
1039
1023
  var PortalService = (function () {
1040
1024
  function PortalService($injector) {
1041
- //#endregion
1042
- //#region Properties
1025
+ // #endregion
1026
+ // #region Properties
1043
1027
  this.parameter = { action: 'none', itemId: 0 };
1044
1028
  this.$injector = $injector;
1045
1029
  this.$http = $injector.get('$http');
@@ -1054,14 +1038,13 @@ var angularportalazure;
1054
1038
  }
1055
1039
  return PortalService;
1056
1040
  }());
1057
- //#region Constructor
1041
+ // #region Constructor
1058
1042
  PortalService.$inject = ['$injector'];
1059
1043
  angularportalazure.PortalService = PortalService;
1060
1044
  angular.module('angularportalazure').service('angularportalazure.portalService', PortalService);
1061
1045
  })(angularportalazure || (angularportalazure = {}));
1062
1046
  /// <reference types="angular" />
1063
1047
  /// <reference path="../../domain/portalservice.ts" />
1064
- "use strict";
1065
1048
  var angularportalazure;
1066
1049
  (function (angularportalazure) {
1067
1050
  AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
@@ -1081,7 +1064,6 @@ var angularportalazure;
1081
1064
  };
1082
1065
  angular.module('angularportalazure').component('angularPortalBlade', angularPortalBlade);
1083
1066
  })(angularportalazure || (angularportalazure = {}));
1084
- "use strict";
1085
1067
  var angularportalazure;
1086
1068
  (function (angularportalazure) {
1087
1069
  var angularPortalGrid = {
@@ -1094,7 +1076,6 @@ var angularportalazure;
1094
1076
  };
1095
1077
  angular.module('angularportalazure').component('angularPortalGrid', angularPortalGrid);
1096
1078
  })(angularportalazure || (angularportalazure = {}));
1097
- "use strict";
1098
1079
  var angularportalazure;
1099
1080
  (function (angularportalazure) {
1100
1081
  AngularPortalHomeController.$inject = ['$scope', 'angularportalazure.portalService'];
@@ -1113,7 +1094,6 @@ var angularportalazure;
1113
1094
  };
1114
1095
  angular.module('angularportalazure').component('angularPortalHome', angularPortalHome);
1115
1096
  })(angularportalazure || (angularportalazure = {}));
1116
- "use strict";
1117
1097
  var angularportalazure;
1118
1098
  (function (angularportalazure) {
1119
1099
  var angularPortalNav = {
@@ -1128,18 +1108,17 @@ var angularportalazure;
1128
1108
  })(angularportalazure || (angularportalazure = {}));
1129
1109
  /// <reference path="bladedata.ts" />
1130
1110
  /// <reference path="portalservice.ts" />
1131
- "use strict";
1132
1111
  var angularportalazure;
1133
1112
  (function (angularportalazure) {
1134
1113
  var BladeDetail = (function (_super) {
1135
1114
  __extends(BladeDetail, _super);
1136
- //#region Constructor
1115
+ // #region Constructor
1137
1116
  function BladeDetail($scope, portalService, path, title, subtitle, width) {
1138
1117
  if (subtitle === void 0) { subtitle = ''; }
1139
1118
  if (width === void 0) { width = 200; }
1140
1119
  var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
1141
- //#endregion
1142
- //#region Properties
1120
+ // #endregion
1121
+ // #region Properties
1143
1122
  _this.item = {};
1144
1123
  _this.commandNewText = 'neu';
1145
1124
  _this.commandSaveText = 'speichern';
@@ -1147,8 +1126,8 @@ var angularportalazure;
1147
1126
  _this.commandCancelText = 'abbrechen';
1148
1127
  return _this;
1149
1128
  }
1150
- //#endregion
1151
- //#region Methods
1129
+ // #endregion
1130
+ // #region Methods
1152
1131
  BladeDetail.prototype.loadItem = function (func) {
1153
1132
  var _this = this;
1154
1133
  this.onLoadItem();
@@ -1191,23 +1170,22 @@ var angularportalazure;
1191
1170
  })(angularportalazure || (angularportalazure = {}));
1192
1171
  /// <reference path="bladedata.ts" />
1193
1172
  /// <reference path="portalservice.ts" />
1194
- "use strict";
1195
1173
  var angularportalazure;
1196
1174
  (function (angularportalazure) {
1197
1175
  var BladeGrid = (function (_super) {
1198
1176
  __extends(BladeGrid, _super);
1199
- //#region Constructor
1177
+ // #region Constructor
1200
1178
  function BladeGrid($scope, portalService, path, title, subtitle, width) {
1201
1179
  if (subtitle === void 0) { subtitle = ''; }
1202
1180
  if (width === void 0) { width = 200; }
1203
1181
  var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
1204
- //#endregion
1205
- //#region Properties
1182
+ // #endregion
1183
+ // #region Properties
1206
1184
  _this.items = [];
1207
1185
  return _this;
1208
1186
  }
1209
- //#endregion
1210
- //#region Methods
1187
+ // #endregion
1188
+ // #region Methods
1211
1189
  BladeGrid.prototype.loadItems = function (func) {
1212
1190
  var _this = this;
1213
1191
  this.onLoadItems();
@@ -1218,15 +1196,15 @@ var angularportalazure;
1218
1196
  _this.setStatusBarException(exception);
1219
1197
  });
1220
1198
  };
1221
- //#region Filter
1199
+ // #region Filter
1222
1200
  BladeGrid.prototype.onFilter = function (actual, expected) {
1223
- //#region Documentation
1201
+ // #region Documentation
1224
1202
  // > onFilter will be called for each item in an array
1225
1203
  // > If the item is an native type (string, number), the filter will be called with the native type in the parameter 'actual'
1226
1204
  // > If the item is an object, the filter will be called with each property of the object in the parameter 'actual'
1227
1205
  // > If the item is an object, the filter will also be called with the object in the parameter 'actual'
1228
- //#endregion
1229
- //#region Helper functions
1206
+ // #endregion
1207
+ // #region Helper functions
1230
1208
  // Implemenation detail:
1231
1209
  // > We implemented the following functions with in-line-functions, since onFilter is not called within the scope of a class (this. not working).
1232
1210
  // Function to convert 'number' to 'string'
@@ -1262,14 +1240,14 @@ var angularportalazure;
1262
1240
  }
1263
1241
  }
1264
1242
  };
1265
- //#endregion
1266
- //#region Initialize
1243
+ // #endregion
1244
+ // #region Initialize
1267
1245
  // Prepare 'expected' value
1268
1246
  expected = expected.toLowerCase();
1269
1247
  // Split the search string into its parts if separated by blanks
1270
1248
  var expectedSplitted = expected.split(' ');
1271
- //#endregion
1272
- //#region Process depending on type
1249
+ // #endregion
1250
+ // #region Process depending on type
1273
1251
  // Process property, typeof 'object'
1274
1252
  if (typeof actual === 'object') {
1275
1253
  processObject(actual);
@@ -1282,16 +1260,16 @@ var angularportalazure;
1282
1260
  if (typeof actual === 'string') {
1283
1261
  valueFound(actual, expected);
1284
1262
  }
1285
- //#endregion
1286
- //#region Verify if all expected has been found
1263
+ // #endregion
1264
+ // #region Verify if all expected has been found
1287
1265
  var foundCount = 0;
1288
1266
  expectedSplitted.forEach(function (expectedItem) {
1289
1267
  if (expectedItem === '') {
1290
1268
  foundCount++;
1291
1269
  }
1292
1270
  });
1293
- //#endregion
1294
- //#region Return result
1271
+ // #endregion
1272
+ // #region Return result
1295
1273
  if (foundCount === expectedSplitted.length) {
1296
1274
  return true;
1297
1275
  }
@@ -1299,21 +1277,20 @@ var angularportalazure;
1299
1277
  return false;
1300
1278
  }
1301
1279
  ;
1302
- //#endregion
1280
+ // #endregion
1303
1281
  };
1304
1282
  return BladeGrid;
1305
1283
  }(angularportalazure.BladeData));
1306
1284
  angularportalazure.BladeGrid = BladeGrid;
1307
1285
  })(angularportalazure || (angularportalazure = {}));
1308
- "use strict";
1309
1286
  var angularportalazure;
1310
1287
  (function (angularportalazure) {
1311
1288
  var Debug = (function () {
1312
- //#region Constructor
1289
+ // #region Constructor
1313
1290
  function Debug() {
1314
1291
  }
1315
- //#endregion
1316
- //#region Methods
1292
+ // #endregion
1293
+ // #region Methods
1317
1294
  Debug.enable = function (key) {
1318
1295
  Debug.isEnabled = true;
1319
1296
  if (key) {
@@ -1365,14 +1342,13 @@ var angularportalazure;
1365
1342
  };
1366
1343
  return Debug;
1367
1344
  }());
1368
- //#endregion
1369
- //#region Properties
1345
+ // #endregion
1346
+ // #region Properties
1370
1347
  Debug.isEnabled = false;
1371
1348
  Debug.isWithObjects = false;
1372
1349
  Debug.keys = new Array();
1373
1350
  angularportalazure.Debug = Debug;
1374
1351
  })(angularportalazure || (angularportalazure = {}));
1375
- "use strict";
1376
1352
  var angularportalazure;
1377
1353
  (function (angularportalazure) {
1378
1354
  var ExceptionDotNet = (function () {
@@ -1409,10 +1385,10 @@ var angularportalazure;
1409
1385
  exception.StackTrace = responseData.StackTrace;
1410
1386
  exception.InnerException = responseData.InnerException;
1411
1387
  // ValidationsExceptionDotNet
1412
- //exception.ClassName = 'Not yet implemented';
1413
- //exception.Data = [{ key: 0, value: 'Not yet implemented' }];
1388
+ // exception.ClassName = 'Not yet implemented';
1389
+ // exception.Data = [{ key: 0, value: 'Not yet implemented' }];
1414
1390
  // ValidationResultDotNet
1415
- //exception.ValidationResults = [{ ErrorMessage: 'Not yet implemented', MemberNames: [] }];
1391
+ // exception.ValidationResults = [{ ErrorMessage: 'Not yet implemented', MemberNames: [] }];
1416
1392
  };
1417
1393
  ValidationsExceptionDotNet.convertExceptionType = function (exception, responseData) {
1418
1394
  if (responseData.ExceptionType === undefined) {
@@ -1438,7 +1414,6 @@ var angularportalazure;
1438
1414
  }(ExceptionDotNet));
1439
1415
  angularportalazure.ValidationsExceptionDotNet = ValidationsExceptionDotNet;
1440
1416
  })(angularportalazure || (angularportalazure = {}));
1441
- "use strict";
1442
1417
  /// <reference path="exceptiondotnet.ts" />
1443
1418
  var angularportalazure;
1444
1419
  (function (angularportalazure) {
@@ -1447,8 +1422,8 @@ var angularportalazure;
1447
1422
  function Exception() {
1448
1423
  return _super !== null && _super.apply(this, arguments) || this;
1449
1424
  }
1450
- //#endregion
1451
- //#region Static Methods
1425
+ // #endregion
1426
+ // #region Static Methods
1452
1427
  Exception.getOneLineMessage = function (exception) {
1453
1428
  var message = 'FEHLER ';
1454
1429
  if (exception.Message !== undefined) {
@@ -1501,7 +1476,7 @@ var angularportalazure;
1501
1476
  };
1502
1477
  Exception.processDotNetException1 = function (response) {
1503
1478
  var exception = new angularportalazure.Exception();
1504
- //#region Convert data to Messages
1479
+ // #region Convert data to Messages
1505
1480
  exception.Messages = [];
1506
1481
  if (response.data.Data === undefined) {
1507
1482
  exception.Messages.push('No further information found in [response.data.Data].');
@@ -1513,7 +1488,7 @@ var angularportalazure;
1513
1488
  i++;
1514
1489
  }
1515
1490
  }
1516
- //#endregion
1491
+ // #endregion
1517
1492
  return exception;
1518
1493
  };
1519
1494
  // TODO:2017-01-09/hp: Implement this function for angular2
@@ -1529,17 +1504,16 @@ var angularportalazure;
1529
1504
  angularportalazure.Exception = Exception;
1530
1505
  })(angularportalazure || (angularportalazure = {}));
1531
1506
  /// <reference types="angular" />
1532
- "use strict";
1533
1507
  var angularportalazure;
1534
1508
  (function (angularportalazure) {
1535
1509
  var DataService = (function () {
1536
- //#region Constructor
1510
+ // #region Constructor
1537
1511
  function DataService($http, $q) {
1538
1512
  this.$http = $http;
1539
1513
  this.$q = $q;
1540
1514
  }
1541
- //#endregion
1542
- //#region Methods
1515
+ // #endregion
1516
+ // #region Methods
1543
1517
  DataService.prototype.getData = function (url) {
1544
1518
  return this.$http({ method: 'GET', url: url })
1545
1519
  .then(function (response) { })
package/package.json CHANGED
@@ -2,41 +2,41 @@
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.264",
5
+ "version": "0.2.266",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {
9
- "@angular/animations": "^4.0.0",
10
- "@angular/common": "^4.0.0",
11
- "@angular/compiler": "^4.0.0",
12
- "@angular/core": "^4.0.0",
13
- "@angular/forms": "^4.0.0",
14
- "@angular/http": "^4.0.0",
15
- "@angular/platform-browser": "^4.0.0",
16
- "@angular/platform-browser-dynamic": "^4.0.0",
17
- "@angular/platform-server": "^4.0.0",
18
- "@angular/router": "^4.0.0",
19
- "@angular/upgrade": "^4.0.0",
20
- "angular": "^1.6.3",
21
- "angular-resource": "^1.6.3",
9
+ "@angular/animations": "^4.1.2",
10
+ "@angular/common": "^4.1.2",
11
+ "@angular/compiler": "^4.1.2",
12
+ "@angular/core": "^4.1.2",
13
+ "@angular/forms": "^4.1.2",
14
+ "@angular/http": "^4.1.2",
15
+ "@angular/platform-browser": "^4.1.2",
16
+ "@angular/platform-browser-dynamic": "^4.1.2",
17
+ "@angular/platform-server": "^4.1.2",
18
+ "@angular/router": "^4.1.2",
19
+ "@angular/upgrade": "^4.1.2",
20
+ "angular": "^1.6.4",
21
+ "angular-resource": "^1.6.4",
22
22
  "angular-translate": "^2.15.1",
23
23
  "angular-translate-storage-cookie": "^2.15.1",
24
24
  "angulartics": "^1.4.0",
25
25
  "angulartics-google-analytics": "^0.4.0",
26
- "bootstrap": "^4.0.0-alpha.6",
27
- "ng-dialog": "^1.0.1",
28
- "rxjs": "^5.0.1",
29
- "zone.js": "^0.8.4"
26
+ "bootstrap": "^3.3.7",
27
+ "ng-dialog": "^1.1.0",
28
+ "rxjs": "^5.4.0",
29
+ "zone.js": "^0.8.10"
30
30
  },
31
31
  "devDependencies": {
32
- "@angular/compiler-cli": "^4.0.0",
33
- "@types/angular": "^1.6.10",
32
+ "@angular/compiler-cli": "^4.1.2",
33
+ "@types/angular": "https://registry.npmjs.org/@types/angular/-/angular-1.6.17.tgz",
34
34
  "@types/angular-resource": "^1.5.8",
35
- "@types/angular-translate": "^2.4.35",
35
+ "@types/angular-translate": "^2.15.0",
36
36
  "@types/angulartics": "^1.3.1",
37
37
  "@types/ng-dialog": "^0.6.0",
38
- "@types/node": "^7.0.11",
39
- "tslint": "^4.5.1",
40
- "typescript": "^2.2.1"
38
+ "@types/node": "^7.0.18",
39
+ "tslint": "^5.2.0",
40
+ "typescript": "^2.3.2"
41
41
  }
42
42
  }
package/apn.d.ts DELETED
@@ -1,443 +0,0 @@
1
- /// <reference types="angular" />
2
- /// <reference types="jquery" />
3
- /// <reference types="angular-resource" />
4
- /// <reference types="angulartics" />
5
- /// <reference types="angular-translate" />
6
- declare namespace angularportalazure {
7
- }
8
- declare namespace angularportalazure {
9
- class UserAccount {
10
- constructor(username: string, firstName?: string, lastName?: string);
11
- private _firstName;
12
- firstName: string;
13
- private _lastName;
14
- lastName: string;
15
- private _name;
16
- name: string;
17
- userName: string;
18
- emailAddress: string;
19
- }
20
- }
21
- declare namespace angularportalazure {
22
- class UserControlBase {
23
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
24
- $scope: angular.IScope;
25
- portalService: angularportalazure.PortalService;
26
- windowResizeHandler: () => void;
27
- /** angular1: $onInit(), $onChanges(changesObj), $doCheck(), $onDestroy(), $postLink() */
28
- $onDestroy(): void;
29
- /** angular2: ngOnChanges(), ngOnInit, ngDoCheck, ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, ngOnDestroy */
30
- ngOnDestroy(): void;
31
- private removeWindowResizeListener();
32
- setupWindowResizeListener(callback: () => void): void;
33
- isStringNullOrEmpty(value: string): boolean;
34
- getRandomString(length?: number): string;
35
- }
36
- }
37
- declare namespace angularportalazure {
38
- interface IAddBladeEventArgs {
39
- path: string;
40
- pathSender: string;
41
- }
42
- }
43
- declare var $: JQueryStatic;
44
- declare namespace angularportalazure {
45
- class Blade extends angularportalazure.UserControlBase {
46
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
47
- /** HACK: 2016-11-06/hp
48
- [angular-portal-blade] needs [this] as the controller.
49
- We don't know how to provide [this] to the directive.
50
- So we came up with this [vm] property.*/
51
- vm: any;
52
- visibility: string;
53
- private watcherTitle;
54
- bladeContentHeight: number;
55
- bladeContentHeightInner: number;
56
- title: string;
57
- subTitle: string;
58
- width: {
59
- 'width': string;
60
- };
61
- widthStackLayout: {
62
- 'width': string;
63
- };
64
- isInnerHtml: boolean;
65
- statusBar: string;
66
- statusBarClass: string;
67
- formblade: any;
68
- private _path;
69
- path: string;
70
- isCommandBrowse: boolean;
71
- commandBrowse: () => void;
72
- commandBrowseText: string;
73
- isCommandCancel: boolean;
74
- commandCancel: () => void;
75
- commandCancelText: string;
76
- isCommandCopy: boolean;
77
- commandCopy: () => void;
78
- commandCopyText: string;
79
- isCommandDelete: boolean;
80
- commandDelete: () => void;
81
- commandDeleteText: string;
82
- isCommandDocument: boolean;
83
- commandDocument: () => void;
84
- commandDocumentText: string;
85
- isCommandDocument2: boolean;
86
- commandDocument2: () => void;
87
- commandDocument2Text: string;
88
- isCommandDocument3: boolean;
89
- commandDocument3: () => void;
90
- commandDocument3Text: string;
91
- isCommandDocument4: boolean;
92
- commandDocument4: () => void;
93
- commandDocument4Text: string;
94
- isCommandDocument5: boolean;
95
- commandDocument5: () => void;
96
- commandDocument5Text: string;
97
- isCommandNew: boolean;
98
- commandNew: () => void;
99
- commandNewText: string;
100
- isCommandOrder: boolean;
101
- commandOrder: () => void;
102
- commandOrderText: string;
103
- isCommandRestart: boolean;
104
- commandRestart: () => void;
105
- commandRestartText: string;
106
- isCommandSave: boolean;
107
- commandSave: () => void;
108
- commandSaveText: string;
109
- isCommandSearch: boolean;
110
- commandSearch: () => void;
111
- commandSearchText: string;
112
- isCommandStart: boolean;
113
- commandStart: () => void;
114
- commandStartText: string;
115
- isCommandStop: boolean;
116
- commandStop: () => void;
117
- commandStopText: string;
118
- isCommandSwap: boolean;
119
- commandSwap: () => void;
120
- commandSwapText: string;
121
- isCommandExcel: boolean;
122
- commandExcel: () => void;
123
- commandExcelText: string;
124
- activate(): void;
125
- /** Override */
126
- onActivate(): void;
127
- onActivated(): void;
128
- navigateTo(path: any): void;
129
- /** Must be overridden. */
130
- onNavigateTo(value: any): void;
131
- comparePaths(path1: string, path2: string): boolean;
132
- /** close blade. */
133
- close(): void;
134
- clearStatusBar(): void;
135
- setStatusBarLoadData(): void;
136
- setStatusBarSaveData(): void;
137
- setStatusBarDeleteData(): void;
138
- setStatusBarDeleteDataCanceled(): void;
139
- setStatusBarInfo(text: string): void;
140
- setStatusBarError(text: string): void;
141
- setStatusBarNoDataFound(): void;
142
- setStatusBarException(exception: angularportalazure.Exception): void;
143
- onCommandBrowse(): void;
144
- onCommandCancel(): void;
145
- onCommandCopy(): void;
146
- onCommandDelete(): void;
147
- onCommandDocument(): void;
148
- onCommandDocument2(): void;
149
- onCommandDocument3(): void;
150
- onCommandDocument4(): void;
151
- onCommandDocument5(): void;
152
- onCommandNew(): void;
153
- onCommandOrder(): void;
154
- onCommandRestart(): void;
155
- onCommandSave(): void;
156
- onCommandSearch(): void;
157
- onCommandStart(): void;
158
- onCommandStop(): void;
159
- onCommandSwap(): void;
160
- onCommandExcel(): void;
161
- setTitle(watchExpression: string, func: () => void): void;
162
- private setBladeHeights();
163
- }
164
- }
165
- declare namespace angularportalazure {
166
- class AreaBlades extends angularportalazure.UserControlBase {
167
- static $inject: string[];
168
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
169
- private portalScroll;
170
- private addBladeListener;
171
- private areaNotificationShowListener;
172
- private areaNotificationHideListener;
173
- blades: Array<angularportalazure.Blade>;
174
- raiseAddBladeEvent(args: angularportalazure.IAddBladeEventArgs): void;
175
- setFirstBlade(path: string): angularportalazure.Blade | void;
176
- addBlade(path: string, senderPath?: string): angularportalazure.Blade | void;
177
- clearAll(): void;
178
- clearPath(path: string): void;
179
- clearLevel(level: number): void;
180
- clearLastLevel(): void;
181
- clearChild(path: string): void;
182
- showPanoramaIfNoBlades(): void;
183
- hidePanorama(): void;
184
- /** We need to call this when AreaBlades is no longer used, otherwise the listener does not get removed. */
185
- close(): void;
186
- private setPortalScrollCss();
187
- private setupShowHideNotificationAreaListener();
188
- private setupAddBladeListener();
189
- }
190
- }
191
- declare namespace angularportalazure {
192
- class BladeData extends angularportalazure.Blade {
193
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
194
- onLoadItem(): void;
195
- onLoadItems(): void;
196
- onLoadedItem(): void;
197
- onLoadedItems(): void;
198
- }
199
- }
200
- declare namespace angularportalazure {
201
- class BladeNav extends angularportalazure.BladeData {
202
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
203
- items: Array<angularportalazure.BladeNavItem>;
204
- isNav: boolean;
205
- onNavigateTo(path: string): void;
206
- }
207
- }
208
- declare namespace angularportalazure {
209
- class BladeNavItem {
210
- title: string;
211
- cssClass: string;
212
- bladePath: string;
213
- hrefPath: string;
214
- roles: string;
215
- isVisible: boolean;
216
- callback: () => any;
217
- bladeNav: angularportalazure.BladeNav | null;
218
- constructor(title?: string, cssClass?: string, bladePath?: string, hrefPath?: string, roles?: string, isVisible?: boolean, callback?: () => any, bladeNav?: angularportalazure.BladeNav | null);
219
- onNavItemClick(): void;
220
- }
221
- }
222
- declare namespace angularportalazure {
223
- class AreaNotification extends angularportalazure.UserControlBase {
224
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
225
- path: string;
226
- widthAreaUsed: number;
227
- private areaNotification;
228
- private _width;
229
- width: number;
230
- private _backgroundColor;
231
- backgroundColor: string;
232
- hide(): void;
233
- show(width?: number): void;
234
- private calcualteCssStyles();
235
- }
236
- }
237
- declare namespace angularportalazure {
238
- interface BladeParameter {
239
- action: string;
240
- item?: any;
241
- itemId: number;
242
- }
243
- }
244
- declare namespace angularportalazure {
245
- class AvatarMenu extends angularportalazure.UserControlBase {
246
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
247
- userAccount: angularportalazure.UserAccount | null;
248
- }
249
- }
250
- declare namespace angularportalazure {
251
- /** The names are used in CSS for layouting, e.g. style='mini' */
252
- enum TileSizes {
253
- small = 0,
254
- mini = 1,
255
- normal = 2,
256
- herowide = 3,
257
- }
258
- }
259
- declare namespace angularportalazure {
260
- class TileSize {
261
- tileSizes: angularportalazure.TileSizes;
262
- width: number;
263
- height: number;
264
- constructor(tileSizes: angularportalazure.TileSizes, width: number, height: number);
265
- static getTileSizes(): Array<TileSize>;
266
- }
267
- }
268
- declare namespace angularportalazure {
269
- class Tile {
270
- constructor(title: string, bladePath: string, portalService: angularportalazure.PortalService);
271
- portalService: angularportalazure.PortalService;
272
- title: string;
273
- subTitle: string;
274
- bladePath: string;
275
- private _bladePath;
276
- tileSize: angularportalazure.TileSizes;
277
- size: string;
278
- left: string;
279
- top: string;
280
- leftN: string;
281
- topN: string;
282
- clicked(): void;
283
- }
284
- }
285
- declare namespace angularportalazure {
286
- class Tiles {
287
- showTiles: boolean;
288
- tiles: Array<any>;
289
- isTilesLoaded: boolean;
290
- hideTileIfOnlyOne: boolean;
291
- private tileSizes;
292
- private nextLeft;
293
- private nextTop;
294
- private columnHeightMax;
295
- addTile(tile: Tile): Tile;
296
- }
297
- }
298
- declare namespace angularportalazure {
299
- class Startboard extends angularportalazure.UserControlBase {
300
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
301
- tiles: angularportalazure.Tiles;
302
- }
303
- }
304
- declare namespace angularportalazure {
305
- class Panorama extends angularportalazure.UserControlBase {
306
- title: string;
307
- isVisible: boolean;
308
- avatarMenu: angularportalazure.AvatarMenu;
309
- startboard: angularportalazure.Startboard;
310
- constructor($scope: angular.IScope, title: string, portalService: angularportalazure.PortalService);
311
- }
312
- }
313
- declare namespace angularportalazure {
314
- class PortalShell {
315
- portalService: angularportalazure.PortalService;
316
- constructor(portalService: angularportalazure.PortalService, title?: string);
317
- }
318
- }
319
- declare namespace angularportalazure {
320
- class PortalService {
321
- static $inject: string[];
322
- constructor($injector: angular.auto.IInjectorService);
323
- parameter: angularportalazure.BladeParameter;
324
- $analytics: angulartics.IAnalyticsService;
325
- animate: any;
326
- animation: any;
327
- component: any;
328
- config: any;
329
- constant: any;
330
- controller: any;
331
- directive: any;
332
- factory: any;
333
- filter: any;
334
- provider: any;
335
- run: any;
336
- service: any;
337
- value: any;
338
- decorator: any;
339
- name: any;
340
- requires: any;
341
- portalShell: angularportalazure.PortalShell;
342
- panorama: angularportalazure.Panorama;
343
- areaBlades: angularportalazure.AreaBlades;
344
- areaNotification: angularportalazure.AreaNotification;
345
- ngDialog: any;
346
- $injector: angular.auto.IInjectorService;
347
- $http: angular.IHttpService;
348
- $httpBackend: angular.IHttpBackendService;
349
- $q: angular.IQService;
350
- $rootScope: angular.IRootScopeService;
351
- $window: angular.IWindowService;
352
- $timeout: angular.ITimeoutService;
353
- $translate: angular.translate.ITranslateService;
354
- }
355
- }
356
- declare namespace angularportalazure {
357
- }
358
- declare namespace angularportalazure {
359
- }
360
- declare namespace angularportalazure {
361
- }
362
- declare namespace angularportalazure {
363
- }
364
- declare namespace angularportalazure {
365
- class BladeDetail<T> extends angularportalazure.BladeData {
366
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
367
- item: T;
368
- loadItem(func: () => any | angular.IPromise<any> | Promise<any>): void;
369
- saveItem(func: () => any): void;
370
- onSaveItem(): void;
371
- onSavedItem(): void;
372
- onCommandCancel(): void;
373
- }
374
- }
375
- declare namespace angularportalazure {
376
- class BladeGrid extends angularportalazure.BladeData {
377
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
378
- items: any[];
379
- loadItems(func: () => any | angular.IPromise<any> | Promise<any>): void;
380
- onFilter(actual: Object, expected: string): boolean;
381
- }
382
- }
383
- declare namespace angularportalazure {
384
- class Debug {
385
- constructor();
386
- static isEnabled: boolean;
387
- static isWithObjects: boolean;
388
- static keys: Array<string>;
389
- static enable(key?: string): void;
390
- static disable(key?: string): void;
391
- static write(debugLine: string, objects?: Array<any>): boolean;
392
- /** Extract the key (e.g. [azureportal] from a string */
393
- static extractKey(text: string): string;
394
- /** Extract the key (e.g. [azureportal] from a string */
395
- static isInKeys(debugLine: string): boolean;
396
- }
397
- }
398
- declare namespace angularportalazure {
399
- class ExceptionDotNet {
400
- ExceptionMessage: string;
401
- ExceptionType: string;
402
- InnerException: ExceptionDotNet;
403
- Message: string;
404
- StackTrace: string;
405
- }
406
- class ValidationResultDotNet {
407
- ErrorMessage: string;
408
- MemberNames: string[];
409
- }
410
- class ValidationsExceptionDotNet extends ExceptionDotNet {
411
- ClassName: string;
412
- Data: {
413
- key: number;
414
- value: string;
415
- }[];
416
- ValidationResults: ValidationResultDotNet[];
417
- convertResponse(response: any): void;
418
- private static convertResponse(exception, responseData);
419
- private static convertExceptionType(exception, responseData);
420
- }
421
- }
422
- declare namespace angularportalazure {
423
- class Exception extends angularportalazure.ValidationsExceptionDotNet {
424
- Type: string;
425
- MessageDetail: string;
426
- Messages: string[];
427
- Status: number | undefined;
428
- StatusText: string | undefined;
429
- Url: string;
430
- static getOneLineMessage(exception: angularportalazure.Exception): string;
431
- static prepareException(response: angular.IHttpPromiseCallbackArg<angularportalazure.Exception> | any): angularportalazure.Exception;
432
- private static processDotNetException1(response);
433
- private static processDotNetException2(response);
434
- }
435
- }
436
- declare namespace angularportalazure {
437
- class DataService {
438
- $http: angular.IHttpService;
439
- $q: angular.IQService;
440
- constructor($http: angular.IHttpService, $q: angular.IQService);
441
- getData(url: string): any;
442
- }
443
- }