@ardimedia/angular-portal-azure 0.2.183 → 0.2.185
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 +69 -73
- package/directives/blade/angular-portal-blade.ts +2 -3
- package/directives/grid/angular-portal-grid.ts +1 -1
- package/directives/home/angular-portal-home.ts +2 -2
- package/directives/home/home.html +7 -5
- package/directives/nav/angular-portal-nav.ts +1 -1
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -163,58 +163,58 @@ var angularportalazure;
|
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region Commands
|
|
165
165
|
_this.isCommandBrowse = false;
|
|
166
|
-
_this.commandBrowse = function () {
|
|
166
|
+
_this.commandBrowse = function () { _this.onCommandBrowse(); };
|
|
167
167
|
_this.commandBrowseText = '';
|
|
168
168
|
_this.isCommandCancel = false;
|
|
169
|
-
_this.commandCancel = function () {
|
|
169
|
+
_this.commandCancel = function () { _this.onCommandCancel(); };
|
|
170
170
|
_this.commandCancelText = '';
|
|
171
171
|
_this.isCommandCopy = false;
|
|
172
|
-
_this.commandCopy = function () {
|
|
172
|
+
_this.commandCopy = function () { _this.onCommandCopy(); };
|
|
173
173
|
_this.commandCopyText = '';
|
|
174
174
|
_this.isCommandDelete = false;
|
|
175
|
-
_this.commandDelete = function () {
|
|
175
|
+
_this.commandDelete = function () { _this.onCommandDelete(); };
|
|
176
176
|
_this.commandDeleteText = '';
|
|
177
177
|
_this.isCommandDocument = false;
|
|
178
|
-
_this.commandDocument = function () {
|
|
178
|
+
_this.commandDocument = function () { _this.onCommandDocument(); };
|
|
179
179
|
_this.commandDocumentText = '';
|
|
180
180
|
_this.isCommandDocument2 = false;
|
|
181
|
-
_this.commandDocument2 = function () {
|
|
181
|
+
_this.commandDocument2 = function () { _this.onCommandDocument2(); };
|
|
182
182
|
_this.commandDocument2Text = '';
|
|
183
183
|
_this.isCommandDocument3 = false;
|
|
184
|
-
_this.commandDocument3 = function () {
|
|
184
|
+
_this.commandDocument3 = function () { _this.onCommandDocument3(); };
|
|
185
185
|
_this.commandDocument3Text = '';
|
|
186
186
|
_this.isCommandDocument4 = false;
|
|
187
|
-
_this.commandDocument4 = function () {
|
|
187
|
+
_this.commandDocument4 = function () { _this.onCommandDocument4(); };
|
|
188
188
|
_this.commandDocument4Text = '';
|
|
189
189
|
_this.isCommandDocument5 = false;
|
|
190
|
-
_this.commandDocument5 = function () {
|
|
190
|
+
_this.commandDocument5 = function () { _this.onCommandDocument5(); };
|
|
191
191
|
_this.commandDocument5Text = '';
|
|
192
192
|
_this.isCommandNew = false;
|
|
193
|
-
_this.commandNew = function () {
|
|
193
|
+
_this.commandNew = function () { _this.onCommandNew(); };
|
|
194
194
|
_this.commandNewText = '';
|
|
195
195
|
_this.isCommandOrder = false;
|
|
196
|
-
_this.commandOrder = function () {
|
|
196
|
+
_this.commandOrder = function () { _this.onCommandOrder(); };
|
|
197
197
|
_this.commandOrderText = '';
|
|
198
198
|
_this.isCommandRestart = false;
|
|
199
|
-
_this.commandRestart = function () {
|
|
199
|
+
_this.commandRestart = function () { _this.onCommandRestart(); };
|
|
200
200
|
_this.commandRestartText = '';
|
|
201
201
|
_this.isCommandSave = false;
|
|
202
|
-
_this.commandSave = function () {
|
|
202
|
+
_this.commandSave = function () { _this.onCommandSave(); };
|
|
203
203
|
_this.commandSaveText = '';
|
|
204
204
|
_this.isCommandSearch = false;
|
|
205
|
-
_this.commandSearch = function () {
|
|
205
|
+
_this.commandSearch = function () { _this.onCommandSearch(); };
|
|
206
206
|
_this.commandSearchText = '';
|
|
207
207
|
_this.isCommandStart = false;
|
|
208
|
-
_this.commandStart = function () {
|
|
208
|
+
_this.commandStart = function () { _this.onCommandStart(); };
|
|
209
209
|
_this.commandStartText = '';
|
|
210
210
|
_this.isCommandStop = false;
|
|
211
|
-
_this.commandStop = function () {
|
|
211
|
+
_this.commandStop = function () { _this.onCommandStop(); };
|
|
212
212
|
_this.commandStopText = '';
|
|
213
213
|
_this.isCommandSwap = false;
|
|
214
|
-
_this.commandSwap = function () {
|
|
214
|
+
_this.commandSwap = function () { _this.onCommandSwap(); };
|
|
215
215
|
_this.commandSwapText = '';
|
|
216
216
|
_this.isCommandExcel = false;
|
|
217
|
-
_this.commandExcel = function () {
|
|
217
|
+
_this.commandExcel = function () { _this.onCommandExcel(); };
|
|
218
218
|
_this.commandExcelText = '';
|
|
219
219
|
_this.vm = _this;
|
|
220
220
|
_this.path = path;
|
|
@@ -322,6 +322,7 @@ var angularportalazure;
|
|
|
322
322
|
this.statusBarClass = 'apa-statusbar-info';
|
|
323
323
|
};
|
|
324
324
|
Blade.prototype.setStatusBarException = function (exception) {
|
|
325
|
+
var _this = this;
|
|
325
326
|
if (exception.Message === undefined) {
|
|
326
327
|
this.statusBar = 'FEHLER: ' + exception;
|
|
327
328
|
this.statusBarClass = 'apa-statusbar-error';
|
|
@@ -332,8 +333,8 @@ var angularportalazure;
|
|
|
332
333
|
}
|
|
333
334
|
if (exception.Messages !== undefined) {
|
|
334
335
|
exception.Messages.forEach(function (item) {
|
|
335
|
-
|
|
336
|
-
|
|
336
|
+
_this.statusBar += ' - ' + item;
|
|
337
|
+
_this.statusBarClass = 'apa-statusbar-error';
|
|
337
338
|
});
|
|
338
339
|
}
|
|
339
340
|
};
|
|
@@ -425,7 +426,6 @@ var angularportalazure;
|
|
|
425
426
|
function AreaBlades($scope, portalService) {
|
|
426
427
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
427
428
|
_this.blades = new Array();
|
|
428
|
-
var that = _this;
|
|
429
429
|
//this.areaBlades = this.portalService.$window.document.getElementById('apa-blade-area');
|
|
430
430
|
_this.portalScroll = _this.portalService.$window.document.getElementById('apa-portal-scroll');
|
|
431
431
|
_this.setupAddBladeListener();
|
|
@@ -456,6 +456,7 @@ var angularportalazure;
|
|
|
456
456
|
return this.addBlade(path);
|
|
457
457
|
};
|
|
458
458
|
AreaBlades.prototype.addBlade = function (path, senderPath) {
|
|
459
|
+
var _this = this;
|
|
459
460
|
if (senderPath === void 0) { senderPath = ''; }
|
|
460
461
|
if (path == null) {
|
|
461
462
|
return;
|
|
@@ -463,7 +464,6 @@ var angularportalazure;
|
|
|
463
464
|
if (senderPath == null) {
|
|
464
465
|
return;
|
|
465
466
|
}
|
|
466
|
-
var that = this;
|
|
467
467
|
var portalcontent = null;
|
|
468
468
|
this.portalService.$analytics.pageTrack(path);
|
|
469
469
|
path = path.toLowerCase();
|
|
@@ -472,11 +472,11 @@ var angularportalazure;
|
|
|
472
472
|
if (path === undefined || path === '') {
|
|
473
473
|
return;
|
|
474
474
|
}
|
|
475
|
-
if (
|
|
476
|
-
if (
|
|
475
|
+
if (this.portalService.$window !== undefined) {
|
|
476
|
+
if (this.portalService.$window.document === undefined) {
|
|
477
477
|
throw new Error('[angularportalazure.AreaBlades] \'this.$window.document\' undefined.');
|
|
478
478
|
}
|
|
479
|
-
portalcontent =
|
|
479
|
+
portalcontent = this.portalService.$window.document.getElementById('apa-portal-scroll');
|
|
480
480
|
if (portalcontent === null) {
|
|
481
481
|
throw new Error('[angularportalazure.AreaBlades] HTML element with ID [apa-portal-scroll] not found. Maybe it is to early to call function \'BladeArea.addBlade\'.');
|
|
482
482
|
}
|
|
@@ -495,14 +495,14 @@ var angularportalazure;
|
|
|
495
495
|
});
|
|
496
496
|
//#endregion
|
|
497
497
|
//#region Show the blade
|
|
498
|
-
var blade = new angularportalazure.Blade(this.$scope,
|
|
499
|
-
|
|
498
|
+
var blade = new angularportalazure.Blade(this.$scope, this.portalService, path, '');
|
|
499
|
+
this.blades.push(blade);
|
|
500
500
|
//#endregion
|
|
501
501
|
//#region Position the blade
|
|
502
|
-
if (
|
|
503
|
-
|
|
504
|
-
var azureportalblades =
|
|
505
|
-
var i =
|
|
502
|
+
if (this.portalService.$window !== undefined) {
|
|
503
|
+
this.portalService.$window.setTimeout(function () {
|
|
504
|
+
var azureportalblades = _this.portalService.$window.document.getElementsByClassName('azureportalblade');
|
|
505
|
+
var i = _this.blades.length - 1;
|
|
506
506
|
// HACK: Sometime azureportalblades[i].offsetLeft is undefined.
|
|
507
507
|
// So now if it is, the user has to scroll on its own.
|
|
508
508
|
if (azureportalblades[i] !== undefined && azureportalblades[i].offsetLeft !== undefined) {
|
|
@@ -519,12 +519,12 @@ var angularportalazure;
|
|
|
519
519
|
this.showPanoramaIfNoBlades();
|
|
520
520
|
};
|
|
521
521
|
AreaBlades.prototype.clearPath = function (path) {
|
|
522
|
-
var
|
|
522
|
+
var _this = this;
|
|
523
523
|
// we do not distinguish between lower and upper case path name
|
|
524
524
|
path = path.toLowerCase();
|
|
525
|
-
var isremoved =
|
|
525
|
+
var isremoved = this.blades.some(function (blade, index) {
|
|
526
526
|
if (blade.comparePaths(blade.path, path)) {
|
|
527
|
-
|
|
527
|
+
_this.blades.length = index;
|
|
528
528
|
return true;
|
|
529
529
|
}
|
|
530
530
|
});
|
|
@@ -548,15 +548,15 @@ var angularportalazure;
|
|
|
548
548
|
this.showPanoramaIfNoBlades();
|
|
549
549
|
};
|
|
550
550
|
AreaBlades.prototype.clearChild = function (path) {
|
|
551
|
-
var
|
|
551
|
+
var _this = this;
|
|
552
552
|
path = path.toLowerCase();
|
|
553
553
|
if (path === '') {
|
|
554
554
|
return;
|
|
555
555
|
}
|
|
556
|
-
var isremoved =
|
|
556
|
+
var isremoved = this.blades.some(function (blade, index) {
|
|
557
557
|
// we do not distinguish between lower and upper case path name
|
|
558
558
|
if (blade.comparePaths(blade.path, path)) {
|
|
559
|
-
|
|
559
|
+
_this.blades.length = index + 1;
|
|
560
560
|
return true;
|
|
561
561
|
}
|
|
562
562
|
});
|
|
@@ -599,9 +599,9 @@ var angularportalazure;
|
|
|
599
599
|
});
|
|
600
600
|
};
|
|
601
601
|
AreaBlades.prototype.setupAddBladeListener = function () {
|
|
602
|
-
var
|
|
603
|
-
|
|
604
|
-
|
|
602
|
+
var _this = this;
|
|
603
|
+
this.addBladeListener = this.portalService.$rootScope.$on('AreaBlades.AddBlade', function (event, args) {
|
|
604
|
+
_this.addBlade(args.path, args.pathSender);
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
607
|
return AreaBlades;
|
|
@@ -1004,9 +1004,9 @@ var angularportalazure;
|
|
|
1004
1004
|
(function (angularportalazure) {
|
|
1005
1005
|
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
1006
1006
|
function AngularPortalBladeController(portalService) {
|
|
1007
|
+
var _this = this;
|
|
1007
1008
|
this.$onInit = function () {
|
|
1008
|
-
|
|
1009
|
-
};
|
|
1009
|
+
_this.close = function () { };
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
1012
|
var angularPortalBlade = {
|
|
@@ -1088,14 +1088,14 @@ var angularportalazure;
|
|
|
1088
1088
|
//#endregion
|
|
1089
1089
|
//#region Methods
|
|
1090
1090
|
BladeDetail.prototype.loadItem = function (func) {
|
|
1091
|
-
var
|
|
1092
|
-
|
|
1091
|
+
var _this = this;
|
|
1092
|
+
this.onLoadItem();
|
|
1093
1093
|
func().then(function (data) {
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1094
|
+
_this.item = data;
|
|
1095
|
+
_this.clearStatusBar();
|
|
1096
|
+
_this.onLoadedItem();
|
|
1097
1097
|
}).catch(function (exception) {
|
|
1098
|
-
|
|
1098
|
+
_this.setStatusBarException(exception);
|
|
1099
1099
|
});
|
|
1100
1100
|
};
|
|
1101
1101
|
BladeDetail.prototype.onLoadItem = function () {
|
|
@@ -1104,20 +1104,20 @@ var angularportalazure;
|
|
|
1104
1104
|
BladeDetail.prototype.onLoadedItem = function () {
|
|
1105
1105
|
};
|
|
1106
1106
|
BladeDetail.prototype.saveItem = function (func) {
|
|
1107
|
-
var
|
|
1108
|
-
|
|
1107
|
+
var _this = this;
|
|
1108
|
+
this.onSaveItem();
|
|
1109
1109
|
// Is form valid
|
|
1110
|
-
if (!
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
console.log(
|
|
1110
|
+
if (!this.formblade.$valid) {
|
|
1111
|
+
this.statusBar = 'Speichern nicht möglich!';
|
|
1112
|
+
this.statusBarClass = 'apa-statusbar-error';
|
|
1113
|
+
console.log(this.formblade);
|
|
1114
1114
|
return;
|
|
1115
1115
|
}
|
|
1116
1116
|
func().then(function (data) {
|
|
1117
|
-
|
|
1118
|
-
|
|
1117
|
+
_this.item = data;
|
|
1118
|
+
_this.onSavedItem();
|
|
1119
1119
|
}).catch(function (exception) {
|
|
1120
|
-
|
|
1120
|
+
_this.setStatusBarException(exception);
|
|
1121
1121
|
});
|
|
1122
1122
|
};
|
|
1123
1123
|
BladeDetail.prototype.onSaveItem = function () {
|
|
@@ -1330,20 +1330,19 @@ var angularportalazure;
|
|
|
1330
1330
|
}
|
|
1331
1331
|
//#endregion
|
|
1332
1332
|
Exception.prototype.processException = function (response) {
|
|
1333
|
-
var that = this;
|
|
1334
1333
|
this.convertFromWebApiException(response.data);
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1334
|
+
this.ExceptionType = response.data.ExceptionType;
|
|
1335
|
+
this.Type = response.data.Type;
|
|
1336
|
+
this.Message = response.data.Message;
|
|
1337
|
+
this.MessageDetail = response.data.MessageDetail;
|
|
1338
|
+
this.Messages = response.data.Messages;
|
|
1339
|
+
this.Url = response.config.url;
|
|
1340
|
+
this.Status = response.status;
|
|
1341
|
+
this.StatusText = response.statusText;
|
|
1343
1342
|
// Find a better way to log information, maybe to the database or to Google Analytics.
|
|
1344
1343
|
console.log('processException:');
|
|
1345
1344
|
console.log(response);
|
|
1346
|
-
console.log(
|
|
1345
|
+
console.log(this);
|
|
1347
1346
|
};
|
|
1348
1347
|
Exception.prototype.convertFromWebApiException = function (ex) {
|
|
1349
1348
|
//#region Process data to Messages
|
|
@@ -1398,12 +1397,9 @@ var angularportalazure;
|
|
|
1398
1397
|
//#endregion
|
|
1399
1398
|
//#region Methods
|
|
1400
1399
|
DataService.prototype.getData = function (url) {
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
.
|
|
1404
|
-
})
|
|
1405
|
-
.catch(function (response) {
|
|
1406
|
-
});
|
|
1400
|
+
return this.$http({ method: 'GET', url: url })
|
|
1401
|
+
.then(function (response) { })
|
|
1402
|
+
.catch(function (response) { });
|
|
1407
1403
|
};
|
|
1408
1404
|
return DataService;
|
|
1409
1405
|
}());
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
namespace angularportalazure {
|
|
5
5
|
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
6
6
|
function AngularPortalBladeController(portalService: angularportalazure.PortalService) {
|
|
7
|
-
this.$onInit =
|
|
8
|
-
this.close =
|
|
9
|
-
};
|
|
7
|
+
this.$onInit = () => {
|
|
8
|
+
this.close = () => { };
|
|
10
9
|
};
|
|
11
10
|
}
|
|
12
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
namespace angularportalazure {
|
|
2
2
|
AngularPortalHomeController.$inject = ['$scope', 'angularportalazure.portalService'];
|
|
3
3
|
function AngularPortalHomeController($scope: angular.IScope, portalService: angularportalazure.PortalService) {
|
|
4
|
-
this.$onInit =
|
|
4
|
+
this.$onInit = () => {
|
|
5
5
|
portalService.areaNotification = new angularportalazure.AreaNotification($scope, portalService);
|
|
6
6
|
portalService.areaBlades = new angularportalazure.AreaBlades($scope, portalService);
|
|
7
7
|
};
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
angular.module('angularportalazure').component('angularPortalHome', angularPortalHome);
|
|
19
|
-
}
|
|
19
|
+
}
|
|
@@ -15,13 +15,15 @@
|
|
|
15
15
|
<!-- fxs-panorama-homearea -->
|
|
16
16
|
<div class="fxs-panorama-homearea" ng-class="{collapsed: !$ctrl.vm.portalService.panorama.startboard.tiles.showTiles}" ng-show="$ctrl.vm.portalService.panorama.isVisible" style="padding-top:45px;">
|
|
17
17
|
<div class="fxs-startboard-target fxs-startboard fx-rightClick" ng-class="{collapsed: !$ctrl.vm.portalService.panorama.startboard.tiles.showTiles}">
|
|
18
|
-
<div class="xfxs-part fxs-part-clickable" ng-click="tile.clicked();" style="background-color:#293644; padding:25px;
|
|
18
|
+
<div class="xfxs-part fxs-part-clickable" ng-click="tile.clicked();" style="background-color:#293644; padding:25px; max-width: 800px;margin-bottom:15px;">
|
|
19
19
|
<header class="xfxs-part-title" style="color:white">
|
|
20
20
|
<h3 class="xmsportalfx-tooltip-overflow">Redesign</h3>
|
|
21
|
-
<p class="xmsportalfx-tooltip-overflow">
|
|
22
|
-
Zur Zeit stehen nicht alle Applikation in der PREVIEW-Umgebung zur Verfügung. <b>
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
<p class="xmsportalfx-tooltip-overflow" style="margin:0;padding:0">
|
|
22
|
+
Zur Zeit stehen nicht alle Applikation in der PREVIEW-Umgebung zur Verfügung. <b>
|
|
23
|
+
Falls Ihre Applikation unten nicht aufgelistet wird,
|
|
24
|
+
entfernen sie in der URL den Teil mit [.preview] und navigieren Sie somit zur STANDARD-Umgebung.
|
|
25
|
+
In der STANDARD-Umgebung können Sie wie gewohnt weiterarbeiten.
|
|
26
|
+
</b>
|
|
25
27
|
Im Januar und Februar 2017 werden alle Applikationen auf das neue Layout angepasst.
|
|
26
28
|
<br /><br />Bei Fragen stehen wir gerne zur Verfügung.
|
|
27
29
|
<br />Ihr Ardimedia Team
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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.185",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|