@ardimedia/angular-portal-azure 0.2.290 → 0.2.292
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 +3 -27
- package/apn.js +59 -32
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -332,22 +332,6 @@ declare namespace angularportalazure {
|
|
|
332
332
|
constructor($injector: angular.auto.IInjectorService);
|
|
333
333
|
parameter: angularportalazure.BladeParameter;
|
|
334
334
|
$analytics: angulartics.IAnalyticsService;
|
|
335
|
-
animate: any;
|
|
336
|
-
animation: any;
|
|
337
|
-
component: any;
|
|
338
|
-
config: any;
|
|
339
|
-
constant: any;
|
|
340
|
-
controller: any;
|
|
341
|
-
directive: any;
|
|
342
|
-
factory: any;
|
|
343
|
-
filter: any;
|
|
344
|
-
provider: any;
|
|
345
|
-
run: any;
|
|
346
|
-
service: any;
|
|
347
|
-
value: any;
|
|
348
|
-
decorator: any;
|
|
349
|
-
name: any;
|
|
350
|
-
requires: any;
|
|
351
335
|
portalShell: angularportalazure.PortalShell;
|
|
352
336
|
panorama: angularportalazure.Panorama;
|
|
353
337
|
areaBlades: angularportalazure.AreaBlades;
|
|
@@ -375,7 +359,7 @@ declare namespace angularportalazure {
|
|
|
375
359
|
class BladeDetail<T> extends angularportalazure.BladeData {
|
|
376
360
|
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
377
361
|
item: T;
|
|
378
|
-
loadItem(func: () => Promise<any>): void;
|
|
362
|
+
loadItem(func: () => Promise<any | angularportalazure.Exception>): void;
|
|
379
363
|
/**
|
|
380
364
|
* Default behavior for saving an entity.
|
|
381
365
|
* - call this.setStatusBarSaveData();
|
|
@@ -393,7 +377,7 @@ declare namespace angularportalazure {
|
|
|
393
377
|
* - set this.isCommandSaveEnabled = true
|
|
394
378
|
* - call this.setStatusBarException
|
|
395
379
|
*/
|
|
396
|
-
saveItem(func: () =>
|
|
380
|
+
saveItem(func: () => Promise<T | angularportalazure.Exception> | angular.IPromise<T | angularportalazure.Exception>, ngForm?: any): (Promise<T | void> | angular.IPromise<T | void>);
|
|
397
381
|
/**
|
|
398
382
|
* Default behavior for saving any object.
|
|
399
383
|
* - call this.setStatusBarSaveData();
|
|
@@ -407,7 +391,7 @@ declare namespace angularportalazure {
|
|
|
407
391
|
* CATCH
|
|
408
392
|
* - call this.setStatusBarException
|
|
409
393
|
*/
|
|
410
|
-
saveObject(func: () =>
|
|
394
|
+
saveObject(func: () => Promise<any | angularportalazure.Exception> | angular.IPromise<any | angularportalazure.Exception>, ngForm?: any): (Promise<any | void> | angular.IPromise<any | void>);
|
|
411
395
|
/** Extension point */
|
|
412
396
|
onSaveItem(): void;
|
|
413
397
|
/** Extension point */
|
|
@@ -476,11 +460,3 @@ declare namespace angularportalazure {
|
|
|
476
460
|
private static processDotNetException2(response);
|
|
477
461
|
}
|
|
478
462
|
}
|
|
479
|
-
declare namespace angularportalazure {
|
|
480
|
-
class DataService {
|
|
481
|
-
$http: angular.IHttpService;
|
|
482
|
-
$q: angular.IQService;
|
|
483
|
-
constructor($http: angular.IHttpService, $q: angular.IQService);
|
|
484
|
-
getData(url: string): any;
|
|
485
|
-
}
|
|
486
|
-
}
|
package/apn.js
CHANGED
|
@@ -85,7 +85,10 @@ var angularportalazure;
|
|
|
85
85
|
}());
|
|
86
86
|
angularportalazure.UserAccount = UserAccount;
|
|
87
87
|
})(angularportalazure || (angularportalazure = {}));
|
|
88
|
+
// #region Declarations
|
|
89
|
+
/// <reference path="useraccount.ts" />
|
|
88
90
|
/// <reference path="portalservice.ts" />
|
|
91
|
+
// #endregion
|
|
89
92
|
var angularportalazure;
|
|
90
93
|
(function (angularportalazure) {
|
|
91
94
|
var UserControlBase = (function () {
|
|
@@ -145,8 +148,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
145
148
|
};
|
|
146
149
|
})();
|
|
147
150
|
/// <reference types="angular" />
|
|
148
|
-
/// <reference path="useraccount.ts" />
|
|
149
151
|
/// <reference path="portalservice.ts" />
|
|
152
|
+
/// <reference path="useraccount.ts" />
|
|
150
153
|
/// <reference path="usercontrolbase.ts" />
|
|
151
154
|
/// <reference path="iaddbladeeventargs.ts" />
|
|
152
155
|
// #endregion
|
|
@@ -435,7 +438,7 @@ var angularportalazure;
|
|
|
435
438
|
throw new Error('[angularportalazure.Blade] \'onCommandExcel\' is an abstract function. Define one in the derived class.');
|
|
436
439
|
};
|
|
437
440
|
// #endregion
|
|
438
|
-
|
|
441
|
+
// #endregion
|
|
439
442
|
/** Change title, as soon as watchExpression changes. watchExpression is either a variable ore an expression, e.g. [name1 + name2] */
|
|
440
443
|
Blade.prototype.setTitle = function (watchExpression, func) {
|
|
441
444
|
var _this = this;
|
|
@@ -461,11 +464,13 @@ var angularportalazure;
|
|
|
461
464
|
}(angularportalazure.UserControlBase));
|
|
462
465
|
angularportalazure.Blade = Blade;
|
|
463
466
|
})(angularportalazure || (angularportalazure = {}));
|
|
467
|
+
// #region Declarations
|
|
464
468
|
/// <reference types="angular" />
|
|
465
469
|
/// <reference path="blade.ts" />
|
|
466
470
|
/// <reference path="usercontrolbase.ts" />
|
|
467
471
|
/// <reference path="portalservice.ts" />
|
|
468
472
|
/// <reference path="iaddbladeeventargs.ts" />
|
|
473
|
+
// #endregion
|
|
469
474
|
var angularportalazure;
|
|
470
475
|
(function (angularportalazure) {
|
|
471
476
|
var AreaBlades = (function (_super) {
|
|
@@ -473,7 +478,6 @@ var angularportalazure;
|
|
|
473
478
|
function AreaBlades($scope, portalService) {
|
|
474
479
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
475
480
|
_this.blades = new Array();
|
|
476
|
-
// this.areaBlades = this.portalService.$window.document.getElementById('apa-blade-area');
|
|
477
481
|
_this.portalScroll = _this.portalService.$window.document.getElementById('apa-portal-scroll');
|
|
478
482
|
_this.setupAddBladeListener();
|
|
479
483
|
_this.setupShowHideNotificationAreaListener();
|
|
@@ -698,9 +702,11 @@ var angularportalazure;
|
|
|
698
702
|
}(angularportalazure.Blade));
|
|
699
703
|
angularportalazure.BladeData = BladeData;
|
|
700
704
|
})(angularportalazure || (angularportalazure = {}));
|
|
705
|
+
// #region Declarations
|
|
701
706
|
/// <reference path="bladedata.ts" />
|
|
702
707
|
/// <reference path="bladenavitem.ts" />
|
|
703
708
|
/// <reference path="portalservice.ts" />
|
|
709
|
+
// #endregion
|
|
704
710
|
var angularportalazure;
|
|
705
711
|
(function (angularportalazure) {
|
|
706
712
|
var BladeNav = (function (_super) {
|
|
@@ -730,7 +736,9 @@ var angularportalazure;
|
|
|
730
736
|
}(angularportalazure.BladeData));
|
|
731
737
|
angularportalazure.BladeNav = BladeNav;
|
|
732
738
|
})(angularportalazure || (angularportalazure = {}));
|
|
739
|
+
// #region Declarations
|
|
733
740
|
/// <reference path="bladenav.ts" />
|
|
741
|
+
// #endregion
|
|
734
742
|
var angularportalazure;
|
|
735
743
|
(function (angularportalazure) {
|
|
736
744
|
var BladeNavItem = (function () {
|
|
@@ -765,6 +773,7 @@ var angularportalazure;
|
|
|
765
773
|
angularportalazure.BladeNavItem = BladeNavItem;
|
|
766
774
|
})(angularportalazure || (angularportalazure = {}));
|
|
767
775
|
// #region Declarations
|
|
776
|
+
/// <reference path="blade.ts" />
|
|
768
777
|
/// <reference path="bladedata.ts" />
|
|
769
778
|
/// <reference path="bladenavitem.ts" />
|
|
770
779
|
/// <reference path="portalservice.ts" />
|
|
@@ -858,9 +867,12 @@ var angularportalazure;
|
|
|
858
867
|
}(angularportalazure.UserControlBase));
|
|
859
868
|
angularportalazure.AreaNotification = AreaNotification;
|
|
860
869
|
})(angularportalazure || (angularportalazure = {}));
|
|
870
|
+
// #region Declarations
|
|
871
|
+
/// <reference path="blade.ts" />
|
|
861
872
|
/// <reference path="portalservice.ts" />
|
|
862
873
|
/// <reference path="useraccount.ts" />
|
|
863
874
|
/// <reference path="usercontrolbase.ts" />
|
|
875
|
+
// #endregion
|
|
864
876
|
var angularportalazure;
|
|
865
877
|
(function (angularportalazure) {
|
|
866
878
|
var AvatarMenu = (function (_super) {
|
|
@@ -884,7 +896,9 @@ var angularportalazure;
|
|
|
884
896
|
TileSizes[TileSizes["herowide"] = 3] = "herowide";
|
|
885
897
|
})(TileSizes = angularportalazure.TileSizes || (angularportalazure.TileSizes = {}));
|
|
886
898
|
})(angularportalazure || (angularportalazure = {}));
|
|
899
|
+
// #region Declarations
|
|
887
900
|
/// <reference path="tilesizes.ts" />
|
|
901
|
+
// #endregion
|
|
888
902
|
var angularportalazure;
|
|
889
903
|
(function (angularportalazure) {
|
|
890
904
|
var TileSize = (function () {
|
|
@@ -908,9 +922,11 @@ var angularportalazure;
|
|
|
908
922
|
}());
|
|
909
923
|
angularportalazure.TileSize = TileSize;
|
|
910
924
|
})(angularportalazure || (angularportalazure = {}));
|
|
925
|
+
// #region Declarations
|
|
911
926
|
/// <reference path="blade.ts" />
|
|
912
927
|
/// <reference path="portalservice.ts" />
|
|
913
928
|
/// <reference path="tilesize.ts" />
|
|
929
|
+
// #endregion
|
|
914
930
|
var angularportalazure;
|
|
915
931
|
(function (angularportalazure) {
|
|
916
932
|
var Tile = (function () {
|
|
@@ -942,9 +958,11 @@ var angularportalazure;
|
|
|
942
958
|
}());
|
|
943
959
|
angularportalazure.Tile = Tile;
|
|
944
960
|
})(angularportalazure || (angularportalazure = {}));
|
|
961
|
+
// #region Declarations
|
|
945
962
|
/// <reference path="tile.ts" />
|
|
946
963
|
/// <reference path="tilesize.ts" />
|
|
947
964
|
/// <reference path="tilesizes.ts" />
|
|
965
|
+
// #endregion
|
|
948
966
|
var angularportalazure;
|
|
949
967
|
(function (angularportalazure) {
|
|
950
968
|
var Tiles = (function () {
|
|
@@ -984,9 +1002,11 @@ var angularportalazure;
|
|
|
984
1002
|
}());
|
|
985
1003
|
angularportalazure.Tiles = Tiles;
|
|
986
1004
|
})(angularportalazure || (angularportalazure = {}));
|
|
1005
|
+
// #region Declarations
|
|
987
1006
|
/// <reference path="portalservice.ts" />
|
|
988
1007
|
/// <reference path="tiles.ts" />
|
|
989
1008
|
/// <reference path="usercontrolbase.ts" />
|
|
1009
|
+
// #endregion
|
|
990
1010
|
var angularportalazure;
|
|
991
1011
|
(function (angularportalazure) {
|
|
992
1012
|
var Startboard = (function (_super) {
|
|
@@ -1001,10 +1021,12 @@ var angularportalazure;
|
|
|
1001
1021
|
}(angularportalazure.UserControlBase));
|
|
1002
1022
|
angularportalazure.Startboard = Startboard;
|
|
1003
1023
|
})(angularportalazure || (angularportalazure = {}));
|
|
1024
|
+
// #region Declarations
|
|
1004
1025
|
/// <reference path="avatarmenu.ts" />
|
|
1005
1026
|
/// <reference path="startboard.ts" />
|
|
1006
1027
|
/// <reference path="portalservice.ts" />
|
|
1007
1028
|
/// <reference path="usercontrolbase.ts" />
|
|
1029
|
+
// #endregion
|
|
1008
1030
|
var angularportalazure;
|
|
1009
1031
|
(function (angularportalazure) {
|
|
1010
1032
|
var Panorama = (function (_super) {
|
|
@@ -1024,11 +1046,13 @@ var angularportalazure;
|
|
|
1024
1046
|
}(angularportalazure.UserControlBase));
|
|
1025
1047
|
angularportalazure.Panorama = Panorama;
|
|
1026
1048
|
})(angularportalazure || (angularportalazure = {}));
|
|
1049
|
+
// #region Declarations
|
|
1027
1050
|
/// <reference path="areablades.ts" />
|
|
1028
1051
|
/// <reference path="usercontrolbase.ts" />
|
|
1029
1052
|
/// <reference path="panorama.ts" />
|
|
1030
1053
|
/// <reference path="portalservice.ts" />
|
|
1031
1054
|
/// <reference path="tiles.ts" />
|
|
1055
|
+
// #endregion
|
|
1032
1056
|
var angularportalazure;
|
|
1033
1057
|
(function (angularportalazure) {
|
|
1034
1058
|
var PortalShell = (function () {
|
|
@@ -1049,13 +1073,16 @@ var angularportalazure;
|
|
|
1049
1073
|
}());
|
|
1050
1074
|
angularportalazure.PortalShell = PortalShell;
|
|
1051
1075
|
})(angularportalazure || (angularportalazure = {}));
|
|
1076
|
+
// #region Declarations
|
|
1052
1077
|
/// <reference types="angular" />
|
|
1078
|
+
/// <reference types="angulartics" />
|
|
1053
1079
|
/// <reference path="areanotification.ts" />
|
|
1054
1080
|
/// <reference path="areablades.ts" />
|
|
1081
|
+
/// <reference path="blade.ts" />
|
|
1055
1082
|
/// <reference path="bladeparameter.ts" />
|
|
1056
1083
|
/// <reference path="panorama.ts" />
|
|
1057
1084
|
/// <reference path="portalshell.ts" />
|
|
1058
|
-
|
|
1085
|
+
// #endregion
|
|
1059
1086
|
var angularportalazure;
|
|
1060
1087
|
(function (angularportalazure) {
|
|
1061
1088
|
var PortalService = (function () {
|
|
@@ -1144,8 +1171,10 @@ var angularportalazure;
|
|
|
1144
1171
|
};
|
|
1145
1172
|
angular.module('angularportalazure').component('angularPortalNav', angularPortalNav);
|
|
1146
1173
|
})(angularportalazure || (angularportalazure = {}));
|
|
1174
|
+
// #region Declarations
|
|
1147
1175
|
/// <reference path="bladedata.ts" />
|
|
1148
1176
|
/// <reference path="portalservice.ts" />
|
|
1177
|
+
// #endregion
|
|
1149
1178
|
var angularportalazure;
|
|
1150
1179
|
(function (angularportalazure) {
|
|
1151
1180
|
var BladeDetail = (function (_super) {
|
|
@@ -1172,8 +1201,8 @@ var angularportalazure;
|
|
|
1172
1201
|
func().then(function (data) {
|
|
1173
1202
|
_this.item = data;
|
|
1174
1203
|
_this.onLoadedItem();
|
|
1175
|
-
}).catch(function (
|
|
1176
|
-
_this.setStatusBarException(
|
|
1204
|
+
}).catch(function (ex) {
|
|
1205
|
+
_this.setStatusBarException(ex);
|
|
1177
1206
|
});
|
|
1178
1207
|
};
|
|
1179
1208
|
/**
|
|
@@ -1198,7 +1227,7 @@ var angularportalazure;
|
|
|
1198
1227
|
if (ngForm === void 0) { ngForm = undefined; }
|
|
1199
1228
|
this.setStatusBarSaveData();
|
|
1200
1229
|
this.onSaveItem();
|
|
1201
|
-
|
|
1230
|
+
// #region form valid?
|
|
1202
1231
|
// angularjs: if form valid
|
|
1203
1232
|
if (!this.formblade.$valid) {
|
|
1204
1233
|
this.statusBar = 'Speichern nicht möglich! [Console] enthält weitere Informationen.';
|
|
@@ -1212,7 +1241,7 @@ var angularportalazure;
|
|
|
1212
1241
|
return;
|
|
1213
1242
|
}
|
|
1214
1243
|
}
|
|
1215
|
-
|
|
1244
|
+
// #endregion
|
|
1216
1245
|
this.isCommandSaveEnabled = false;
|
|
1217
1246
|
return func().then(function (data) {
|
|
1218
1247
|
_this.clearStatusBar();
|
|
@@ -1243,7 +1272,7 @@ var angularportalazure;
|
|
|
1243
1272
|
if (ngForm === void 0) { ngForm = undefined; }
|
|
1244
1273
|
this.setStatusBarSaveData();
|
|
1245
1274
|
this.onSaveItem();
|
|
1246
|
-
|
|
1275
|
+
// #region form valid?
|
|
1247
1276
|
// angularjs: if form valid
|
|
1248
1277
|
if (!this.formblade.$valid) {
|
|
1249
1278
|
this.statusBar = 'Speichern nicht möglich! [Console] enthält weitere Informationen.';
|
|
@@ -1257,7 +1286,7 @@ var angularportalazure;
|
|
|
1257
1286
|
return;
|
|
1258
1287
|
}
|
|
1259
1288
|
}
|
|
1260
|
-
|
|
1289
|
+
// #endregion
|
|
1261
1290
|
return func().then(function (data) {
|
|
1262
1291
|
_this.clearStatusBar();
|
|
1263
1292
|
_this.onSavedItem();
|
|
@@ -1279,8 +1308,10 @@ var angularportalazure;
|
|
|
1279
1308
|
}(angularportalazure.BladeData));
|
|
1280
1309
|
angularportalazure.BladeDetail = BladeDetail;
|
|
1281
1310
|
})(angularportalazure || (angularportalazure = {}));
|
|
1311
|
+
// #region Declarations
|
|
1282
1312
|
/// <reference path="bladedata.ts" />
|
|
1283
1313
|
/// <reference path="portalservice.ts" />
|
|
1314
|
+
// #endregion
|
|
1284
1315
|
var angularportalazure;
|
|
1285
1316
|
(function (angularportalazure) {
|
|
1286
1317
|
var BladeGrid = (function (_super) {
|
|
@@ -1524,7 +1555,9 @@ var angularportalazure;
|
|
|
1524
1555
|
}(ExceptionDotNet));
|
|
1525
1556
|
angularportalazure.ValidationsExceptionDotNet = ValidationsExceptionDotNet;
|
|
1526
1557
|
})(angularportalazure || (angularportalazure = {}));
|
|
1558
|
+
// #region Declarations
|
|
1527
1559
|
/// <reference path="exceptiondotnet.ts" />
|
|
1560
|
+
// #endregion
|
|
1528
1561
|
var angularportalazure;
|
|
1529
1562
|
(function (angularportalazure) {
|
|
1530
1563
|
var Exception = (function (_super) {
|
|
@@ -1569,11 +1602,11 @@ var angularportalazure;
|
|
|
1569
1602
|
var exception = new angularportalazure.Exception();
|
|
1570
1603
|
if (response.headers === undefined) {
|
|
1571
1604
|
console.log('> Get information from [processDotNetException1.data].');
|
|
1572
|
-
exception = Exception.processDotNetException1(response);
|
|
1605
|
+
exception = angularportalazure.Exception.processDotNetException1(response);
|
|
1573
1606
|
}
|
|
1574
1607
|
else {
|
|
1575
1608
|
console.log('> Get information from [processDotNetException2.json()].');
|
|
1576
|
-
exception = Exception.processDotNetException2(response);
|
|
1609
|
+
exception = angularportalazure.Exception.processDotNetException2(response);
|
|
1577
1610
|
}
|
|
1578
1611
|
exception.convertResponse(response);
|
|
1579
1612
|
exception.Url = response.url;
|
|
@@ -1613,23 +1646,17 @@ var angularportalazure;
|
|
|
1613
1646
|
}(angularportalazure.ValidationsExceptionDotNet));
|
|
1614
1647
|
angularportalazure.Exception = Exception;
|
|
1615
1648
|
})(angularportalazure || (angularportalazure = {}));
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
//.catch((response: angular.IHttpResponseTransformer) => { });
|
|
1631
|
-
};
|
|
1632
|
-
return DataService;
|
|
1633
|
-
}());
|
|
1634
|
-
angularportalazure.DataService = DataService;
|
|
1635
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
1649
|
+
///// <reference types="angular" />
|
|
1650
|
+
//namespace angularportalazure {
|
|
1651
|
+
// export class DataService {
|
|
1652
|
+
// // #region Constructor
|
|
1653
|
+
// constructor(public $http: angular.IHttpService, public $q: angular.IQService) {
|
|
1654
|
+
// }
|
|
1655
|
+
// // #endregion
|
|
1656
|
+
// // #region Methods
|
|
1657
|
+
// getData(url: string): angular.IPromise<any> {
|
|
1658
|
+
// return this.$http({ method: 'GET', url: url });
|
|
1659
|
+
// }
|
|
1660
|
+
// // #endregion
|
|
1661
|
+
// }
|
|
1662
|
+
//}
|
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.292",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|