@ardimedia/angular-portal-azure 0.2.156 → 0.2.158

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 +5 -0
  2. package/apn.js +12 -6
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -36,6 +36,11 @@ declare var $: JQueryStatic;
36
36
  declare namespace angularportalazure {
37
37
  class Blade extends angularportalazure.UserControlBase {
38
38
  constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
39
+ /** HACK: 2016-11-06/hp
40
+ [angular-portal-blade] needs [this] as the controller.
41
+ We don't know how to provide [this] to the directive.
42
+ So we came up with this [vm] property.*/
43
+ vm: any;
39
44
  private watcherTitle;
40
45
  bladeContentHeight: number;
41
46
  bladeContentHeightInner: number;
package/apn.js CHANGED
@@ -134,6 +134,13 @@ var angularportalazure;
134
134
  if (subtitle === void 0) { subtitle = ''; }
135
135
  if (width === void 0) { width = 200; }
136
136
  var _this = _super.call(this, $scope, portalService) || this;
137
+ //#endregion
138
+ //#region Properties
139
+ /** HACK: 2016-11-06/hp
140
+ [angular-portal-blade] needs [this] as the controller.
141
+ We don't know how to provide [this] to the directive.
142
+ So we came up with this [vm] property.*/
143
+ _this.vm = {};
137
144
  _this.title = '';
138
145
  _this.subTitle = '';
139
146
  _this.width = { 'width': '0' };
@@ -198,7 +205,7 @@ var angularportalazure;
198
205
  _this.isCommandExcel = false;
199
206
  _this.commandExcel = function () { this.onCommandExcel(); };
200
207
  _this.commandExcelText = '';
201
- var that = _this;
208
+ _this.vm = _this;
202
209
  _this.path = path;
203
210
  _this.title = title;
204
211
  _this.subTitle = subtitle;
@@ -303,19 +310,18 @@ var angularportalazure;
303
310
  this.statusBarClass = '';
304
311
  };
305
312
  Blade.prototype.setStatusBarException = function (exception) {
306
- var that = this;
307
313
  if (exception.Message === undefined) {
308
- that.statusBar = 'FEHLER: ' + exception;
314
+ this.statusBar = 'FEHLER: ' + exception;
309
315
  }
310
316
  else {
311
- that.statusBar = 'FEHLER: ' + exception.Message;
317
+ this.statusBar = 'FEHLER: ' + exception.Message;
312
318
  }
313
319
  if (exception.Messages !== undefined) {
314
320
  exception.Messages.forEach(function (item) {
315
- that.statusBar += ' - ' + item;
321
+ this.statusBar += ' - ' + item;
316
322
  });
317
323
  }
318
- that.statusBarClass = 'message-error message-off';
324
+ this.statusBarClass = 'message-error message-off';
319
325
  };
320
326
  //#endregion
321
327
  //#endregion
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.156",
5
+ "version": "0.2.158",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {