@ardimedia/angular-portal-azure 0.2.309 → 0.2.310
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 +5 -4
- package/apn.js +27 -6
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -360,6 +360,7 @@ declare namespace angularportalazure {
|
|
|
360
360
|
class BladeDetail<T> extends angularportalazure.BladeData {
|
|
361
361
|
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
362
362
|
item: T;
|
|
363
|
+
newItem(func: () => Promise<any | angularportalazure.Exception>): void;
|
|
363
364
|
loadItem(func: () => Promise<any | angularportalazure.Exception>): void;
|
|
364
365
|
/**
|
|
365
366
|
* Default behavior for saving an entity.
|
|
@@ -379,6 +380,10 @@ declare namespace angularportalazure {
|
|
|
379
380
|
* - call this.setStatusBarException
|
|
380
381
|
*/
|
|
381
382
|
saveItem(func: () => Promise<T | angularportalazure.Exception> | angular.IPromise<T | angularportalazure.Exception>, ngForm?: any): (Promise<T | void> | angular.IPromise<T | void>);
|
|
383
|
+
/** Extension point */
|
|
384
|
+
onSaveItem(): void;
|
|
385
|
+
/** Extension point */
|
|
386
|
+
onSavedItem(): void;
|
|
382
387
|
/**
|
|
383
388
|
* Default behavior for saving any object.
|
|
384
389
|
* - call this.setStatusBarSaveData();
|
|
@@ -395,10 +400,6 @@ declare namespace angularportalazure {
|
|
|
395
400
|
saveObject(func: () => Promise<any | angularportalazure.Exception> | angular.IPromise<any | angularportalazure.Exception>, ngForm?: any): (Promise<any | void> | angular.IPromise<any | void>);
|
|
396
401
|
deleteItem(func: () => Promise<T | angularportalazure.Exception> | angular.IPromise<T | angularportalazure.Exception>, ngForm?: any): (Promise<T | void> | angular.IPromise<T | void>);
|
|
397
402
|
/** Extension point */
|
|
398
|
-
onSaveItem(): void;
|
|
399
|
-
/** Extension point */
|
|
400
|
-
onSavedItem(): void;
|
|
401
|
-
/** Extension point */
|
|
402
403
|
onDeleteItem(): void;
|
|
403
404
|
/** Extension point */
|
|
404
405
|
onDeletedItem(): void;
|
package/apn.js
CHANGED
|
@@ -1202,6 +1202,20 @@ var angularportalazure;
|
|
|
1202
1202
|
}
|
|
1203
1203
|
// #endregion
|
|
1204
1204
|
// #region Methods
|
|
1205
|
+
// #region newItem
|
|
1206
|
+
BladeDetail.prototype.newItem = function (func) {
|
|
1207
|
+
//this.onLoadItem();
|
|
1208
|
+
var _this = this;
|
|
1209
|
+
func().then(function (data) {
|
|
1210
|
+
_this.isCommandDeleteEnabled = false;
|
|
1211
|
+
_this.item = data;
|
|
1212
|
+
//this.onLoadedItem();
|
|
1213
|
+
}).catch(function (ex) {
|
|
1214
|
+
_this.setStatusBarException(ex);
|
|
1215
|
+
});
|
|
1216
|
+
};
|
|
1217
|
+
// #endregion
|
|
1218
|
+
// #region loadItem
|
|
1205
1219
|
BladeDetail.prototype.loadItem = function (func) {
|
|
1206
1220
|
var _this = this;
|
|
1207
1221
|
this.onLoadItem();
|
|
@@ -1212,6 +1226,8 @@ var angularportalazure;
|
|
|
1212
1226
|
_this.setStatusBarException(ex);
|
|
1213
1227
|
});
|
|
1214
1228
|
};
|
|
1229
|
+
// #endregion
|
|
1230
|
+
// #region saveItem
|
|
1215
1231
|
/**
|
|
1216
1232
|
* Default behavior for saving an entity.
|
|
1217
1233
|
* - call this.setStatusBarSaveData();
|
|
@@ -1261,6 +1277,14 @@ var angularportalazure;
|
|
|
1261
1277
|
_this.setStatusBarException(exception);
|
|
1262
1278
|
});
|
|
1263
1279
|
};
|
|
1280
|
+
/** Extension point */
|
|
1281
|
+
BladeDetail.prototype.onSaveItem = function () {
|
|
1282
|
+
};
|
|
1283
|
+
/** Extension point */
|
|
1284
|
+
BladeDetail.prototype.onSavedItem = function () {
|
|
1285
|
+
};
|
|
1286
|
+
// #endregion
|
|
1287
|
+
// #region saveObject
|
|
1264
1288
|
/**
|
|
1265
1289
|
* Default behavior for saving any object.
|
|
1266
1290
|
* - call this.setStatusBarSaveData();
|
|
@@ -1302,6 +1326,8 @@ var angularportalazure;
|
|
|
1302
1326
|
_this.setStatusBarException(exception);
|
|
1303
1327
|
});
|
|
1304
1328
|
};
|
|
1329
|
+
// #endregion
|
|
1330
|
+
// #region deleteItem
|
|
1305
1331
|
BladeDetail.prototype.deleteItem = function (func, ngForm) {
|
|
1306
1332
|
var _this = this;
|
|
1307
1333
|
if (ngForm === void 0) { ngForm = undefined; }
|
|
@@ -1336,17 +1362,12 @@ var angularportalazure;
|
|
|
1336
1362
|
});
|
|
1337
1363
|
};
|
|
1338
1364
|
/** Extension point */
|
|
1339
|
-
BladeDetail.prototype.onSaveItem = function () {
|
|
1340
|
-
};
|
|
1341
|
-
/** Extension point */
|
|
1342
|
-
BladeDetail.prototype.onSavedItem = function () {
|
|
1343
|
-
};
|
|
1344
|
-
/** Extension point */
|
|
1345
1365
|
BladeDetail.prototype.onDeleteItem = function () {
|
|
1346
1366
|
};
|
|
1347
1367
|
/** Extension point */
|
|
1348
1368
|
BladeDetail.prototype.onDeletedItem = function () {
|
|
1349
1369
|
};
|
|
1370
|
+
// #endregion
|
|
1350
1371
|
BladeDetail.prototype.onCommandCancel = function () {
|
|
1351
1372
|
this.close();
|
|
1352
1373
|
};
|
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.310",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|