@ardimedia/angular-portal-azure 0.2.159 → 0.2.161

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 +2 -1
  2. package/apn.js +11 -15
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -117,7 +117,8 @@ declare namespace angularportalazure {
117
117
  onActivate(): void;
118
118
  onActivated(): void;
119
119
  navigateTo(path: any): void;
120
- onNavigateTo(path: any): void;
120
+ /** Must be overridden. */
121
+ onNavigateTo(value: any): void;
121
122
  comparePaths(path1: string, path2: string): boolean;
122
123
  /** close blade. */
123
124
  close(): void;
package/apn.js CHANGED
@@ -267,7 +267,8 @@ var angularportalazure;
267
267
  Blade.prototype.navigateTo = function (path) {
268
268
  this.onNavigateTo(path);
269
269
  };
270
- Blade.prototype.onNavigateTo = function (path) {
270
+ /** Must be overridden. */
271
+ Blade.prototype.onNavigateTo = function (value) {
271
272
  throw new Error('[angularportalazure.Blade] \'onNavigateTo\' is an abstract function. Define one in the derived class.');
272
273
  };
273
274
  // At the moment we do not distinguish between lower and upper case path name
@@ -387,14 +388,10 @@ var angularportalazure;
387
388
  }
388
389
  };
389
390
  Blade.prototype.setBladeHeights = function () {
390
- var _this = this;
391
- this.portalService.$timeout(function () {
392
- console.log(_this.portalService);
393
- console.log(_this.portalService.$window);
394
- console.log(_this.portalService.$window.innerHeight);
395
- _this.bladeContentHeight = _this.portalService.$window.innerHeight - 125; // 125 = header
396
- _this.bladeContentHeightInner = _this.bladeContentHeight - 50 - 3; // 50 = padding (top and bottom), somehow we miss 3px
397
- }, 50);
391
+ this.bladeContentHeight = this.portalService.$window.innerHeight - 125; // 125 = header
392
+ this.bladeContentHeightInner = this.bladeContentHeight - 50 - 3; // 50 = padding (top and bottom), somehow we miss 3px
393
+ //this.portalService.$timeout(() => {
394
+ //}, 50);
398
395
  };
399
396
  return Blade;
400
397
  }(angularportalazure.UserControlBase));
@@ -1133,19 +1130,18 @@ var angularportalazure;
1133
1130
  //#endregion
1134
1131
  //#region Properties
1135
1132
  _this.items = [];
1136
- _this.commandNewText = 'neu';
1137
1133
  return _this;
1138
1134
  }
1139
1135
  //#endregion
1140
1136
  //#region Methods
1141
1137
  BladeGrid.prototype.loadItems = function (func) {
1142
- var that = this;
1143
- that.onLoadItems();
1138
+ var _this = this;
1139
+ this.onLoadItems();
1144
1140
  func().then(function (data) {
1145
- that.items = data;
1146
- that.onLoadedItems();
1141
+ _this.items = data;
1142
+ _this.onLoadedItems();
1147
1143
  }).catch(function (exception) {
1148
- that.setStatusBarException(exception);
1144
+ _this.setStatusBarException(exception);
1149
1145
  });
1150
1146
  };
1151
1147
  BladeGrid.prototype.onLoadItems = function () {
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.159",
5
+ "version": "0.2.161",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {