@ardimedia/angular-portal-azure 0.2.271 → 0.2.272

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 -0
  2. package/apn.js +25 -0
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -237,6 +237,9 @@ declare namespace angularportalazure {
237
237
  backgroundColor: string;
238
238
  hide(): void;
239
239
  show(width?: number): void;
240
+ onHide(): boolean;
241
+ onShow(): void;
242
+ onShowed(): void;
240
243
  private calcualteCssStyles();
241
244
  }
242
245
  }
package/apn.js CHANGED
@@ -133,6 +133,7 @@ var angularportalazure;
133
133
  }());
134
134
  angularportalazure.UserControlBase = UserControlBase;
135
135
  })(angularportalazure || (angularportalazure = {}));
136
+ // #region Declarations
136
137
  var __extends = (this && this.__extends) || (function () {
137
138
  var extendStatics = Object.setPrototypeOf ||
138
139
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -147,6 +148,7 @@ var __extends = (this && this.__extends) || (function () {
147
148
  /// <reference path="portalservice.ts" />
148
149
  /// <reference path="usercontrolbase.ts" />
149
150
  /// <reference path="iaddbladeeventargs.ts" />
151
+ // #endregion
150
152
  var angularportalazure;
151
153
  (function (angularportalazure) {
152
154
  var Blade = (function (_super) {
@@ -655,8 +657,12 @@ var angularportalazure;
655
657
  angularportalazure.AreaBlades = AreaBlades;
656
658
  angular.module('angularportalazure').service('angularportalazure.areaBlades', AreaBlades);
657
659
  })(angularportalazure || (angularportalazure = {}));
660
+ // #region Declarations
661
+ /// <reference path="blade.ts" />
658
662
  /// <reference path="areablades.ts" />
659
663
  /// <reference path="portalservice.ts" />
664
+ /// <reference path="usercontrolbase.ts" />
665
+ // #endregion
660
666
  var angularportalazure;
661
667
  (function (angularportalazure) {
662
668
  var BladeData = (function (_super) {
@@ -754,9 +760,12 @@ var angularportalazure;
754
760
  }());
755
761
  angularportalazure.BladeNavItem = BladeNavItem;
756
762
  })(angularportalazure || (angularportalazure = {}));
763
+ // #region Declarations
757
764
  /// <reference path="bladedata.ts" />
758
765
  /// <reference path="bladenavitem.ts" />
759
766
  /// <reference path="portalservice.ts" />
767
+ /// <reference path="usercontrolbase.ts" />
768
+ // #endregion
760
769
  var angularportalazure;
761
770
  (function (angularportalazure) {
762
771
  var AreaNotification = (function (_super) {
@@ -800,6 +809,10 @@ var angularportalazure;
800
809
  // #endregion
801
810
  // #region Methods
802
811
  AreaNotification.prototype.hide = function () {
812
+ // Do not hide on false
813
+ if (!this.onHide) {
814
+ return;
815
+ }
803
816
  this.path = '';
804
817
  this.widthAreaUsed = 0;
805
818
  this.areaNotification.style.display = 'none';
@@ -807,11 +820,23 @@ var angularportalazure;
807
820
  };
808
821
  AreaNotification.prototype.show = function (width) {
809
822
  if (width === void 0) { width = 250; }
823
+ this.onShow();
810
824
  this.width = width;
811
825
  this.widthAreaUsed = 1; // Indicate to the calcualteCssStyles function, that we need to set this value
812
826
  this.calcualteCssStyles();
813
827
  this.areaNotification.style.display = 'inline-block';
814
828
  this.portalService.$rootScope.$broadcast('AreaNotification.Show');
829
+ this.onShowed();
830
+ };
831
+ /* Override */
832
+ AreaNotification.prototype.onHide = function () {
833
+ return true;
834
+ };
835
+ /* Override */
836
+ AreaNotification.prototype.onShow = function () {
837
+ };
838
+ /* Override */
839
+ AreaNotification.prototype.onShowed = function () {
815
840
  };
816
841
  AreaNotification.prototype.calcualteCssStyles = function () {
817
842
  this.areaNotification.style.position = 'absolute';
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.271",
5
+ "version": "0.2.272",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {