@ardimedia/angular-portal-azure 0.2.66 → 0.2.67

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 +1 -3
  2. package/apn.js +31 -33
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -335,9 +335,7 @@ declare namespace angularportalazure {
335
335
  class BladeGrid extends angularportalazure.BladeData {
336
336
  items: any[];
337
337
  constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
338
- activate(): void;
339
- onActivate(): angular.IHttpPromise<any>;
340
- loadItems(f: any): void;
338
+ loadItems(func: () => any): void;
341
339
  onFilter(actual: Object, expected: string): boolean;
342
340
  /** Obsolete */
343
341
  setObsoleteLayoutProperites(): void;
package/apn.js CHANGED
@@ -1237,47 +1237,45 @@ var angularportalazure;
1237
1237
  }
1238
1238
  //#endregion
1239
1239
  //#region Methods
1240
- BladeGrid.prototype.activate = function () {
1241
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid.activate\' called.', [this]);
1242
- console.log('BladeGrid.activate()');
1240
+ //activate(): void {
1241
+ // angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid.activate\' called.', [this]);
1242
+ // console.log('BladeGrid.activate()');
1243
+ // var that = this;
1244
+ // that.statusbar = 'Daten laden...';
1245
+ // that.statusbarClass = '';
1246
+ // //var onActivate = that.onActivate();
1247
+ // //if (that.onActivate === null || that.onActivate === undefined) {
1248
+ // //} else {
1249
+ // //that.loadItems(onActivate);
1250
+ // console.log('call onActivate()');
1251
+ // that.onActivate()
1252
+ // .then(function (data: any) {
1253
+ // console.log('OK');
1254
+ // that.items = data;
1255
+ // that.statusbar = '';
1256
+ // that.statusbarClass = '';
1257
+ // }).catch(function (exception: angularportalazure.Exception) {
1258
+ // console.log('exception');
1259
+ // console.log(exception);
1260
+ // that.statusbar = 'FEHLER: ' + exception.Message;
1261
+ // that.statusbarClass = 'message-info message-off';
1262
+ // });
1263
+ // //}
1264
+ //}
1265
+ //onActivate(): angular.IHttpPromise<any> { // any should be: angular.IHttpPromise<any>
1266
+ // throw new Error('[angularportalazure.BladeGrid] \'onActivate\' is an abstract function. Define one in the derived class.');
1267
+ //}
1268
+ BladeGrid.prototype.loadItems = function (func) {
1243
1269
  var that = this;
1244
1270
  that.statusbar = 'Daten laden...';
1245
1271
  that.statusbarClass = '';
1246
- //var onActivate = that.onActivate();
1247
- //if (that.onActivate === null || that.onActivate === undefined) {
1248
- //} else {
1249
- //that.loadItems(onActivate);
1250
- console.log('call onActivate()');
1251
- that.onActivate()
1252
- .then(function (data) {
1253
- console.log('OK');
1272
+ func().then(function (data) {
1254
1273
  that.items = data;
1255
1274
  that.statusbar = '';
1256
1275
  that.statusbarClass = '';
1257
1276
  }).catch(function (exception) {
1258
- console.log('exception');
1259
- console.log(exception);
1260
1277
  that.statusbar = 'FEHLER: ' + exception.Message;
1261
- that.statusbarClass = 'message-info message-off';
1262
- });
1263
- //}
1264
- };
1265
- BladeGrid.prototype.onActivate = function () {
1266
- throw new Error('[angularportalazure.BladeGrid] \'onActivate\' is an abstract function. Define one in the derived class.');
1267
- };
1268
- BladeGrid.prototype.loadItems = function (f) {
1269
- var that = this;
1270
- console.log('loadItems');
1271
- console.log(f);
1272
- f().then(function (data) {
1273
- that.items = data;
1274
- that.statusbar = '';
1275
- that.statusbarClass = '';
1276
- }).catch(function (exception) {
1277
- console.log('loadItems.catch');
1278
- console.log(exception);
1279
- that.statusbar = 'FEHLER: ' + exception.Message;
1280
- that.statusbarClass = 'message-info message-off';
1278
+ that.statusbarClass = 'message-error message-off';
1281
1279
  });
1282
1280
  };
1283
1281
  //#region Filter
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.66",
5
+ "version": "0.2.67",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {