@ardimedia/angular-portal-azure 0.2.150 → 0.2.152
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
|
@@ -5,21 +5,6 @@
|
|
|
5
5
|
/// <reference types="angular-translate" />
|
|
6
6
|
declare namespace angularportalazure {
|
|
7
7
|
}
|
|
8
|
-
declare namespace angularportalazure {
|
|
9
|
-
class Debug {
|
|
10
|
-
constructor();
|
|
11
|
-
static isEnabled: boolean;
|
|
12
|
-
static isWithObjects: boolean;
|
|
13
|
-
static keys: Array<string>;
|
|
14
|
-
static enable(key?: string): void;
|
|
15
|
-
static disable(key?: string): void;
|
|
16
|
-
static write(debugLine: string, objects?: Array<any>): boolean;
|
|
17
|
-
/** Extract the key (e.g. [azureportal] from a string */
|
|
18
|
-
static extractKey(text: string): string;
|
|
19
|
-
/** Extract the key (e.g. [azureportal] from a string */
|
|
20
|
-
static isInKeys(debugLine: string): boolean;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
8
|
declare namespace angularportalazure {
|
|
24
9
|
class UserAccount {
|
|
25
10
|
constructor(username: string, firstName?: string, lastName?: string);
|
|
@@ -36,6 +21,7 @@ declare namespace angularportalazure {
|
|
|
36
21
|
declare namespace angularportalazure {
|
|
37
22
|
class UserControlBase {
|
|
38
23
|
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
|
|
24
|
+
$scope: angular.IScope;
|
|
39
25
|
portalService: angularportalazure.PortalService;
|
|
40
26
|
setupWindowResizeListener(callback: () => void): void;
|
|
41
27
|
}
|
|
@@ -53,8 +39,6 @@ declare namespace angularportalazure {
|
|
|
53
39
|
private watcherTitle;
|
|
54
40
|
bladeContentHeight: number;
|
|
55
41
|
bladeContentHeightInner: number;
|
|
56
|
-
private _path;
|
|
57
|
-
path: string;
|
|
58
42
|
title: string;
|
|
59
43
|
subTitle: string;
|
|
60
44
|
width: {
|
|
@@ -67,6 +51,8 @@ declare namespace angularportalazure {
|
|
|
67
51
|
statusBar: string;
|
|
68
52
|
statusBarClass: string;
|
|
69
53
|
formblade: any;
|
|
54
|
+
private _path;
|
|
55
|
+
path: string;
|
|
70
56
|
isCommandBrowse: boolean;
|
|
71
57
|
commandBrowse: () => void;
|
|
72
58
|
commandBrowseText: string;
|
|
@@ -118,10 +104,8 @@ declare namespace angularportalazure {
|
|
|
118
104
|
isCommandSwap: boolean;
|
|
119
105
|
commandSwap: () => void;
|
|
120
106
|
commandSwapText: string;
|
|
121
|
-
/** Obsolete */
|
|
122
|
-
/** Obsolete */
|
|
123
|
-
/** Obsolete */
|
|
124
107
|
activate(): void;
|
|
108
|
+
/** Override */
|
|
125
109
|
onActivate(): void;
|
|
126
110
|
onActivated(): void;
|
|
127
111
|
navigateTo(path: any): void;
|
|
@@ -150,7 +134,6 @@ declare namespace angularportalazure {
|
|
|
150
134
|
onCommandStart(): void;
|
|
151
135
|
onCommandStop(): void;
|
|
152
136
|
onCommandSwap(): void;
|
|
153
|
-
/** Obsolete */
|
|
154
137
|
setTitle(watchExpression: string, func: () => void): void;
|
|
155
138
|
private setBladeHeights();
|
|
156
139
|
}
|
|
@@ -330,8 +313,6 @@ declare namespace angularportalazure {
|
|
|
330
313
|
areaBlades: angularportalazure.AreaBlades;
|
|
331
314
|
areaNotification: angularportalazure.AreaNotification;
|
|
332
315
|
ngDialog: any;
|
|
333
|
-
/** obsolete - $scope is different in any view. do have one instance in a shared service is not the right approach. */
|
|
334
|
-
$scope: angular.IScope;
|
|
335
316
|
$injector: angular.auto.IInjectorService;
|
|
336
317
|
$http: angular.IHttpService;
|
|
337
318
|
$httpBackend: angular.IHttpBackendService;
|
|
@@ -373,6 +354,21 @@ declare namespace angularportalazure {
|
|
|
373
354
|
onFilter(actual: Object, expected: string): boolean;
|
|
374
355
|
}
|
|
375
356
|
}
|
|
357
|
+
declare namespace angularportalazure {
|
|
358
|
+
class Debug {
|
|
359
|
+
constructor();
|
|
360
|
+
static isEnabled: boolean;
|
|
361
|
+
static isWithObjects: boolean;
|
|
362
|
+
static keys: Array<string>;
|
|
363
|
+
static enable(key?: string): void;
|
|
364
|
+
static disable(key?: string): void;
|
|
365
|
+
static write(debugLine: string, objects?: Array<any>): boolean;
|
|
366
|
+
/** Extract the key (e.g. [azureportal] from a string */
|
|
367
|
+
static extractKey(text: string): string;
|
|
368
|
+
/** Extract the key (e.g. [azureportal] from a string */
|
|
369
|
+
static isInKeys(debugLine: string): boolean;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
376
372
|
declare namespace angularportalazure {
|
|
377
373
|
class Exception implements angularportalazure.IExceptionDotNet {
|
|
378
374
|
ExceptionType: string;
|
package/apn.js
CHANGED
|
@@ -15,28 +15,24 @@ var angularportalazure;
|
|
|
15
15
|
angularModule.config(['$translateProvider',
|
|
16
16
|
function ($translateProvider) {
|
|
17
17
|
$translateProvider.useSanitizeValueStrategy('escape');
|
|
18
|
-
//$translateProvider.useUrlLoader('/api/translation/get');
|
|
19
18
|
$translateProvider.fallbackLanguage('de');
|
|
20
19
|
$translateProvider.use(readCookie('SAMPLE_TRANSLATE_LANG_KEY'));
|
|
21
20
|
}]);
|
|
22
21
|
angularModule.config([function () {
|
|
23
|
-
//Debug.enable('[angularportalazure-debug]');
|
|
24
|
-
//Debug.isWithObjects = false;
|
|
25
22
|
}]);
|
|
26
23
|
angularModule.run(function () {
|
|
27
|
-
//Debug.write('[angularportalazure-debug] \'angularportalazure.run\' executing.', [this]);
|
|
28
24
|
});
|
|
29
25
|
/** Read cookie */
|
|
30
26
|
function readCookie(cookieName) {
|
|
31
|
-
var cookieNameEQ = cookieName +
|
|
27
|
+
var cookieNameEQ = cookieName + '=';
|
|
32
28
|
var cookies = document.cookie.split(';');
|
|
33
29
|
for (var i = 0; i < cookies.length; i++) {
|
|
34
30
|
var cookie = cookies[i];
|
|
35
|
-
while (cookie.charAt(0)
|
|
31
|
+
while (cookie.charAt(0) === ' ') {
|
|
36
32
|
cookie = cookie.substring(1, cookie.length);
|
|
37
33
|
}
|
|
38
34
|
;
|
|
39
|
-
if (cookie.indexOf(cookieNameEQ)
|
|
35
|
+
if (cookie.indexOf(cookieNameEQ) === 0) {
|
|
40
36
|
return cookie.substring(cookieNameEQ.length, cookie.length);
|
|
41
37
|
}
|
|
42
38
|
;
|
|
@@ -44,80 +40,6 @@ var angularportalazure;
|
|
|
44
40
|
return null;
|
|
45
41
|
}
|
|
46
42
|
})(angularportalazure || (angularportalazure = {}));
|
|
47
|
-
//#region Make sure console.log is working in any case, even IE9
|
|
48
|
-
"use strict";
|
|
49
|
-
//if ($('html').hasClass('k-ie9')) {
|
|
50
|
-
// if (typeof console !== 'object') window.console = <any>{};
|
|
51
|
-
// if (typeof console.log !== 'object') window.console.log = function () { };
|
|
52
|
-
//}
|
|
53
|
-
//#endregion
|
|
54
|
-
var angularportalazure;
|
|
55
|
-
(function (angularportalazure) {
|
|
56
|
-
var Debug = (function () {
|
|
57
|
-
//#region Constructor
|
|
58
|
-
function Debug() {
|
|
59
|
-
}
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region Methods
|
|
62
|
-
Debug.enable = function (key) {
|
|
63
|
-
Debug.isEnabled = true;
|
|
64
|
-
if (key) {
|
|
65
|
-
Debug.keys.push(key);
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
Debug.disable = function (key) {
|
|
69
|
-
if (key) {
|
|
70
|
-
var indexToDelete = Debug.keys.indexOf(key);
|
|
71
|
-
Debug.keys.splice(indexToDelete, 1);
|
|
72
|
-
}
|
|
73
|
-
if (Debug.keys.length === 0) {
|
|
74
|
-
Debug.isEnabled = false;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
Debug.write = function (debugLine, objects) {
|
|
78
|
-
if ((Debug.isEnabled && Debug.keys.length === 0)
|
|
79
|
-
|| (Debug.isEnabled && Debug.isInKeys(debugLine))) {
|
|
80
|
-
console.log(debugLine);
|
|
81
|
-
if (objects !== undefined && Debug.isWithObjects) {
|
|
82
|
-
objects.forEach(function (item) {
|
|
83
|
-
console.log(item);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
return true;
|
|
87
|
-
}
|
|
88
|
-
return false;
|
|
89
|
-
};
|
|
90
|
-
/** Extract the key (e.g. [azureportal] from a string */
|
|
91
|
-
Debug.extractKey = function (text) {
|
|
92
|
-
var extractKey = '';
|
|
93
|
-
var firstCharacter = text.substring(0, 1);
|
|
94
|
-
if (firstCharacter === '[') {
|
|
95
|
-
// Find closing bracket
|
|
96
|
-
var closingPos = text.indexOf(']');
|
|
97
|
-
if (closingPos > 0) {
|
|
98
|
-
extractKey = text.substring(0, closingPos + 1);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
return extractKey;
|
|
102
|
-
};
|
|
103
|
-
/** Extract the key (e.g. [azureportal] from a string */
|
|
104
|
-
Debug.isInKeys = function (debugLine) {
|
|
105
|
-
var key = Debug.extractKey(debugLine);
|
|
106
|
-
if (Debug.keys.indexOf(key) != -1) {
|
|
107
|
-
return true;
|
|
108
|
-
}
|
|
109
|
-
return false;
|
|
110
|
-
};
|
|
111
|
-
return Debug;
|
|
112
|
-
}());
|
|
113
|
-
//#endregion
|
|
114
|
-
//#region Properties
|
|
115
|
-
Debug.isEnabled = false;
|
|
116
|
-
Debug.isWithObjects = false;
|
|
117
|
-
Debug.keys = new Array();
|
|
118
|
-
angularportalazure.Debug = Debug;
|
|
119
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
120
|
-
/// <reference path="debug.ts" />
|
|
121
43
|
"use strict";
|
|
122
44
|
var angularportalazure;
|
|
123
45
|
(function (angularportalazure) {
|
|
@@ -158,7 +80,6 @@ var angularportalazure;
|
|
|
158
80
|
},
|
|
159
81
|
set: function (value) {
|
|
160
82
|
throw new Error('[angularportalazure.UserAccount] \'name\' is a calculated value from \'firsName\' and \'lastName\'. Assignment not allowed.');
|
|
161
|
-
//this._name = value;
|
|
162
83
|
},
|
|
163
84
|
enumerable: true,
|
|
164
85
|
configurable: true
|
|
@@ -167,7 +88,6 @@ var angularportalazure;
|
|
|
167
88
|
}());
|
|
168
89
|
angularportalazure.UserAccount = UserAccount;
|
|
169
90
|
})(angularportalazure || (angularportalazure = {}));
|
|
170
|
-
/// <reference path="debug.ts" />
|
|
171
91
|
/// <reference path="portalservice.ts" />
|
|
172
92
|
"use strict";
|
|
173
93
|
var angularportalazure;
|
|
@@ -175,9 +95,8 @@ var angularportalazure;
|
|
|
175
95
|
var UserControlBase = (function () {
|
|
176
96
|
//#region Constructor
|
|
177
97
|
function UserControlBase($scope, portalService) {
|
|
178
|
-
|
|
98
|
+
this.$scope = $scope;
|
|
179
99
|
this.portalService = portalService;
|
|
180
|
-
this.portalService.$scope = $scope;
|
|
181
100
|
}
|
|
182
101
|
//#endregion
|
|
183
102
|
//#region Methods
|
|
@@ -202,7 +121,6 @@ var __extends = (this && this.__extends) || function (d, b) {
|
|
|
202
121
|
function __() { this.constructor = d; }
|
|
203
122
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
204
123
|
};
|
|
205
|
-
/// <reference path="debug.ts" />
|
|
206
124
|
/// <reference path="useraccount.ts" />
|
|
207
125
|
/// <reference path="portalservice.ts" />
|
|
208
126
|
/// <reference path="usercontrolbase.ts" />
|
|
@@ -216,7 +134,6 @@ var angularportalazure;
|
|
|
216
134
|
if (subtitle === void 0) { subtitle = ''; }
|
|
217
135
|
if (width === void 0) { width = 200; }
|
|
218
136
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
219
|
-
//#endregion
|
|
220
137
|
_this.title = '';
|
|
221
138
|
_this.subTitle = '';
|
|
222
139
|
_this.width = { 'width': '0' };
|
|
@@ -225,6 +142,7 @@ var angularportalazure;
|
|
|
225
142
|
_this.statusBar = '';
|
|
226
143
|
_this.statusBarClass = '';
|
|
227
144
|
//#endregion
|
|
145
|
+
//#endregion
|
|
228
146
|
//#region Commands
|
|
229
147
|
_this.isCommandBrowse = false;
|
|
230
148
|
_this.commandBrowse = function () { this.onCommandBrowse(); };
|
|
@@ -282,8 +200,7 @@ var angularportalazure;
|
|
|
282
200
|
_this.title = title;
|
|
283
201
|
_this.subTitle = subtitle;
|
|
284
202
|
_this.width.width = width + 'px';
|
|
285
|
-
_this.widthStackLayout.width = width - 50 + 'px';
|
|
286
|
-
//this.navGrid.portalService = portalService;
|
|
203
|
+
_this.widthStackLayout.width = width - 50 + 'px'; // 50 = padding (left and right)
|
|
287
204
|
if (!portalService) {
|
|
288
205
|
throw new Error('[angularportalazure.Blade] constructor parameter \'portalService\' must be provided.');
|
|
289
206
|
}
|
|
@@ -302,21 +219,6 @@ var angularportalazure;
|
|
|
302
219
|
if (width < 50) {
|
|
303
220
|
throw new Error('[angularportalazure.Blade] constructor parameter \'width\' must be at least 50.');
|
|
304
221
|
}
|
|
305
|
-
//#region Add AreaBlades.AddBlade event listener
|
|
306
|
-
/** OBSOLETE: remove when all OBSOLETE code has been removed */
|
|
307
|
-
//if (portalService instanceof angularportalazure.PortalService == false) {
|
|
308
|
-
// console.log('Blade.constructor: This code cannot be removed yet.')
|
|
309
|
-
// return;
|
|
310
|
-
//}
|
|
311
|
-
/** OBSOLETE: end */
|
|
312
|
-
//// Register listener1
|
|
313
|
-
//this.listener1 = that.portalService.$rootScope.$on('AreaBlades.AddBlade', function (event, args: angularportalazure.IAddBladeEventArgs) {
|
|
314
|
-
// if (that.comparePaths(args.path, that.path)) {
|
|
315
|
-
// console.log('listener1-AreaBlades.AddBlade - function call: that.activate() will probably not work since this/that is not pointing to the right object. - deactivated');
|
|
316
|
-
// //that.activate();
|
|
317
|
-
// }
|
|
318
|
-
//});
|
|
319
|
-
//#endregion
|
|
320
222
|
// Set 'this.portalService.areaBlades.blades[index]' to 'this'
|
|
321
223
|
// 'this.portalService.areaBlades.blades[index]' was generated during AddBlade
|
|
322
224
|
_this.portalService.areaBlades.blades.forEach(function (blade, index) {
|
|
@@ -343,27 +245,14 @@ var angularportalazure;
|
|
|
343
245
|
configurable: true
|
|
344
246
|
});
|
|
345
247
|
//#endregion
|
|
346
|
-
//#region OBSOLETE
|
|
347
|
-
/** Obsolete */
|
|
348
|
-
//blade: Blade;
|
|
349
|
-
/** Obsolete */
|
|
350
|
-
//isNavGrid: boolean;
|
|
351
|
-
/** Obsolete */
|
|
352
|
-
//navGrid = {
|
|
353
|
-
// portalService: <angularportalazure.PortalService | null>null,
|
|
354
|
-
// items: [],
|
|
355
|
-
// navigateTo: function (path: string) { }
|
|
356
|
-
//};
|
|
357
|
-
//#endregion
|
|
358
|
-
//#endregion
|
|
359
248
|
//#region Methods
|
|
360
249
|
//#region Methods
|
|
361
250
|
Blade.prototype.activate = function () {
|
|
362
251
|
this.onActivate();
|
|
363
252
|
this.onActivated();
|
|
364
253
|
};
|
|
254
|
+
/** Override */
|
|
365
255
|
Blade.prototype.onActivate = function () {
|
|
366
|
-
//throw new Error('[angularportalazure.Blade] \'onActivate\' is an abstract function. Define one in the derived class.');
|
|
367
256
|
};
|
|
368
257
|
Blade.prototype.onActivated = function () {
|
|
369
258
|
};
|
|
@@ -390,7 +279,6 @@ var angularportalazure;
|
|
|
390
279
|
};
|
|
391
280
|
/** close blade. */
|
|
392
281
|
Blade.prototype.close = function () {
|
|
393
|
-
//this.listener1(); // Unregister listener1
|
|
394
282
|
if (this.portalService.areaBlades !== undefined) {
|
|
395
283
|
this.portalService.areaBlades.clearPath(this.path);
|
|
396
284
|
}
|
|
@@ -419,7 +307,7 @@ var angularportalazure;
|
|
|
419
307
|
else {
|
|
420
308
|
that.statusBar = 'FEHLER: ' + exception.Message;
|
|
421
309
|
}
|
|
422
|
-
if (exception.Messages
|
|
310
|
+
if (exception.Messages !== undefined) {
|
|
423
311
|
exception.Messages.forEach(function (item) {
|
|
424
312
|
that.statusBar += ' - ' + item;
|
|
425
313
|
});
|
|
@@ -481,42 +369,25 @@ var angularportalazure;
|
|
|
481
369
|
throw new Error('[angularportalazure.Blade] \'onCommandSwap\' is an abstract function. Define one in the derived class.');
|
|
482
370
|
};
|
|
483
371
|
//#endregion
|
|
484
|
-
//#region OBSOLETE
|
|
485
|
-
/** Obsolete */
|
|
486
|
-
//bladeClose() {
|
|
487
|
-
// this.close();
|
|
488
|
-
//}
|
|
489
|
-
//#endregion
|
|
490
|
-
//#endregion
|
|
491
372
|
Blade.prototype.setTitle = function (watchExpression, func) {
|
|
492
373
|
var _this = this;
|
|
493
374
|
if (this.watcherTitle === undefined) {
|
|
494
|
-
this.watcherTitle = this
|
|
495
|
-
this
|
|
375
|
+
this.watcherTitle = this.$scope.$watch(watchExpression, function () { func(); });
|
|
376
|
+
this.$scope.$on('$destroy', function () { _this.watcherTitle(); });
|
|
496
377
|
}
|
|
497
378
|
};
|
|
498
379
|
Blade.prototype.setBladeHeights = function () {
|
|
499
380
|
var _this = this;
|
|
500
381
|
this.portalService.$timeout(function () {
|
|
501
|
-
_this.bladeContentHeight = _this.portalService.$window.innerHeight - 125; // header
|
|
502
|
-
_this.bladeContentHeightInner = _this.bladeContentHeight - 50;
|
|
382
|
+
_this.bladeContentHeight = _this.portalService.$window.innerHeight - 125; // 125 = header
|
|
383
|
+
_this.bladeContentHeightInner = _this.bladeContentHeight - 50 - 3; // 50 = padding (top and bottom), somehow we miss 3px
|
|
503
384
|
}, 50);
|
|
504
|
-
//// http://stackoverflow.com/questions/4298612/jquery-how-to-call-resize-event-only-once-its-finished-resizing
|
|
505
|
-
//var id: NodeJS.Timer;
|
|
506
|
-
//$(window).resize(function () {
|
|
507
|
-
// clearTimeout(id);
|
|
508
|
-
// id = setTimeout(() => {
|
|
509
|
-
// that.bladeContentHeight = $('.fxs-blade-content').height();
|
|
510
|
-
// that.bladeContentInnerHeight = that.bladeContentHeight - 20;
|
|
511
|
-
// }, 500);
|
|
512
|
-
//});
|
|
513
385
|
};
|
|
514
386
|
return Blade;
|
|
515
387
|
}(angularportalazure.UserControlBase));
|
|
516
388
|
angularportalazure.Blade = Blade;
|
|
517
389
|
})(angularportalazure || (angularportalazure = {}));
|
|
518
390
|
/// <reference types="angular" />
|
|
519
|
-
/// <reference path="debug.ts" />
|
|
520
391
|
/// <reference path="blade.ts" />
|
|
521
392
|
/// <reference path="usercontrolbase.ts" />
|
|
522
393
|
/// <reference path="portalservice.ts" />
|
|
@@ -532,17 +403,6 @@ var angularportalazure;
|
|
|
532
403
|
var that = _this;
|
|
533
404
|
_this.areaBlades = _this.portalService.$window.document.getElementById('apa-blade-area');
|
|
534
405
|
_this.portalScroll = _this.portalService.$window.document.getElementById('apa-portal-scroll');
|
|
535
|
-
// Set dependencies
|
|
536
|
-
_this.portalService = portalService;
|
|
537
|
-
//this.portalService.areaBlades = this;
|
|
538
|
-
//#region Add AreaBlades.AddBlade event listener
|
|
539
|
-
/** OBSOLETE: remove when all OBSOLETE code has been removed */
|
|
540
|
-
//if (portalService instanceof angularportalazure.PortalService == false) {
|
|
541
|
-
// console.log('AreaBlades.constructor: This code cannot be removed yet.')
|
|
542
|
-
// return;
|
|
543
|
-
//}
|
|
544
|
-
/** OBSOLETE: end */
|
|
545
|
-
//#endregion
|
|
546
406
|
_this.setupAddBladeListener();
|
|
547
407
|
_this.setupShowHideNotificationAreaListener();
|
|
548
408
|
_this.setupWindowResizeListener(function () { _this.setPortalScrollCss(); });
|
|
@@ -579,6 +439,7 @@ var angularportalazure;
|
|
|
579
439
|
return;
|
|
580
440
|
}
|
|
581
441
|
var that = this;
|
|
442
|
+
var portalcontent = null;
|
|
582
443
|
this.portalService.$analytics.pageTrack(path);
|
|
583
444
|
path = path.toLowerCase();
|
|
584
445
|
senderPath = senderPath.toLowerCase();
|
|
@@ -590,7 +451,7 @@ var angularportalazure;
|
|
|
590
451
|
if (that.portalService.$window.document === undefined) {
|
|
591
452
|
throw new Error('[angularportalazure.AreaBlades] \'this.$window.document\' undefined.');
|
|
592
453
|
}
|
|
593
|
-
|
|
454
|
+
portalcontent = that.portalService.$window.document.getElementById('apa-portal-scroll');
|
|
594
455
|
if (portalcontent === null) {
|
|
595
456
|
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
457
|
}
|
|
@@ -609,7 +470,7 @@ var angularportalazure;
|
|
|
609
470
|
});
|
|
610
471
|
//#endregion
|
|
611
472
|
//#region Show the blade
|
|
612
|
-
var blade = new angularportalazure.Blade(
|
|
473
|
+
var blade = new angularportalazure.Blade(this.$scope, that.portalService, path, '');
|
|
613
474
|
that.blades.push(blade);
|
|
614
475
|
//#endregion
|
|
615
476
|
//#region Position the blade
|
|
@@ -649,8 +510,9 @@ var angularportalazure;
|
|
|
649
510
|
};
|
|
650
511
|
AreaBlades.prototype.clearLevel = function (level) {
|
|
651
512
|
if (this.blades.length < level) {
|
|
513
|
+
throw new Error('[angularportalazure.AreaBlades] level: \'' + level + '\' could not be cleard, since only \'' + this.blades.length + '\' available.');
|
|
652
514
|
}
|
|
653
|
-
if (level
|
|
515
|
+
if (level === 0) {
|
|
654
516
|
level = 1;
|
|
655
517
|
}
|
|
656
518
|
this.blades.length = level - 1;
|
|
@@ -725,7 +587,6 @@ var angularportalazure;
|
|
|
725
587
|
angular.module('angularportalazure').service('angularportalazure.areaBlades', AreaBlades);
|
|
726
588
|
})(angularportalazure || (angularportalazure = {}));
|
|
727
589
|
/// <reference path="areablades.ts" />
|
|
728
|
-
/// <reference path="debug.ts" />
|
|
729
590
|
/// <reference path="portalservice.ts" />
|
|
730
591
|
"use strict";
|
|
731
592
|
var angularportalazure;
|
|
@@ -743,7 +604,6 @@ var angularportalazure;
|
|
|
743
604
|
angularportalazure.BladeData = BladeData;
|
|
744
605
|
})(angularportalazure || (angularportalazure = {}));
|
|
745
606
|
/// <reference path="bladedata.ts" />
|
|
746
|
-
/// <reference path="debug.ts" />
|
|
747
607
|
/// <reference path="bladenavitem.ts" />
|
|
748
608
|
/// <reference path="portalservice.ts" />
|
|
749
609
|
"use strict";
|
|
@@ -776,7 +636,6 @@ var angularportalazure;
|
|
|
776
636
|
}(angularportalazure.BladeData));
|
|
777
637
|
angularportalazure.BladeNav = BladeNav;
|
|
778
638
|
})(angularportalazure || (angularportalazure = {}));
|
|
779
|
-
/// <reference path="debug.ts" />
|
|
780
639
|
/// <reference path="bladenav.ts" />
|
|
781
640
|
"use strict";
|
|
782
641
|
var angularportalazure;
|
|
@@ -785,10 +644,10 @@ var angularportalazure;
|
|
|
785
644
|
//#region Constructor
|
|
786
645
|
function BladeNavItem(title, cssClass, bladePath, hrefPath, roles, isVisible, callback, bladeNav) {
|
|
787
646
|
if (title === void 0) { title = ''; }
|
|
788
|
-
if (cssClass === void 0) { cssClass =
|
|
647
|
+
if (cssClass === void 0) { cssClass = ''; }
|
|
789
648
|
if (bladePath === void 0) { bladePath = ''; }
|
|
790
|
-
if (hrefPath === void 0) { hrefPath =
|
|
791
|
-
if (roles === void 0) { roles =
|
|
649
|
+
if (hrefPath === void 0) { hrefPath = ''; }
|
|
650
|
+
if (roles === void 0) { roles = ''; }
|
|
792
651
|
if (isVisible === void 0) { isVisible = true; }
|
|
793
652
|
if (callback === void 0) { callback = null; }
|
|
794
653
|
if (bladeNav === void 0) { bladeNav = null; }
|
|
@@ -802,7 +661,7 @@ var angularportalazure;
|
|
|
802
661
|
this.bladeNav = bladeNav;
|
|
803
662
|
}
|
|
804
663
|
//#endregion
|
|
805
|
-
//#region
|
|
664
|
+
//#region Methods
|
|
806
665
|
BladeNavItem.prototype.onNavItemClick = function () {
|
|
807
666
|
if (this.callback != null) {
|
|
808
667
|
this.callback();
|
|
@@ -813,7 +672,6 @@ var angularportalazure;
|
|
|
813
672
|
angularportalazure.BladeNavItem = BladeNavItem;
|
|
814
673
|
})(angularportalazure || (angularportalazure = {}));
|
|
815
674
|
/// <reference path="bladedata.ts" />
|
|
816
|
-
/// <reference path="debug.ts" />
|
|
817
675
|
/// <reference path="bladenavitem.ts" />
|
|
818
676
|
/// <reference path="portalservice.ts" />
|
|
819
677
|
"use strict";
|
|
@@ -875,7 +733,7 @@ var angularportalazure;
|
|
|
875
733
|
this.areaNotification.style.borderLeft = '2px solid gray';
|
|
876
734
|
this.areaNotification.style.width = this.width + 'px';
|
|
877
735
|
this.areaNotification.style.left = this.portalService.$window.innerWidth - this.width + 'px';
|
|
878
|
-
if (this.widthAreaUsed
|
|
736
|
+
if (this.widthAreaUsed !== 0) {
|
|
879
737
|
this.widthAreaUsed = this.width;
|
|
880
738
|
}
|
|
881
739
|
};
|
|
@@ -884,7 +742,6 @@ var angularportalazure;
|
|
|
884
742
|
angularportalazure.AreaNotification = AreaNotification;
|
|
885
743
|
})(angularportalazure || (angularportalazure = {}));
|
|
886
744
|
"use strict";
|
|
887
|
-
/// <reference path="debug.ts" />
|
|
888
745
|
/// <reference path="portalservice.ts" />
|
|
889
746
|
/// <reference path="useraccount.ts" />
|
|
890
747
|
/// <reference path="usercontrolbase.ts" />
|
|
@@ -913,7 +770,6 @@ var angularportalazure;
|
|
|
913
770
|
TileSizes[TileSizes["herowide"] = 3] = "herowide";
|
|
914
771
|
})(TileSizes = angularportalazure.TileSizes || (angularportalazure.TileSizes = {}));
|
|
915
772
|
})(angularportalazure || (angularportalazure = {}));
|
|
916
|
-
/// <reference path="debug.ts" />
|
|
917
773
|
/// <reference path="tilesizes.ts" />
|
|
918
774
|
"use strict";
|
|
919
775
|
var angularportalazure;
|
|
@@ -940,7 +796,6 @@ var angularportalazure;
|
|
|
940
796
|
angularportalazure.TileSize = TileSize;
|
|
941
797
|
})(angularportalazure || (angularportalazure = {}));
|
|
942
798
|
/// <reference path="blade.ts" />
|
|
943
|
-
/// <reference path="debug.ts" />
|
|
944
799
|
/// <reference path="portalservice.ts" />
|
|
945
800
|
/// <reference path="tilesize.ts" />
|
|
946
801
|
"use strict";
|
|
@@ -975,7 +830,6 @@ var angularportalazure;
|
|
|
975
830
|
}());
|
|
976
831
|
angularportalazure.Tile = Tile;
|
|
977
832
|
})(angularportalazure || (angularportalazure = {}));
|
|
978
|
-
/// <reference path="debug.ts" />
|
|
979
833
|
/// <reference path="tile.ts" />
|
|
980
834
|
/// <reference path="tilesize.ts" />
|
|
981
835
|
/// <reference path="tilesizes.ts" />
|
|
@@ -1017,7 +871,6 @@ var angularportalazure;
|
|
|
1017
871
|
}());
|
|
1018
872
|
angularportalazure.Tiles = Tiles;
|
|
1019
873
|
})(angularportalazure || (angularportalazure = {}));
|
|
1020
|
-
/// <reference path="debug.ts" />
|
|
1021
874
|
/// <reference path="portalservice.ts" />
|
|
1022
875
|
/// <reference path="tiles.ts" />
|
|
1023
876
|
/// <reference path="usercontrolbase.ts" />
|
|
@@ -1037,7 +890,6 @@ var angularportalazure;
|
|
|
1037
890
|
angularportalazure.Startboard = Startboard;
|
|
1038
891
|
})(angularportalazure || (angularportalazure = {}));
|
|
1039
892
|
/// <reference path="avatarmenu.ts" />
|
|
1040
|
-
/// <reference path="debug.ts" />
|
|
1041
893
|
/// <reference path="startboard.ts" />
|
|
1042
894
|
/// <reference path="portalservice.ts" />
|
|
1043
895
|
/// <reference path="usercontrolbase.ts" />
|
|
@@ -1053,8 +905,8 @@ var angularportalazure;
|
|
|
1053
905
|
_this.isVisible = true;
|
|
1054
906
|
_this.title = title;
|
|
1055
907
|
_this.portalService.panorama = _this;
|
|
1056
|
-
_this.avatarMenu = new angularportalazure.AvatarMenu(_this
|
|
1057
|
-
_this.startboard = new angularportalazure.Startboard(_this
|
|
908
|
+
_this.avatarMenu = new angularportalazure.AvatarMenu(_this.$scope, _this.portalService);
|
|
909
|
+
_this.startboard = new angularportalazure.Startboard(_this.$scope, _this.portalService);
|
|
1058
910
|
return _this;
|
|
1059
911
|
}
|
|
1060
912
|
return Panorama;
|
|
@@ -1063,7 +915,6 @@ var angularportalazure;
|
|
|
1063
915
|
})(angularportalazure || (angularportalazure = {}));
|
|
1064
916
|
/// <reference path="areablades.ts" />
|
|
1065
917
|
/// <reference path="usercontrolbase.ts" />
|
|
1066
|
-
/// <reference path="debug.ts" />
|
|
1067
918
|
/// <reference path="panorama.ts" />
|
|
1068
919
|
/// <reference path="portalservice.ts" />
|
|
1069
920
|
/// <reference path="tiles.ts" />
|
|
@@ -1077,24 +928,21 @@ var angularportalazure;
|
|
|
1077
928
|
var _this = _super.call(this, null, portalService) || this;
|
|
1078
929
|
_this.portalService = portalService;
|
|
1079
930
|
_this.portalService.portalShell = _this;
|
|
1080
|
-
_this.portalService.panorama = new angularportalazure.Panorama(_this
|
|
1081
|
-
//this.portalService.areaBlades = new angularportalazure.BladeArea(this.$scope, portalService);
|
|
931
|
+
_this.portalService.panorama = new angularportalazure.Panorama(_this.$scope, title, _this.portalService);
|
|
1082
932
|
_this.portalService.panorama.title = title;
|
|
1083
933
|
return _this;
|
|
1084
|
-
//this.initialize();
|
|
1085
934
|
}
|
|
1086
935
|
return PortalShell;
|
|
1087
936
|
}(angularportalazure.UserControlBase));
|
|
1088
937
|
angularportalazure.PortalShell = PortalShell;
|
|
1089
938
|
})(angularportalazure || (angularportalazure = {}));
|
|
1090
939
|
/// <reference types="angular" />
|
|
1091
|
-
/// <reference types="angulartics" />
|
|
1092
940
|
/// <reference path="areanotification.ts" />
|
|
1093
941
|
/// <reference path="areablades.ts" />
|
|
1094
|
-
/// <reference path="debug.ts" />
|
|
1095
942
|
/// <reference path="bladeparameter.ts" />
|
|
1096
943
|
/// <reference path="panorama.ts" />
|
|
1097
944
|
/// <reference path="portalshell.ts" />
|
|
945
|
+
/// <reference types="angulartics" />
|
|
1098
946
|
"use strict";
|
|
1099
947
|
var angularportalazure;
|
|
1100
948
|
(function (angularportalazure) {
|
|
@@ -1113,7 +961,6 @@ var angularportalazure;
|
|
|
1113
961
|
this.$timeout = $injector.get('$timeout');
|
|
1114
962
|
this.$translate = $injector.get('$translate');
|
|
1115
963
|
this.ngDialog = $injector.get('ngDialog');
|
|
1116
|
-
this.ngDialog.openConfirm;
|
|
1117
964
|
}
|
|
1118
965
|
return PortalService;
|
|
1119
966
|
}());
|
|
@@ -1123,42 +970,14 @@ var angularportalazure;
|
|
|
1123
970
|
angular.module('angularportalazure').service('angularportalazure.portalService', PortalService);
|
|
1124
971
|
})(angularportalazure || (angularportalazure = {}));
|
|
1125
972
|
/// <reference types="angular" />
|
|
1126
|
-
/// <reference path="../../domain/debug.ts" />
|
|
1127
973
|
/// <reference path="../../domain/portalservice.ts" />
|
|
1128
974
|
"use strict";
|
|
1129
975
|
var angularportalazure;
|
|
1130
976
|
(function (angularportalazure) {
|
|
1131
|
-
//angularPortalBlade.$inject = ['angularportalazure.portalService'];
|
|
1132
|
-
//function angularPortalBlade(portalService: angularportalazure.PortalService) {
|
|
1133
|
-
// return {
|
|
1134
|
-
// restrict: 'E',
|
|
1135
|
-
// transclude: true,
|
|
1136
|
-
// scope: {},
|
|
1137
|
-
// bindToController: { vm: '=' },
|
|
1138
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
1139
|
-
// link: function (scope, element, attrs, controller) {
|
|
1140
|
-
// //controller.close = function () {
|
|
1141
|
-
// // portalService.areaBlades.clearLastLevel();
|
|
1142
|
-
// //};
|
|
1143
|
-
// },
|
|
1144
|
-
// controller: function () {
|
|
1145
|
-
// this.$onInit = function () {
|
|
1146
|
-
// this.close = function () {
|
|
1147
|
-
// portalService.areaBlades.clearLastLevel();
|
|
1148
|
-
// };
|
|
1149
|
-
// };
|
|
1150
|
-
// },
|
|
1151
|
-
// controllerAs: '$ctrl'
|
|
1152
|
-
// };
|
|
1153
|
-
//}
|
|
1154
|
-
//angular.module('angularportalazure').directive('angularPortalBlade', angularPortalBlade);
|
|
1155
977
|
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
1156
978
|
function AngularPortalBladeController(portalService) {
|
|
1157
979
|
this.$onInit = function () {
|
|
1158
|
-
//portalService.areaNotification.show();
|
|
1159
980
|
this.close = function () {
|
|
1160
|
-
//portalService.areaBlades.clearLastLevel();
|
|
1161
|
-
//portalService.areaNotification.hide();
|
|
1162
981
|
};
|
|
1163
982
|
};
|
|
1164
983
|
}
|
|
@@ -1175,26 +994,6 @@ var angularportalazure;
|
|
|
1175
994
|
"use strict";
|
|
1176
995
|
var angularportalazure;
|
|
1177
996
|
(function (angularportalazure) {
|
|
1178
|
-
//grid.$inject = ['angularportalazure.portalService'];
|
|
1179
|
-
//function grid(portalService: angularportalazure.PortalService) {
|
|
1180
|
-
// return {
|
|
1181
|
-
// restrict: 'E',
|
|
1182
|
-
// transclude: true,
|
|
1183
|
-
// scope: {},
|
|
1184
|
-
// bindToController: { vm: '=' },
|
|
1185
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/grid/grid.html',
|
|
1186
|
-
// link: function (scope, element, attrs, controller) { },
|
|
1187
|
-
// controller: function () {
|
|
1188
|
-
// //this.$onInit = function () {
|
|
1189
|
-
// // this.close = function () {
|
|
1190
|
-
// // portalService.areaBlades.clearLastLevel();
|
|
1191
|
-
// // };
|
|
1192
|
-
// //};
|
|
1193
|
-
// },
|
|
1194
|
-
// controllerAs: '$ctrl'
|
|
1195
|
-
// };
|
|
1196
|
-
//}
|
|
1197
|
-
//angular.module('angularportalazure').directive('grid', grid);
|
|
1198
997
|
var angularPortalGrid = {
|
|
1199
998
|
transclude: true,
|
|
1200
999
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/bladegrid/bladegrid.html',
|
|
@@ -1208,18 +1007,6 @@ var angularportalazure;
|
|
|
1208
1007
|
"use strict";
|
|
1209
1008
|
var angularportalazure;
|
|
1210
1009
|
(function (angularportalazure) {
|
|
1211
|
-
//function angularPortalHome() {
|
|
1212
|
-
// return {
|
|
1213
|
-
// restrict: 'E',
|
|
1214
|
-
// scope: {},
|
|
1215
|
-
// bindToController: { vm: '=' },
|
|
1216
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
|
|
1217
|
-
// link: function (scope, element, attrs, controller) { },
|
|
1218
|
-
// controller: function () { },
|
|
1219
|
-
// controllerAs: '$ctrl'
|
|
1220
|
-
// };
|
|
1221
|
-
//}
|
|
1222
|
-
//angular.module('angularportalazure').directive('angularPortalHome', angularPortalHome);
|
|
1223
1010
|
AngularPortalHomeController.$inject = ['$scope', 'angularportalazure.portalService'];
|
|
1224
1011
|
function AngularPortalHomeController($scope, portalService) {
|
|
1225
1012
|
this.$onInit = function () {
|
|
@@ -1239,33 +1026,6 @@ var angularportalazure;
|
|
|
1239
1026
|
"use strict";
|
|
1240
1027
|
var angularportalazure;
|
|
1241
1028
|
(function (angularportalazure) {
|
|
1242
|
-
//nav.$inject = ['angularportalazure.portalService'];
|
|
1243
|
-
//function nav(portalService: angularportalazure.PortalService) {
|
|
1244
|
-
// return {
|
|
1245
|
-
// restrict: 'E',
|
|
1246
|
-
// transclude: true,
|
|
1247
|
-
// scope: {},
|
|
1248
|
-
// bindToController: { vm: '=' },
|
|
1249
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
1250
|
-
// link: function (scope, element, attrs, controller) {
|
|
1251
|
-
// angular.forEach(controller.items, function (item) {
|
|
1252
|
-
// // Set some default values, depending on existing values
|
|
1253
|
-
// if (item.isVisible == undefined) { item.isVisible = true; }
|
|
1254
|
-
// if (item.title == undefined || item.title == '') { item.style = { cursor: 'default' }; }
|
|
1255
|
-
// if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
|
|
1256
|
-
// });
|
|
1257
|
-
// },
|
|
1258
|
-
// controller: function () {
|
|
1259
|
-
// //this.$onInit = function () {
|
|
1260
|
-
// // this.close = function () {
|
|
1261
|
-
// // portalService.areaBlades.clearLastLevel();
|
|
1262
|
-
// // };
|
|
1263
|
-
// //};
|
|
1264
|
-
// },
|
|
1265
|
-
// controllerAs: '$ctrl'
|
|
1266
|
-
// };
|
|
1267
|
-
//}
|
|
1268
|
-
//angular.module('angularportalazure').directive('nav', nav);
|
|
1269
1029
|
var angularPortalNav = {
|
|
1270
1030
|
transclude: true,
|
|
1271
1031
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
@@ -1277,7 +1037,6 @@ var angularportalazure;
|
|
|
1277
1037
|
angular.module('angularportalazure').component('angularPortalNav', angularPortalNav);
|
|
1278
1038
|
})(angularportalazure || (angularportalazure = {}));
|
|
1279
1039
|
/// <reference path="bladedata.ts" />
|
|
1280
|
-
/// <reference path="debug.ts" />
|
|
1281
1040
|
/// <reference path="portalservice.ts" />
|
|
1282
1041
|
"use strict";
|
|
1283
1042
|
var angularportalazure;
|
|
@@ -1292,13 +1051,9 @@ var angularportalazure;
|
|
|
1292
1051
|
var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
1293
1052
|
//#region Properties
|
|
1294
1053
|
_this.item = null;
|
|
1295
|
-
//this.isCommandNew = true;
|
|
1296
1054
|
_this.commandNewText = 'neu';
|
|
1297
|
-
//this.isCommandSave = true;
|
|
1298
1055
|
_this.commandSaveText = 'speichern';
|
|
1299
|
-
//this.isCommandDelete = true;
|
|
1300
1056
|
_this.commandDeleteText = 'löschen';
|
|
1301
|
-
//this.isCommandCancel = true;
|
|
1302
1057
|
_this.commandCancelText = 'abbrechen';
|
|
1303
1058
|
return _this;
|
|
1304
1059
|
}
|
|
@@ -1351,7 +1106,6 @@ var angularportalazure;
|
|
|
1351
1106
|
angularportalazure.BladeDetail = BladeDetail;
|
|
1352
1107
|
})(angularportalazure || (angularportalazure = {}));
|
|
1353
1108
|
/// <reference path="bladedata.ts" />
|
|
1354
|
-
/// <reference path="debug.ts" />
|
|
1355
1109
|
/// <reference path="portalservice.ts" />
|
|
1356
1110
|
"use strict";
|
|
1357
1111
|
var angularportalazure;
|
|
@@ -1366,7 +1120,6 @@ var angularportalazure;
|
|
|
1366
1120
|
//#endregion
|
|
1367
1121
|
//#region Properties
|
|
1368
1122
|
_this.items = [];
|
|
1369
|
-
//this.isCommandNew = true;
|
|
1370
1123
|
_this.commandNewText = 'neu';
|
|
1371
1124
|
return _this;
|
|
1372
1125
|
}
|
|
@@ -1416,10 +1169,10 @@ var angularportalazure;
|
|
|
1416
1169
|
for (var actualProperty in actual) {
|
|
1417
1170
|
if (actual.hasOwnProperty(actualProperty)) {
|
|
1418
1171
|
var actualValue = actual[actualProperty];
|
|
1419
|
-
if (typeof actual
|
|
1172
|
+
if (typeof actual === 'number') {
|
|
1420
1173
|
actualValue = convertToString(actual);
|
|
1421
1174
|
}
|
|
1422
|
-
if (typeof actualValue
|
|
1175
|
+
if (typeof actualValue === 'string') {
|
|
1423
1176
|
if (actualValue.indexOf('object:') > -1) {
|
|
1424
1177
|
continue;
|
|
1425
1178
|
}
|
|
@@ -1441,15 +1194,15 @@ var angularportalazure;
|
|
|
1441
1194
|
//#endregion
|
|
1442
1195
|
//#region Process depending on type
|
|
1443
1196
|
// Process property, typeof 'object'
|
|
1444
|
-
if (typeof actual
|
|
1197
|
+
if (typeof actual === 'object') {
|
|
1445
1198
|
processObject(actual);
|
|
1446
1199
|
}
|
|
1447
1200
|
// Process property, typeof 'number'
|
|
1448
|
-
if (typeof actual
|
|
1201
|
+
if (typeof actual === 'number') {
|
|
1449
1202
|
actual = convertToString(actual);
|
|
1450
1203
|
}
|
|
1451
1204
|
// Process property, typeof 'string'
|
|
1452
|
-
if (typeof actual
|
|
1205
|
+
if (typeof actual === 'string') {
|
|
1453
1206
|
valueFound(actual, expected);
|
|
1454
1207
|
}
|
|
1455
1208
|
//#endregion
|
|
@@ -1475,7 +1228,73 @@ var angularportalazure;
|
|
|
1475
1228
|
}(angularportalazure.BladeData));
|
|
1476
1229
|
angularportalazure.BladeGrid = BladeGrid;
|
|
1477
1230
|
})(angularportalazure || (angularportalazure = {}));
|
|
1478
|
-
|
|
1231
|
+
"use strict";
|
|
1232
|
+
var angularportalazure;
|
|
1233
|
+
(function (angularportalazure) {
|
|
1234
|
+
var Debug = (function () {
|
|
1235
|
+
//#region Constructor
|
|
1236
|
+
function Debug() {
|
|
1237
|
+
}
|
|
1238
|
+
//#endregion
|
|
1239
|
+
//#region Methods
|
|
1240
|
+
Debug.enable = function (key) {
|
|
1241
|
+
Debug.isEnabled = true;
|
|
1242
|
+
if (key) {
|
|
1243
|
+
Debug.keys.push(key);
|
|
1244
|
+
}
|
|
1245
|
+
};
|
|
1246
|
+
Debug.disable = function (key) {
|
|
1247
|
+
if (key) {
|
|
1248
|
+
var indexToDelete = Debug.keys.indexOf(key);
|
|
1249
|
+
Debug.keys.splice(indexToDelete, 1);
|
|
1250
|
+
}
|
|
1251
|
+
if (Debug.keys.length === 0) {
|
|
1252
|
+
Debug.isEnabled = false;
|
|
1253
|
+
}
|
|
1254
|
+
};
|
|
1255
|
+
Debug.write = function (debugLine, objects) {
|
|
1256
|
+
if ((Debug.isEnabled && Debug.keys.length === 0)
|
|
1257
|
+
|| (Debug.isEnabled && Debug.isInKeys(debugLine))) {
|
|
1258
|
+
console.log(debugLine);
|
|
1259
|
+
if (objects !== undefined && Debug.isWithObjects) {
|
|
1260
|
+
objects.forEach(function (item) {
|
|
1261
|
+
console.log(item);
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
return true;
|
|
1265
|
+
}
|
|
1266
|
+
return false;
|
|
1267
|
+
};
|
|
1268
|
+
/** Extract the key (e.g. [azureportal] from a string */
|
|
1269
|
+
Debug.extractKey = function (text) {
|
|
1270
|
+
var extractKey = '';
|
|
1271
|
+
var firstCharacter = text.substring(0, 1);
|
|
1272
|
+
if (firstCharacter === '[') {
|
|
1273
|
+
// Find closing bracket
|
|
1274
|
+
var closingPos = text.indexOf(']');
|
|
1275
|
+
if (closingPos > 0) {
|
|
1276
|
+
extractKey = text.substring(0, closingPos + 1);
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
return extractKey;
|
|
1280
|
+
};
|
|
1281
|
+
/** Extract the key (e.g. [azureportal] from a string */
|
|
1282
|
+
Debug.isInKeys = function (debugLine) {
|
|
1283
|
+
var key = Debug.extractKey(debugLine);
|
|
1284
|
+
if (Debug.keys.indexOf(key) !== -1) {
|
|
1285
|
+
return true;
|
|
1286
|
+
}
|
|
1287
|
+
return false;
|
|
1288
|
+
};
|
|
1289
|
+
return Debug;
|
|
1290
|
+
}());
|
|
1291
|
+
//#endregion
|
|
1292
|
+
//#region Properties
|
|
1293
|
+
Debug.isEnabled = false;
|
|
1294
|
+
Debug.isWithObjects = false;
|
|
1295
|
+
Debug.keys = new Array();
|
|
1296
|
+
angularportalazure.Debug = Debug;
|
|
1297
|
+
})(angularportalazure || (angularportalazure = {}));
|
|
1479
1298
|
"use strict";
|
|
1480
1299
|
var angularportalazure;
|
|
1481
1300
|
(function (angularportalazure) {
|
|
@@ -1529,7 +1348,6 @@ var angularportalazure;
|
|
|
1529
1348
|
}());
|
|
1530
1349
|
angularportalazure.Exception = Exception;
|
|
1531
1350
|
})(angularportalazure || (angularportalazure = {}));
|
|
1532
|
-
/// <reference path="debug.ts" />
|
|
1533
1351
|
"use strict";
|
|
1534
1352
|
var angularportalazure;
|
|
1535
1353
|
(function (angularportalazure) {
|
|
@@ -1,46 +1,16 @@
|
|
|
1
1
|
/// <reference types="angular" />
|
|
2
|
-
/// <reference path="../../domain/debug.ts" />
|
|
3
2
|
/// <reference path="../../domain/portalservice.ts" />
|
|
4
3
|
|
|
5
4
|
namespace angularportalazure {
|
|
6
|
-
//angularPortalBlade.$inject = ['angularportalazure.portalService'];
|
|
7
|
-
//function angularPortalBlade(portalService: angularportalazure.PortalService) {
|
|
8
|
-
// return {
|
|
9
|
-
// restrict: 'E',
|
|
10
|
-
// transclude: true,
|
|
11
|
-
// scope: {},
|
|
12
|
-
// bindToController: { vm: '=' },
|
|
13
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
14
|
-
// link: function (scope, element, attrs, controller) {
|
|
15
|
-
// //controller.close = function () {
|
|
16
|
-
// // portalService.areaBlades.clearLastLevel();
|
|
17
|
-
// //};
|
|
18
|
-
// },
|
|
19
|
-
// controller: function () {
|
|
20
|
-
// this.$onInit = function () {
|
|
21
|
-
// this.close = function () {
|
|
22
|
-
// portalService.areaBlades.clearLastLevel();
|
|
23
|
-
// };
|
|
24
|
-
// };
|
|
25
|
-
// },
|
|
26
|
-
// controllerAs: '$ctrl'
|
|
27
|
-
// };
|
|
28
|
-
//}
|
|
29
|
-
|
|
30
|
-
//angular.module('angularportalazure').directive('angularPortalBlade', angularPortalBlade);
|
|
31
|
-
|
|
32
5
|
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
33
6
|
function AngularPortalBladeController(portalService: angularportalazure.PortalService) {
|
|
34
7
|
this.$onInit = function () {
|
|
35
|
-
//portalService.areaNotification.show();
|
|
36
8
|
this.close = function () {
|
|
37
|
-
//portalService.areaBlades.clearLastLevel();
|
|
38
|
-
//portalService.areaNotification.hide();
|
|
39
9
|
};
|
|
40
10
|
};
|
|
41
11
|
}
|
|
42
12
|
|
|
43
|
-
|
|
13
|
+
let angularPortalBlade = {
|
|
44
14
|
transclude: true,
|
|
45
15
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
46
16
|
controller: AngularPortalBladeController,
|
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
namespace angularportalazure {
|
|
2
|
-
|
|
3
|
-
//function grid(portalService: angularportalazure.PortalService) {
|
|
4
|
-
// return {
|
|
5
|
-
// restrict: 'E',
|
|
6
|
-
// transclude: true,
|
|
7
|
-
// scope: {},
|
|
8
|
-
// bindToController: { vm: '=' },
|
|
9
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/grid/grid.html',
|
|
10
|
-
// link: function (scope, element, attrs, controller) { },
|
|
11
|
-
// controller: function () {
|
|
12
|
-
// //this.$onInit = function () {
|
|
13
|
-
// // this.close = function () {
|
|
14
|
-
// // portalService.areaBlades.clearLastLevel();
|
|
15
|
-
// // };
|
|
16
|
-
// //};
|
|
17
|
-
// },
|
|
18
|
-
// controllerAs: '$ctrl'
|
|
19
|
-
// };
|
|
20
|
-
//}
|
|
21
|
-
|
|
22
|
-
//angular.module('angularportalazure').directive('grid', grid);
|
|
23
|
-
|
|
24
|
-
var angularPortalGrid = {
|
|
2
|
+
let angularPortalGrid = {
|
|
25
3
|
transclude: true,
|
|
26
4
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/bladegrid/bladegrid.html',
|
|
27
5
|
controller: function () { },
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
namespace angularportalazure {
|
|
2
|
-
//function angularPortalHome() {
|
|
3
|
-
// return {
|
|
4
|
-
// restrict: 'E',
|
|
5
|
-
// scope: {},
|
|
6
|
-
// bindToController: { vm: '=' },
|
|
7
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
|
|
8
|
-
// link: function (scope, element, attrs, controller) { },
|
|
9
|
-
// controller: function () { },
|
|
10
|
-
// controllerAs: '$ctrl'
|
|
11
|
-
// };
|
|
12
|
-
//}
|
|
13
|
-
|
|
14
|
-
//angular.module('angularportalazure').directive('angularPortalHome', angularPortalHome);
|
|
15
|
-
|
|
16
2
|
AngularPortalHomeController.$inject = ['$scope', 'angularportalazure.portalService'];
|
|
17
3
|
function AngularPortalHomeController($scope: angular.IScope, portalService: angularportalazure.PortalService) {
|
|
18
4
|
this.$onInit = function () {
|
|
@@ -21,7 +7,7 @@
|
|
|
21
7
|
};
|
|
22
8
|
}
|
|
23
9
|
|
|
24
|
-
|
|
10
|
+
let angularPortalHome = {
|
|
25
11
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
|
|
26
12
|
controller: AngularPortalHomeController,
|
|
27
13
|
bindings: {
|
|
@@ -1,34 +1,5 @@
|
|
|
1
1
|
namespace angularportalazure {
|
|
2
|
-
|
|
3
|
-
//function nav(portalService: angularportalazure.PortalService) {
|
|
4
|
-
// return {
|
|
5
|
-
// restrict: 'E',
|
|
6
|
-
// transclude: true,
|
|
7
|
-
// scope: {},
|
|
8
|
-
// bindToController: { vm: '=' },
|
|
9
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
10
|
-
// link: function (scope, element, attrs, controller) {
|
|
11
|
-
// angular.forEach(controller.items, function (item) {
|
|
12
|
-
// // Set some default values, depending on existing values
|
|
13
|
-
// if (item.isVisible == undefined) { item.isVisible = true; }
|
|
14
|
-
// if (item.title == undefined || item.title == '') { item.style = { cursor: 'default' }; }
|
|
15
|
-
// if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
|
|
16
|
-
// });
|
|
17
|
-
// },
|
|
18
|
-
// controller: function () {
|
|
19
|
-
// //this.$onInit = function () {
|
|
20
|
-
// // this.close = function () {
|
|
21
|
-
// // portalService.areaBlades.clearLastLevel();
|
|
22
|
-
// // };
|
|
23
|
-
// //};
|
|
24
|
-
// },
|
|
25
|
-
// controllerAs: '$ctrl'
|
|
26
|
-
// };
|
|
27
|
-
//}
|
|
28
|
-
|
|
29
|
-
//angular.module('angularportalazure').directive('nav', nav);
|
|
30
|
-
|
|
31
|
-
var angularPortalNav = {
|
|
2
|
+
let angularPortalNav = {
|
|
32
3
|
transclude: true,
|
|
33
4
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
34
5
|
controller: function () { },
|
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.152",
|
|
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
|
}
|