@ardimedia/angular-portal-azure 0.2.107 → 0.2.109

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 -2
  2. package/apn.js +15 -14
  3. package/package.json +4 -1
package/apn.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /// <reference types="angulartics" />
2
2
  /// <reference types="angular" />
3
3
  /// <reference types="angular-resource" />
4
+ /// <reference types="angular-translate" />
4
5
  declare namespace angularportalazure {
5
6
  }
6
7
  declare namespace angularportalazure {
@@ -46,7 +47,6 @@ declare namespace angularportalazure {
46
47
  declare namespace angularportalazure {
47
48
  class Blade extends angularportalazure.UserControlBase {
48
49
  constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
49
- listener1: Function;
50
50
  path: string;
51
51
  private _path;
52
52
  title: string;
@@ -159,7 +159,6 @@ declare namespace angularportalazure {
159
159
  blades: Array<angularportalazure.Blade>;
160
160
  raiseAddBladeEvent(args: angularportalazure.IAddBladeEventArgs): void;
161
161
  setFirstBlade(path: string): angularportalazure.Blade;
162
- /** obsolete */
163
162
  addBlade(path: string, senderPath?: string): angularportalazure.Blade;
164
163
  clearAll(): void;
165
164
  clearPath(path: string): void;
@@ -301,6 +300,7 @@ declare namespace angularportalazure {
301
300
  $rootScope: angular.IRootScopeService;
302
301
  $window: angular.IWindowService;
303
302
  $scope: angular.IScope;
303
+ $translate: angular.translate.ITranslateService;
304
304
  }
305
305
  }
306
306
  declare namespace angularportalazure {
package/apn.js CHANGED
@@ -270,24 +270,27 @@ var angularportalazure;
270
270
  return _this;
271
271
  }
272
272
  /** OBSOLETE: end */
273
- // Register listener1
274
- _this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
275
- if (that.comparePaths(args.path, that.path)) {
276
- console.log('listener1-BladeArea.AddBlade - function call: that.activate() will probably not work since this/that is not pointing to the right object. - deactivated');
277
- }
278
- });
273
+ //// Register listener1
274
+ //this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args: angularportalazure.IAddBladeEventArgs) {
275
+ // if (that.comparePaths(args.path, that.path)) {
276
+ // console.log('listener1-BladeArea.AddBlade - function call: that.activate() will probably not work since this/that is not pointing to the right object. - deactivated');
277
+ // //that.activate();
278
+ // }
279
+ //});
279
280
  //#endregion
281
+ // Set this object to be the one, which was generated during AddBlade
280
282
  _this.portalService.bladeArea.blades.forEach(function (blade, index) {
281
283
  if (blade.path === _this.path) {
282
- console.log(blade.onActivate);
283
- console.log(_this.portalService.bladeArea.blades[index].onActivate);
284
284
  _this.portalService.bladeArea.blades[index] = _this;
285
- console.log(_this.portalService.bladeArea.blades[index].onActivate);
286
285
  }
287
286
  });
288
287
  return _this;
289
288
  }
290
289
  Object.defineProperty(Blade.prototype, "path", {
290
+ //#endregion
291
+ //#region Properties
292
+ //#region Properties
293
+ //listener1: Function;
291
294
  //#region path
292
295
  get: function () {
293
296
  return this._path;
@@ -338,7 +341,7 @@ var angularportalazure;
338
341
  };
339
342
  /** close blade. */
340
343
  Blade.prototype.close = function () {
341
- this.listener1(); // Unregister listener1
344
+ //this.listener1(); // Unregister listener1
342
345
  if (this.portalService.bladeArea !== undefined) {
343
346
  this.portalService.bladeArea.clearPath(this.path);
344
347
  }
@@ -474,6 +477,7 @@ var angularportalazure;
474
477
  //#region Add BladeArea.AddBlade event listener
475
478
  /** OBSOLETE: remove when all OBSOLETE code has been removed */
476
479
  if (portalService instanceof angularportalazure.PortalService == false) {
480
+ console.log('BladeArea.constructor: This code cannot be removed yet.');
477
481
  return _this;
478
482
  }
479
483
  /** OBSOLETE: end */
@@ -490,9 +494,6 @@ var angularportalazure;
490
494
  var isActivated = false;
491
495
  this.blades.forEach(function (blade) {
492
496
  if (blade.path === args.path) {
493
- console.log('executing: blade.onActivate();');
494
- console.log(blade.activate);
495
- console.log(blade);
496
497
  blade.onActivate();
497
498
  isActivated = true;
498
499
  return;
@@ -508,7 +509,6 @@ var angularportalazure;
508
509
  this.hidePanorama();
509
510
  return this.addBlade(path);
510
511
  };
511
- /** obsolete */
512
512
  BladeArea.prototype.addBlade = function (path, senderPath) {
513
513
  if (senderPath === void 0) { senderPath = ''; }
514
514
  if (path == null) {
@@ -915,6 +915,7 @@ var angularportalazure;
915
915
  this.$rootScope = $injector.get('$rootScope');
916
916
  this.$window = $injector.get('$window');
917
917
  this.$analytics = $injector.get('$analytics');
918
+ this.$translate = $injector.get('$translate');
918
919
  this.ngDialog = $injector.get('ngDialog');
919
920
  this.ngDialog.openConfirm;
920
921
  }
package/package.json CHANGED
@@ -2,12 +2,14 @@
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.107",
5
+ "version": "0.2.109",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {
9
9
  "angular": "^1.6.0",
10
10
  "angular-resource": "^1.6.0",
11
+ "angular-translate": "^2.13.1",
12
+ "angular-translate-storage-cookie": "^2.13.1",
11
13
  "angulartics": "^1.3.0",
12
14
  "angulartics-google-analytics": "^0.4.0",
13
15
  "ng-dialog": "^0.6.4"
@@ -15,6 +17,7 @@
15
17
  "devDependencies": {
16
18
  "@types/angular": "^1.5.21",
17
19
  "@types/angular-resource": "^1.5.8",
20
+ "@types/angular-translate": "^2.4.34",
18
21
  "@types/angulartics": "^1.3.0",
19
22
  "@types/ng-dialog": "^0.6.0",
20
23
  "typescript": "^2.1.4"