@ardimedia/angular-portal-azure 0.2.70 → 0.2.72

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 -3
  2. package/apn.js +7 -15
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -176,7 +176,7 @@ declare namespace angularportalazure {
176
176
  }
177
177
  }
178
178
  declare namespace angularportalazure {
179
- interface IBladeParameter {
179
+ interface BladeParameter {
180
180
  action: string;
181
181
  item?: any;
182
182
  itemId: number;
@@ -273,7 +273,7 @@ declare namespace angularportalazure {
273
273
  class PortalService {
274
274
  static $inject: string[];
275
275
  constructor($injector: any);
276
- parameter: angularportalazure.IBladeParameter;
276
+ parameter: angularportalazure.BladeParameter;
277
277
  $analytics: angulartics.IAnalyticsService;
278
278
  animate: any;
279
279
  animation: any;
@@ -357,9 +357,9 @@ declare namespace angularportalazure {
357
357
  }
358
358
  declare namespace angularportalazure {
359
359
  class BladeNav extends angularportalazure.BladeData {
360
+ constructor(portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
360
361
  items: Array<angularportalazure.BladeNavItem>;
361
362
  isNav: boolean;
362
- constructor(portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
363
363
  }
364
364
  }
365
365
  declare namespace angularportalazure {
package/apn.js CHANGED
@@ -274,18 +274,12 @@ var angularportalazure;
274
274
  }
275
275
  /** OBSOLETE: end */
276
276
  // Register listener1
277
- console.log('listener1');
278
277
  _this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
279
- angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' BladeArea.AddBlade event processing.', [this, event, args]);
280
278
  if (that.blade.comparePaths(args.path, that.blade.path)) {
281
- console.log('activate');
279
+ console.log('function call: that.activate() will probably not work since this/that is not pointing to the right object.');
282
280
  that.activate();
283
281
  }
284
282
  });
285
- console.log('1');
286
- that.activate();
287
- console.log('2');
288
- (function () { return that.activate(); });
289
283
  return _this;
290
284
  //#endregion
291
285
  }
@@ -313,7 +307,8 @@ var angularportalazure;
313
307
  this.onActivate();
314
308
  };
315
309
  Blade.prototype.onActivate = function () {
316
- angularportalazure.Debug.write('[angularportalazure-debug] \'Blade.onActivate\' not overriden. You could override this.', [this]);
310
+ //throw new Error('[angularportalazure.Blade] \'onActivate\' is an abstract function. Define one in the derived class.');
311
+ console.log('function call: Blade.onActivate() - we should override this, but does it work?');
317
312
  };
318
313
  Blade.prototype.navigateTo = function (path) {
319
314
  angularportalazure.Debug.write('[angularportalazure-debug] \'Blade.navigateTo\' called. You should not override this, use onNavigateTo instead.', [this, path]);
@@ -904,7 +899,7 @@ var angularportalazure;
904
899
  /// <reference types="angulartics" />
905
900
  /// <reference path="bladearea.ts" />
906
901
  /// <reference path="debug.ts" />
907
- /// <reference path="ibladeparameter.ts" />
902
+ /// <reference path="bladeparameter.ts" />
908
903
  /// <reference path="panorama.ts" />
909
904
  /// <reference path="portalshell.ts" />
910
905
  var angularportalazure;
@@ -1148,9 +1143,7 @@ var angularportalazure;
1148
1143
  function BladeData(portalService, path, title, subtitle, width) {
1149
1144
  if (subtitle === void 0) { subtitle = ''; }
1150
1145
  if (width === void 0) { width = 300; }
1151
- var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
1152
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeData\' constructor called.', [_this, portalService, path, title, subtitle, width]);
1153
- return _this;
1146
+ return _super.call(this, portalService, path, title, subtitle, width) || this;
1154
1147
  }
1155
1148
  return BladeData;
1156
1149
  }(angularportalazure.Blade));
@@ -1429,19 +1422,18 @@ var angularportalazure;
1429
1422
  (function (angularportalazure) {
1430
1423
  var BladeNav = (function (_super) {
1431
1424
  __extends(BladeNav, _super);
1432
- //#endregion
1433
1425
  //#region Constructor
1434
1426
  function BladeNav(portalService, path, title, subtitle, width) {
1435
1427
  if (title === void 0) { title = ''; }
1436
1428
  if (subtitle === void 0) { subtitle = ''; }
1437
1429
  if (width === void 0) { width = 200; }
1438
1430
  var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
1431
+ //#endregion
1439
1432
  //#region Properties
1440
1433
  _this.items = new Array();
1441
1434
  _this.isNav = true;
1442
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeNav\' constructor called.', [_this, portalService, path, title, subtitle, width]);
1443
- _super.prototype.navigateTo = _this.navigateTo;
1444
1435
  return _this;
1436
+ //super.navigateTo = this.navigateTo;
1445
1437
  }
1446
1438
  return BladeNav;
1447
1439
  }(angularportalazure.BladeData));
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.70",
5
+ "version": "0.2.72",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {