@ardimedia/angular-portal-azure 0.2.309 → 0.2.311
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 +28 -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();
|
|
@@ -1253,6 +1269,7 @@ var angularportalazure;
|
|
|
1253
1269
|
return func().then(function (data) {
|
|
1254
1270
|
_this.clearStatusBar();
|
|
1255
1271
|
_this.isCommandSaveEnabled = true;
|
|
1272
|
+
_this.isCommandDeleteEnabled = true;
|
|
1256
1273
|
_this.item = data;
|
|
1257
1274
|
_this.onSavedItem();
|
|
1258
1275
|
return data;
|
|
@@ -1261,6 +1278,14 @@ var angularportalazure;
|
|
|
1261
1278
|
_this.setStatusBarException(exception);
|
|
1262
1279
|
});
|
|
1263
1280
|
};
|
|
1281
|
+
/** Extension point */
|
|
1282
|
+
BladeDetail.prototype.onSaveItem = function () {
|
|
1283
|
+
};
|
|
1284
|
+
/** Extension point */
|
|
1285
|
+
BladeDetail.prototype.onSavedItem = function () {
|
|
1286
|
+
};
|
|
1287
|
+
// #endregion
|
|
1288
|
+
// #region saveObject
|
|
1264
1289
|
/**
|
|
1265
1290
|
* Default behavior for saving any object.
|
|
1266
1291
|
* - call this.setStatusBarSaveData();
|
|
@@ -1302,6 +1327,8 @@ var angularportalazure;
|
|
|
1302
1327
|
_this.setStatusBarException(exception);
|
|
1303
1328
|
});
|
|
1304
1329
|
};
|
|
1330
|
+
// #endregion
|
|
1331
|
+
// #region deleteItem
|
|
1305
1332
|
BladeDetail.prototype.deleteItem = function (func, ngForm) {
|
|
1306
1333
|
var _this = this;
|
|
1307
1334
|
if (ngForm === void 0) { ngForm = undefined; }
|
|
@@ -1336,17 +1363,12 @@ var angularportalazure;
|
|
|
1336
1363
|
});
|
|
1337
1364
|
};
|
|
1338
1365
|
/** Extension point */
|
|
1339
|
-
BladeDetail.prototype.onSaveItem = function () {
|
|
1340
|
-
};
|
|
1341
|
-
/** Extension point */
|
|
1342
|
-
BladeDetail.prototype.onSavedItem = function () {
|
|
1343
|
-
};
|
|
1344
|
-
/** Extension point */
|
|
1345
1366
|
BladeDetail.prototype.onDeleteItem = function () {
|
|
1346
1367
|
};
|
|
1347
1368
|
/** Extension point */
|
|
1348
1369
|
BladeDetail.prototype.onDeletedItem = function () {
|
|
1349
1370
|
};
|
|
1371
|
+
// #endregion
|
|
1350
1372
|
BladeDetail.prototype.onCommandCancel = function () {
|
|
1351
1373
|
this.close();
|
|
1352
1374
|
};
|
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.311",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|