@ardimedia/angular-portal-azure 0.2.270 → 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 +6 -0
  2. package/apn.js +33 -0
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -124,6 +124,7 @@ declare namespace angularportalazure {
124
124
  activate(): void;
125
125
  /** Override */
126
126
  onActivate(): void;
127
+ /** Override */
127
128
  onActivated(): void;
128
129
  navigateTo(path: any): void;
129
130
  /** Must be overridden. */
@@ -131,6 +132,8 @@ declare namespace angularportalazure {
131
132
  comparePaths(path1: string, path2: string): boolean;
132
133
  /** close blade. */
133
134
  close(): void;
135
+ /** Override */
136
+ onClose(): boolean;
134
137
  clearStatusBar(): void;
135
138
  setStatusBar(text?: string, style?: string): void;
136
139
  setStatusBarCopyData(): void;
@@ -234,6 +237,9 @@ declare namespace angularportalazure {
234
237
  backgroundColor: string;
235
238
  hide(): void;
236
239
  show(width?: number): void;
240
+ onHide(): boolean;
241
+ onShow(): void;
242
+ onShowed(): void;
237
243
  private calcualteCssStyles();
238
244
  }
239
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) {
@@ -286,6 +288,7 @@ var angularportalazure;
286
288
  /** Override */
287
289
  Blade.prototype.onActivate = function () {
288
290
  };
291
+ /** Override */
289
292
  Blade.prototype.onActivated = function () {
290
293
  };
291
294
  Blade.prototype.navigateTo = function (path) {
@@ -312,6 +315,9 @@ var angularportalazure;
312
315
  };
313
316
  /** close blade. */
314
317
  Blade.prototype.close = function () {
318
+ if (!this.onClose) {
319
+ return; // do not close blade
320
+ }
315
321
  if (this.portalService.areaBlades !== undefined) {
316
322
  this.portalService.areaBlades.clearPath(this.path);
317
323
  }
@@ -319,6 +325,10 @@ var angularportalazure;
319
325
  throw new Error('[angularportalazure.Blade] path: \'' + this.path + '\' could not be removed, since no \'this.portalService.areaBlades\' available.');
320
326
  }
321
327
  };
328
+ /** Override */
329
+ Blade.prototype.onClose = function () {
330
+ return true;
331
+ };
322
332
  // #region Set StatusBar
323
333
  Blade.prototype.clearStatusBar = function () {
324
334
  this.statusBar = '';
@@ -647,8 +657,12 @@ var angularportalazure;
647
657
  angularportalazure.AreaBlades = AreaBlades;
648
658
  angular.module('angularportalazure').service('angularportalazure.areaBlades', AreaBlades);
649
659
  })(angularportalazure || (angularportalazure = {}));
660
+ // #region Declarations
661
+ /// <reference path="blade.ts" />
650
662
  /// <reference path="areablades.ts" />
651
663
  /// <reference path="portalservice.ts" />
664
+ /// <reference path="usercontrolbase.ts" />
665
+ // #endregion
652
666
  var angularportalazure;
653
667
  (function (angularportalazure) {
654
668
  var BladeData = (function (_super) {
@@ -746,9 +760,12 @@ var angularportalazure;
746
760
  }());
747
761
  angularportalazure.BladeNavItem = BladeNavItem;
748
762
  })(angularportalazure || (angularportalazure = {}));
763
+ // #region Declarations
749
764
  /// <reference path="bladedata.ts" />
750
765
  /// <reference path="bladenavitem.ts" />
751
766
  /// <reference path="portalservice.ts" />
767
+ /// <reference path="usercontrolbase.ts" />
768
+ // #endregion
752
769
  var angularportalazure;
753
770
  (function (angularportalazure) {
754
771
  var AreaNotification = (function (_super) {
@@ -792,6 +809,10 @@ var angularportalazure;
792
809
  // #endregion
793
810
  // #region Methods
794
811
  AreaNotification.prototype.hide = function () {
812
+ // Do not hide on false
813
+ if (!this.onHide) {
814
+ return;
815
+ }
795
816
  this.path = '';
796
817
  this.widthAreaUsed = 0;
797
818
  this.areaNotification.style.display = 'none';
@@ -799,11 +820,23 @@ var angularportalazure;
799
820
  };
800
821
  AreaNotification.prototype.show = function (width) {
801
822
  if (width === void 0) { width = 250; }
823
+ this.onShow();
802
824
  this.width = width;
803
825
  this.widthAreaUsed = 1; // Indicate to the calcualteCssStyles function, that we need to set this value
804
826
  this.calcualteCssStyles();
805
827
  this.areaNotification.style.display = 'inline-block';
806
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 () {
807
840
  };
808
841
  AreaNotification.prototype.calcualteCssStyles = function () {
809
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.270",
5
+ "version": "0.2.272",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {