@ardimedia/angular-portal-azure 0.2.149 → 0.2.151

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.d.ts +1 -0
  2. package/apn.js +22 -25
  3. package/package.json +7 -6
package/apn.d.ts CHANGED
@@ -52,6 +52,7 @@ declare namespace angularportalazure {
52
52
  constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
53
53
  private watcherTitle;
54
54
  bladeContentHeight: number;
55
+ bladeContentHeightInner: number;
55
56
  private _path;
56
57
  path: string;
57
58
  title: string;
package/apn.js CHANGED
@@ -20,23 +20,20 @@ var angularportalazure;
20
20
  $translateProvider.use(readCookie('SAMPLE_TRANSLATE_LANG_KEY'));
21
21
  }]);
22
22
  angularModule.config([function () {
23
- //Debug.enable('[angularportalazure-debug]');
24
- //Debug.isWithObjects = false;
25
23
  }]);
26
24
  angularModule.run(function () {
27
- //Debug.write('[angularportalazure-debug] \'angularportalazure.run\' executing.', [this]);
28
25
  });
29
26
  /** Read cookie */
30
27
  function readCookie(cookieName) {
31
- var cookieNameEQ = cookieName + "=";
28
+ var cookieNameEQ = cookieName + '=';
32
29
  var cookies = document.cookie.split(';');
33
30
  for (var i = 0; i < cookies.length; i++) {
34
31
  var cookie = cookies[i];
35
- while (cookie.charAt(0) == ' ') {
32
+ while (cookie.charAt(0) === ' ') {
36
33
  cookie = cookie.substring(1, cookie.length);
37
34
  }
38
35
  ;
39
- if (cookie.indexOf(cookieNameEQ) == 0) {
36
+ if (cookie.indexOf(cookieNameEQ) === 0) {
40
37
  return cookie.substring(cookieNameEQ.length, cookie.length);
41
38
  }
42
39
  ;
@@ -103,7 +100,7 @@ var angularportalazure;
103
100
  /** Extract the key (e.g. [azureportal] from a string */
104
101
  Debug.isInKeys = function (debugLine) {
105
102
  var key = Debug.extractKey(debugLine);
106
- if (Debug.keys.indexOf(key) != -1) {
103
+ if (Debug.keys.indexOf(key) !== -1) {
107
104
  return true;
108
105
  }
109
106
  return false;
@@ -282,7 +279,7 @@ var angularportalazure;
282
279
  _this.title = title;
283
280
  _this.subTitle = subtitle;
284
281
  _this.width.width = width + 'px';
285
- _this.widthStackLayout.width = width - 50 + 'px';
282
+ _this.widthStackLayout.width = width - 50 + 'px'; // 50 = padding (left and right)
286
283
  //this.navGrid.portalService = portalService;
287
284
  if (!portalService) {
288
285
  throw new Error('[angularportalazure.Blade] constructor parameter \'portalService\' must be provided.');
@@ -419,7 +416,7 @@ var angularportalazure;
419
416
  else {
420
417
  that.statusBar = 'FEHLER: ' + exception.Message;
421
418
  }
422
- if (exception.Messages != undefined) {
419
+ if (exception.Messages !== undefined) {
423
420
  exception.Messages.forEach(function (item) {
424
421
  that.statusBar += ' - ' + item;
425
422
  });
@@ -498,9 +495,8 @@ var angularportalazure;
498
495
  Blade.prototype.setBladeHeights = function () {
499
496
  var _this = this;
500
497
  this.portalService.$timeout(function () {
501
- console.log(_this.portalService.$window.innerHeight);
502
- _this.bladeContentHeight = _this.portalService.$window.innerHeight - 125; // header
503
- console.log(_this.bladeContentHeight);
498
+ _this.bladeContentHeight = _this.portalService.$window.innerHeight - 125; // 125 = header
499
+ _this.bladeContentHeightInner = _this.bladeContentHeight - 50 - 3; // 50 = padding (top and bottom), somehow we miss 3px
504
500
  }, 50);
505
501
  //// http://stackoverflow.com/questions/4298612/jquery-how-to-call-resize-event-only-once-its-finished-resizing
506
502
  //var id: NodeJS.Timer;
@@ -580,6 +576,7 @@ var angularportalazure;
580
576
  return;
581
577
  }
582
578
  var that = this;
579
+ var portalcontent = null;
583
580
  this.portalService.$analytics.pageTrack(path);
584
581
  path = path.toLowerCase();
585
582
  senderPath = senderPath.toLowerCase();
@@ -591,7 +588,7 @@ var angularportalazure;
591
588
  if (that.portalService.$window.document === undefined) {
592
589
  throw new Error('[angularportalazure.AreaBlades] \'this.$window.document\' undefined.');
593
590
  }
594
- var portalcontent = that.portalService.$window.document.getElementById('apa-portal-scroll');
591
+ portalcontent = that.portalService.$window.document.getElementById('apa-portal-scroll');
595
592
  if (portalcontent === null) {
596
593
  throw new Error('[angularportalazure.AreaBlades] HTML element with ID [apa-portal-scroll] not found. Maybe it is to early to call function \'BladeArea.addBlade\'.');
597
594
  }
@@ -651,7 +648,7 @@ var angularportalazure;
651
648
  AreaBlades.prototype.clearLevel = function (level) {
652
649
  if (this.blades.length < level) {
653
650
  }
654
- if (level == 0) {
651
+ if (level === 0) {
655
652
  level = 1;
656
653
  }
657
654
  this.blades.length = level - 1;
@@ -786,10 +783,10 @@ var angularportalazure;
786
783
  //#region Constructor
787
784
  function BladeNavItem(title, cssClass, bladePath, hrefPath, roles, isVisible, callback, bladeNav) {
788
785
  if (title === void 0) { title = ''; }
789
- if (cssClass === void 0) { cssClass = ""; }
786
+ if (cssClass === void 0) { cssClass = ''; }
790
787
  if (bladePath === void 0) { bladePath = ''; }
791
- if (hrefPath === void 0) { hrefPath = ""; }
792
- if (roles === void 0) { roles = ""; }
788
+ if (hrefPath === void 0) { hrefPath = ''; }
789
+ if (roles === void 0) { roles = ''; }
793
790
  if (isVisible === void 0) { isVisible = true; }
794
791
  if (callback === void 0) { callback = null; }
795
792
  if (bladeNav === void 0) { bladeNav = null; }
@@ -876,7 +873,7 @@ var angularportalazure;
876
873
  this.areaNotification.style.borderLeft = '2px solid gray';
877
874
  this.areaNotification.style.width = this.width + 'px';
878
875
  this.areaNotification.style.left = this.portalService.$window.innerWidth - this.width + 'px';
879
- if (this.widthAreaUsed != 0) {
876
+ if (this.widthAreaUsed !== 0) {
880
877
  this.widthAreaUsed = this.width;
881
878
  }
882
879
  };
@@ -1089,13 +1086,13 @@ var angularportalazure;
1089
1086
  angularportalazure.PortalShell = PortalShell;
1090
1087
  })(angularportalazure || (angularportalazure = {}));
1091
1088
  /// <reference types="angular" />
1092
- /// <reference types="angulartics" />
1093
1089
  /// <reference path="areanotification.ts" />
1094
1090
  /// <reference path="areablades.ts" />
1095
1091
  /// <reference path="debug.ts" />
1096
1092
  /// <reference path="bladeparameter.ts" />
1097
1093
  /// <reference path="panorama.ts" />
1098
1094
  /// <reference path="portalshell.ts" />
1095
+ /// <reference types="angulartics" />
1099
1096
  "use strict";
1100
1097
  var angularportalazure;
1101
1098
  (function (angularportalazure) {
@@ -1114,7 +1111,7 @@ var angularportalazure;
1114
1111
  this.$timeout = $injector.get('$timeout');
1115
1112
  this.$translate = $injector.get('$translate');
1116
1113
  this.ngDialog = $injector.get('ngDialog');
1117
- this.ngDialog.openConfirm;
1114
+ //this.ngDialog.openConfirm
1118
1115
  }
1119
1116
  return PortalService;
1120
1117
  }());
@@ -1417,10 +1414,10 @@ var angularportalazure;
1417
1414
  for (var actualProperty in actual) {
1418
1415
  if (actual.hasOwnProperty(actualProperty)) {
1419
1416
  var actualValue = actual[actualProperty];
1420
- if (typeof actual == 'number') {
1417
+ if (typeof actual === 'number') {
1421
1418
  actualValue = convertToString(actual);
1422
1419
  }
1423
- if (typeof actualValue == 'string') {
1420
+ if (typeof actualValue === 'string') {
1424
1421
  if (actualValue.indexOf('object:') > -1) {
1425
1422
  continue;
1426
1423
  }
@@ -1442,15 +1439,15 @@ var angularportalazure;
1442
1439
  //#endregion
1443
1440
  //#region Process depending on type
1444
1441
  // Process property, typeof 'object'
1445
- if (typeof actual == 'object') {
1442
+ if (typeof actual === 'object') {
1446
1443
  processObject(actual);
1447
1444
  }
1448
1445
  // Process property, typeof 'number'
1449
- if (typeof actual == 'number') {
1446
+ if (typeof actual === 'number') {
1450
1447
  actual = convertToString(actual);
1451
1448
  }
1452
1449
  // Process property, typeof 'string'
1453
- if (typeof actual == 'string') {
1450
+ if (typeof actual === 'string') {
1454
1451
  valueFound(actual, expected);
1455
1452
  }
1456
1453
  //#endregion
package/package.json CHANGED
@@ -2,12 +2,12 @@
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.149",
5
+ "version": "0.2.151",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {
9
- "angular": "^1.6.0",
10
- "angular-resource": "^1.6.0",
9
+ "angular": "^1.6.1",
10
+ "angular-resource": "^1.6.1",
11
11
  "angular-translate": "^2.13.1",
12
12
  "angular-translate-storage-cookie": "^2.13.1",
13
13
  "angulartics": "^1.3.0",
@@ -15,12 +15,13 @@
15
15
  "ng-dialog": "^0.6.4"
16
16
  },
17
17
  "devDependencies": {
18
- "@types/angular": "^1.5.21",
18
+ "@types/angular": "^1.5.22",
19
19
  "@types/angular-resource": "^1.5.8",
20
20
  "@types/angular-translate": "^2.4.34",
21
- "@types/angulartics": "^1.3.0",
21
+ "@types/angulartics": "^1.3.1",
22
22
  "@types/ng-dialog": "^0.6.0",
23
- "@types/node": "^6.0.52",
23
+ "@types/node": "^6.0.55",
24
+ "tslint": "^4.2.0",
24
25
  "typescript": "^2.1.4"
25
26
  }
26
27
  }