@ardimedia/angular-portal-azure 0.2.185 → 0.2.187

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 -2
  2. package/apn.js +6 -3
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -349,9 +349,10 @@ declare namespace angularportalazure {
349
349
  }
350
350
  declare namespace angularportalazure {
351
351
  class BladeDetail<T> extends angularportalazure.BladeData {
352
- item: T | null;
353
352
  constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
354
- loadItem(func: () => any): void;
353
+ item: T;
354
+ visibility: string;
355
+ loadItem(func: () => angular.IPromise<any>): void;
355
356
  onLoadItem(): void;
356
357
  onLoadedItem(): void;
357
358
  saveItem(func: () => any): void;
package/apn.js CHANGED
@@ -1071,14 +1071,15 @@ var angularportalazure;
1071
1071
  (function (angularportalazure) {
1072
1072
  var BladeDetail = (function (_super) {
1073
1073
  __extends(BladeDetail, _super);
1074
- //#endregion
1075
1074
  //#region Constructor
1076
1075
  function BladeDetail($scope, portalService, path, title, subtitle, width) {
1077
1076
  if (subtitle === void 0) { subtitle = ''; }
1078
1077
  if (width === void 0) { width = 200; }
1079
1078
  var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
1079
+ //#endregion
1080
1080
  //#region Properties
1081
- _this.item = null;
1081
+ _this.item = {};
1082
+ _this.visibility = 'collapse';
1082
1083
  _this.commandNewText = 'neu';
1083
1084
  _this.commandSaveText = 'speichern';
1084
1085
  _this.commandDeleteText = 'löschen';
@@ -1092,16 +1093,18 @@ var angularportalazure;
1092
1093
  this.onLoadItem();
1093
1094
  func().then(function (data) {
1094
1095
  _this.item = data;
1095
- _this.clearStatusBar();
1096
1096
  _this.onLoadedItem();
1097
1097
  }).catch(function (exception) {
1098
1098
  _this.setStatusBarException(exception);
1099
1099
  });
1100
1100
  };
1101
1101
  BladeDetail.prototype.onLoadItem = function () {
1102
+ this.visibility = 'collapse';
1102
1103
  this.setStatusBarLoadData();
1103
1104
  };
1104
1105
  BladeDetail.prototype.onLoadedItem = function () {
1106
+ this.visibility = 'visible';
1107
+ this.clearStatusBar();
1105
1108
  };
1106
1109
  BladeDetail.prototype.saveItem = function (func) {
1107
1110
  var _this = this;
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.185",
5
+ "version": "0.2.187",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {