@ardimedia/angular-portal-azure 0.2.150 → 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.
- package/apn.js +22 -24
- package/package.json +7 -6
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)
|
|
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)
|
|
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
|
|
419
|
+
if (exception.Messages !== undefined) {
|
|
423
420
|
exception.Messages.forEach(function (item) {
|
|
424
421
|
that.statusBar += ' - ' + item;
|
|
425
422
|
});
|
|
@@ -498,8 +495,8 @@ var angularportalazure;
|
|
|
498
495
|
Blade.prototype.setBladeHeights = function () {
|
|
499
496
|
var _this = this;
|
|
500
497
|
this.portalService.$timeout(function () {
|
|
501
|
-
_this.bladeContentHeight = _this.portalService.$window.innerHeight - 125; // header
|
|
502
|
-
_this.bladeContentHeightInner = _this.bladeContentHeight - 50;
|
|
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
|
|
503
500
|
}, 50);
|
|
504
501
|
//// http://stackoverflow.com/questions/4298612/jquery-how-to-call-resize-event-only-once-its-finished-resizing
|
|
505
502
|
//var id: NodeJS.Timer;
|
|
@@ -579,6 +576,7 @@ var angularportalazure;
|
|
|
579
576
|
return;
|
|
580
577
|
}
|
|
581
578
|
var that = this;
|
|
579
|
+
var portalcontent = null;
|
|
582
580
|
this.portalService.$analytics.pageTrack(path);
|
|
583
581
|
path = path.toLowerCase();
|
|
584
582
|
senderPath = senderPath.toLowerCase();
|
|
@@ -590,7 +588,7 @@ var angularportalazure;
|
|
|
590
588
|
if (that.portalService.$window.document === undefined) {
|
|
591
589
|
throw new Error('[angularportalazure.AreaBlades] \'this.$window.document\' undefined.');
|
|
592
590
|
}
|
|
593
|
-
|
|
591
|
+
portalcontent = that.portalService.$window.document.getElementById('apa-portal-scroll');
|
|
594
592
|
if (portalcontent === null) {
|
|
595
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\'.');
|
|
596
594
|
}
|
|
@@ -650,7 +648,7 @@ var angularportalazure;
|
|
|
650
648
|
AreaBlades.prototype.clearLevel = function (level) {
|
|
651
649
|
if (this.blades.length < level) {
|
|
652
650
|
}
|
|
653
|
-
if (level
|
|
651
|
+
if (level === 0) {
|
|
654
652
|
level = 1;
|
|
655
653
|
}
|
|
656
654
|
this.blades.length = level - 1;
|
|
@@ -785,10 +783,10 @@ var angularportalazure;
|
|
|
785
783
|
//#region Constructor
|
|
786
784
|
function BladeNavItem(title, cssClass, bladePath, hrefPath, roles, isVisible, callback, bladeNav) {
|
|
787
785
|
if (title === void 0) { title = ''; }
|
|
788
|
-
if (cssClass === void 0) { cssClass =
|
|
786
|
+
if (cssClass === void 0) { cssClass = ''; }
|
|
789
787
|
if (bladePath === void 0) { bladePath = ''; }
|
|
790
|
-
if (hrefPath === void 0) { hrefPath =
|
|
791
|
-
if (roles === void 0) { roles =
|
|
788
|
+
if (hrefPath === void 0) { hrefPath = ''; }
|
|
789
|
+
if (roles === void 0) { roles = ''; }
|
|
792
790
|
if (isVisible === void 0) { isVisible = true; }
|
|
793
791
|
if (callback === void 0) { callback = null; }
|
|
794
792
|
if (bladeNav === void 0) { bladeNav = null; }
|
|
@@ -875,7 +873,7 @@ var angularportalazure;
|
|
|
875
873
|
this.areaNotification.style.borderLeft = '2px solid gray';
|
|
876
874
|
this.areaNotification.style.width = this.width + 'px';
|
|
877
875
|
this.areaNotification.style.left = this.portalService.$window.innerWidth - this.width + 'px';
|
|
878
|
-
if (this.widthAreaUsed
|
|
876
|
+
if (this.widthAreaUsed !== 0) {
|
|
879
877
|
this.widthAreaUsed = this.width;
|
|
880
878
|
}
|
|
881
879
|
};
|
|
@@ -1088,13 +1086,13 @@ var angularportalazure;
|
|
|
1088
1086
|
angularportalazure.PortalShell = PortalShell;
|
|
1089
1087
|
})(angularportalazure || (angularportalazure = {}));
|
|
1090
1088
|
/// <reference types="angular" />
|
|
1091
|
-
/// <reference types="angulartics" />
|
|
1092
1089
|
/// <reference path="areanotification.ts" />
|
|
1093
1090
|
/// <reference path="areablades.ts" />
|
|
1094
1091
|
/// <reference path="debug.ts" />
|
|
1095
1092
|
/// <reference path="bladeparameter.ts" />
|
|
1096
1093
|
/// <reference path="panorama.ts" />
|
|
1097
1094
|
/// <reference path="portalshell.ts" />
|
|
1095
|
+
/// <reference types="angulartics" />
|
|
1098
1096
|
"use strict";
|
|
1099
1097
|
var angularportalazure;
|
|
1100
1098
|
(function (angularportalazure) {
|
|
@@ -1113,7 +1111,7 @@ var angularportalazure;
|
|
|
1113
1111
|
this.$timeout = $injector.get('$timeout');
|
|
1114
1112
|
this.$translate = $injector.get('$translate');
|
|
1115
1113
|
this.ngDialog = $injector.get('ngDialog');
|
|
1116
|
-
this.ngDialog.openConfirm
|
|
1114
|
+
//this.ngDialog.openConfirm
|
|
1117
1115
|
}
|
|
1118
1116
|
return PortalService;
|
|
1119
1117
|
}());
|
|
@@ -1416,10 +1414,10 @@ var angularportalazure;
|
|
|
1416
1414
|
for (var actualProperty in actual) {
|
|
1417
1415
|
if (actual.hasOwnProperty(actualProperty)) {
|
|
1418
1416
|
var actualValue = actual[actualProperty];
|
|
1419
|
-
if (typeof actual
|
|
1417
|
+
if (typeof actual === 'number') {
|
|
1420
1418
|
actualValue = convertToString(actual);
|
|
1421
1419
|
}
|
|
1422
|
-
if (typeof actualValue
|
|
1420
|
+
if (typeof actualValue === 'string') {
|
|
1423
1421
|
if (actualValue.indexOf('object:') > -1) {
|
|
1424
1422
|
continue;
|
|
1425
1423
|
}
|
|
@@ -1441,15 +1439,15 @@ var angularportalazure;
|
|
|
1441
1439
|
//#endregion
|
|
1442
1440
|
//#region Process depending on type
|
|
1443
1441
|
// Process property, typeof 'object'
|
|
1444
|
-
if (typeof actual
|
|
1442
|
+
if (typeof actual === 'object') {
|
|
1445
1443
|
processObject(actual);
|
|
1446
1444
|
}
|
|
1447
1445
|
// Process property, typeof 'number'
|
|
1448
|
-
if (typeof actual
|
|
1446
|
+
if (typeof actual === 'number') {
|
|
1449
1447
|
actual = convertToString(actual);
|
|
1450
1448
|
}
|
|
1451
1449
|
// Process property, typeof 'string'
|
|
1452
|
-
if (typeof actual
|
|
1450
|
+
if (typeof actual === 'string') {
|
|
1453
1451
|
valueFound(actual, expected);
|
|
1454
1452
|
}
|
|
1455
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.
|
|
5
|
+
"version": "0.2.151",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"angular": "^1.6.
|
|
10
|
-
"angular-resource": "^1.6.
|
|
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.
|
|
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.
|
|
21
|
+
"@types/angulartics": "^1.3.1",
|
|
22
22
|
"@types/ng-dialog": "^0.6.0",
|
|
23
|
-
"@types/node": "^6.0.
|
|
23
|
+
"@types/node": "^6.0.55",
|
|
24
|
+
"tslint": "^4.2.0",
|
|
24
25
|
"typescript": "^2.1.4"
|
|
25
26
|
}
|
|
26
27
|
}
|