@ardimedia/angular-portal-azure 0.2.321 → 0.2.322
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.
- package/apn.d.ts +4 -1
- package/apn.js +18 -1
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ declare namespace angularportalazure {
|
|
|
179
179
|
private areaNotificationShowListener;
|
|
180
180
|
private areaNotificationHideListener;
|
|
181
181
|
blades: Array<angularportalazure.Blade>;
|
|
182
|
+
raiseBladeOnActivateEvent(args: angularportalazure.IAddBladeEventArgs): void;
|
|
182
183
|
raiseAddBladeEvent(args: angularportalazure.IAddBladeEventArgs): void;
|
|
183
184
|
setFirstBlade(path: string): angularportalazure.Blade | void;
|
|
184
185
|
addBlade(path: string, senderPath?: string): angularportalazure.Blade | void;
|
|
@@ -269,7 +270,9 @@ declare namespace angularportalazure {
|
|
|
269
270
|
deleteItem(func: () => Promise<T | number | void | angularportalazure.Exception> | angular.IPromise<T | number | void | angularportalazure.Exception>, ngForm?: any): (Promise<T | number | void> | angular.IPromise<T | number | void>);
|
|
270
271
|
/** Extension point */
|
|
271
272
|
onDeleteItem(): void;
|
|
272
|
-
/** Extension point
|
|
273
|
+
/** Extension point
|
|
274
|
+
* return value indicates if the current blade should be closed or not.
|
|
275
|
+
*/
|
|
273
276
|
onDeletedItem(): boolean;
|
|
274
277
|
/** Extension point */
|
|
275
278
|
onDeletedObjectException(ex: angularportalazure.Exception): void;
|
package/apn.js
CHANGED
|
@@ -493,6 +493,21 @@ var angularportalazure;
|
|
|
493
493
|
}
|
|
494
494
|
// #endregion
|
|
495
495
|
// #region Methods
|
|
496
|
+
AreaBlades.prototype.raiseBladeOnActivateEvent = function (args) {
|
|
497
|
+
var isEventRaised = false;
|
|
498
|
+
this.blades.forEach(function (blade) {
|
|
499
|
+
if (blade.path.toLowerCase() === args.path.toLowerCase()) {
|
|
500
|
+
// Raise event onActivate
|
|
501
|
+
blade.onActivate();
|
|
502
|
+
isEventRaised = true;
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
if (!isEventRaised) {
|
|
507
|
+
// Blade not found?
|
|
508
|
+
console.debug('angularportalazure.AreaBlades.raiseBladeOnActivateEvent did not find the corresponding blade: ' + args.path);
|
|
509
|
+
}
|
|
510
|
+
};
|
|
496
511
|
AreaBlades.prototype.raiseAddBladeEvent = function (args) {
|
|
497
512
|
var isBladeAlreadyShown = false;
|
|
498
513
|
this.blades.forEach(function (blade) {
|
|
@@ -892,7 +907,9 @@ var angularportalazure;
|
|
|
892
907
|
/** Extension point */
|
|
893
908
|
BladeData.prototype.onDeleteItem = function () {
|
|
894
909
|
};
|
|
895
|
-
/** Extension point
|
|
910
|
+
/** Extension point
|
|
911
|
+
* return value indicates if the current blade should be closed or not.
|
|
912
|
+
*/
|
|
896
913
|
BladeData.prototype.onDeletedItem = function () {
|
|
897
914
|
return true; // close the current blade
|
|
898
915
|
};
|
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.
|
|
5
|
+
"version": "0.2.322",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|