@ardimedia/angular-portal-azure 0.2.55 → 0.2.57
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 +13 -17
- package/apn.js +16 -0
- package/package.json +3 -3
package/apn.d.ts
CHANGED
|
@@ -315,24 +315,10 @@ declare namespace angularportalazure {
|
|
|
315
315
|
}
|
|
316
316
|
declare namespace angularportalazure {
|
|
317
317
|
}
|
|
318
|
-
declare namespace angularportalazure {
|
|
319
|
-
/** If a Web API throws an exception, the following interface should be used to communicate the execption. */
|
|
320
|
-
interface IException {
|
|
321
|
-
ExceptionType: string;
|
|
322
|
-
ClassName: string;
|
|
323
|
-
Data: Object;
|
|
324
|
-
Type: string;
|
|
325
|
-
Messages?: string[];
|
|
326
|
-
Message: string;
|
|
327
|
-
MessageDetail: string;
|
|
328
|
-
Status: string;
|
|
329
|
-
StatusText: string;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
318
|
declare namespace angularportalazure {
|
|
333
319
|
class BladeData extends angularportalazure.Blade {
|
|
334
320
|
constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
335
|
-
processException(data: angularportalazure.
|
|
321
|
+
processException(data: angularportalazure.Exception): void;
|
|
336
322
|
}
|
|
337
323
|
}
|
|
338
324
|
declare namespace angularportalazure {
|
|
@@ -379,8 +365,18 @@ declare namespace angularportalazure {
|
|
|
379
365
|
}
|
|
380
366
|
declare namespace angularportalazure {
|
|
381
367
|
class Exception {
|
|
382
|
-
|
|
383
|
-
|
|
368
|
+
ExceptionType: string;
|
|
369
|
+
ClassName: string;
|
|
370
|
+
Data: Object;
|
|
371
|
+
Type: string;
|
|
372
|
+
Messages?: string[];
|
|
373
|
+
Message: string;
|
|
374
|
+
MessageDetail: string;
|
|
375
|
+
Status: number;
|
|
376
|
+
StatusText: string;
|
|
377
|
+
Url: string;
|
|
378
|
+
static convertFromWebApiException(ex: angularportalazure.Exception): void;
|
|
379
|
+
static onConvertFromWebApiException(ex: angularportalazure.Exception): void;
|
|
384
380
|
}
|
|
385
381
|
}
|
|
386
382
|
declare namespace angularportalazure {
|
package/apn.js
CHANGED
|
@@ -1105,6 +1105,21 @@ var angularportalazure;
|
|
|
1105
1105
|
}
|
|
1106
1106
|
angular.module('angularportalazure').directive('nav', ['$window', nav]);
|
|
1107
1107
|
})(angularportalazure || (angularportalazure = {}));
|
|
1108
|
+
//namespace angularportalazure {
|
|
1109
|
+
// /** If a Web API throws an exception, the following interface should be used to communicate the execption. */
|
|
1110
|
+
// export interface IException {
|
|
1111
|
+
// ExceptionType: string; // provided by the server
|
|
1112
|
+
// ClassName: string; // provided by the server - .NET exception class name
|
|
1113
|
+
// Data: Object; // provided by the server - object having trouble
|
|
1114
|
+
// Type: string; // provided by the server
|
|
1115
|
+
// Messages?: string[]; // provided by the server
|
|
1116
|
+
// Message: string; // provided by Web API or filled by the client if empty - .NET exception messages or user defined
|
|
1117
|
+
// MessageDetail: string; // Filled by the client - .NET exception detail message
|
|
1118
|
+
// Status: number; // Filled by the client - http error code
|
|
1119
|
+
// StatusText: string; // Filled by the client - http message
|
|
1120
|
+
// Url: string; // Filled by the client - http URL
|
|
1121
|
+
// }
|
|
1122
|
+
//}
|
|
1108
1123
|
/// <reference path="bladearea.ts" />
|
|
1109
1124
|
/// <reference path="debug.ts" />
|
|
1110
1125
|
/// <reference path="iexception.ts" />
|
|
@@ -1418,6 +1433,7 @@ var angularportalazure;
|
|
|
1418
1433
|
var Exception = (function () {
|
|
1419
1434
|
function Exception() {
|
|
1420
1435
|
}
|
|
1436
|
+
//#endregion
|
|
1421
1437
|
Exception.convertFromWebApiException = function (ex) {
|
|
1422
1438
|
//#region Process data to Messages
|
|
1423
1439
|
ex.Messages = [];
|
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.57",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"ng-dialog": "^0.6.4"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@types/angular": "^1.5.
|
|
16
|
+
"@types/angular": "^1.5.21",
|
|
17
17
|
"@types/angular-resource": "^1.5.8",
|
|
18
18
|
"@types/angulartics": "^1.3.0",
|
|
19
|
-
"@types/ng-dialog": "0.0
|
|
19
|
+
"@types/ng-dialog": "^0.6.0",
|
|
20
20
|
"typescript": "^2.1.4"
|
|
21
21
|
}
|
|
22
22
|
}
|