@ardimedia/angular-portal-azure 0.2.290 → 0.2.291

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.
Files changed (3) hide show
  1. package/apn.d.ts +3 -11
  2. package/apn.js +16 -22
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -375,7 +375,7 @@ declare namespace angularportalazure {
375
375
  class BladeDetail<T> extends angularportalazure.BladeData {
376
376
  constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
377
377
  item: T;
378
- loadItem(func: () => Promise<any>): void;
378
+ loadItem(func: () => Promise<any | angularportalazure.Exception>): void;
379
379
  /**
380
380
  * Default behavior for saving an entity.
381
381
  * - call this.setStatusBarSaveData();
@@ -393,7 +393,7 @@ declare namespace angularportalazure {
393
393
  * - set this.isCommandSaveEnabled = true
394
394
  * - call this.setStatusBarException
395
395
  */
396
- saveItem(func: () => (Promise<T> | angular.IPromise<T>), ngForm?: any): (Promise<void | T> | angular.IPromise<void | T>);
396
+ saveItem(func: () => Promise<T | angularportalazure.Exception> | angular.IPromise<T | angularportalazure.Exception>, ngForm?: any): (Promise<T | void> | angular.IPromise<T | void>);
397
397
  /**
398
398
  * Default behavior for saving any object.
399
399
  * - call this.setStatusBarSaveData();
@@ -407,7 +407,7 @@ declare namespace angularportalazure {
407
407
  * CATCH
408
408
  * - call this.setStatusBarException
409
409
  */
410
- saveObject(func: () => (Promise<any> | angular.IPromise<any>), ngForm?: any): (Promise<void | any> | angular.IPromise<void | any>);
410
+ saveObject(func: () => Promise<any | angularportalazure.Exception> | angular.IPromise<any | angularportalazure.Exception>, ngForm?: any): (Promise<any | void> | angular.IPromise<any | void>);
411
411
  /** Extension point */
412
412
  onSaveItem(): void;
413
413
  /** Extension point */
@@ -476,11 +476,3 @@ declare namespace angularportalazure {
476
476
  private static processDotNetException2(response);
477
477
  }
478
478
  }
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
@@ -1172,8 +1172,8 @@ var angularportalazure;
1172
1172
  func().then(function (data) {
1173
1173
  _this.item = data;
1174
1174
  _this.onLoadedItem();
1175
- }).catch(function (exception) {
1176
- _this.setStatusBarException(exception);
1175
+ }).catch(function (ex) {
1176
+ _this.setStatusBarException(ex);
1177
1177
  });
1178
1178
  };
1179
1179
  /**
@@ -1613,23 +1613,17 @@ var angularportalazure;
1613
1613
  }(angularportalazure.ValidationsExceptionDotNet));
1614
1614
  angularportalazure.Exception = Exception;
1615
1615
  })(angularportalazure || (angularportalazure = {}));
1616
- /// <reference types="angular" />
1617
- var angularportalazure;
1618
- (function (angularportalazure) {
1619
- var DataService = (function () {
1620
- // #region Constructor
1621
- function DataService($http, $q) {
1622
- this.$http = $http;
1623
- this.$q = $q;
1624
- }
1625
- // #endregion
1626
- // #region Methods
1627
- DataService.prototype.getData = function (url) {
1628
- return this.$http({ method: 'GET', url: url });
1629
- //.then((response: angular.IHttpResponseTransformer) => { })
1630
- //.catch((response: angular.IHttpResponseTransformer) => { });
1631
- };
1632
- return DataService;
1633
- }());
1634
- angularportalazure.DataService = DataService;
1635
- })(angularportalazure || (angularportalazure = {}));
1616
+ ///// <reference types="angular" />
1617
+ //namespace angularportalazure {
1618
+ // export class DataService {
1619
+ // // #region Constructor
1620
+ // constructor(public $http: angular.IHttpService, public $q: angular.IQService) {
1621
+ // }
1622
+ // // #endregion
1623
+ // // #region Methods
1624
+ // getData(url: string): angular.IPromise<any> {
1625
+ // return this.$http({ method: 'GET', url: url });
1626
+ // }
1627
+ // // #endregion
1628
+ // }
1629
+ //}
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.290",
5
+ "version": "0.2.291",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {