@ardimedia/angular-portal-azure 0.2.67 → 0.2.68

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 +3 -1
  2. package/apn.js +29 -26
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -333,8 +333,10 @@ declare namespace angularportalazure {
333
333
  }
334
334
  declare namespace angularportalazure {
335
335
  class BladeGrid extends angularportalazure.BladeData {
336
+ getItemsFunction: any;
336
337
  items: any[];
337
- constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
338
+ constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle: string, width: number, getItemsFunction: any);
339
+ activate(): void;
338
340
  loadItems(func: () => any): void;
339
341
  onFilter(actual: Object, expected: string): boolean;
340
342
  /** Obsolete */
package/apn.js CHANGED
@@ -1224,10 +1224,11 @@ var angularportalazure;
1224
1224
  __extends(BladeGrid, _super);
1225
1225
  //#endregion
1226
1226
  //#region Constructor
1227
- function BladeGrid(portalService, path, title, subtitle, width) {
1227
+ function BladeGrid(portalService, path, title, subtitle, width, getItemsFunction) {
1228
1228
  if (subtitle === void 0) { subtitle = ''; }
1229
1229
  if (width === void 0) { width = 200; }
1230
1230
  var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
1231
+ _this.getItemsFunction = getItemsFunction;
1231
1232
  //#region Properties
1232
1233
  _this.items = [];
1233
1234
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid\' constructor called.', [_this, portalService, path, title, subtitle, width]);
@@ -1237,31 +1238,33 @@ var angularportalazure;
1237
1238
  }
1238
1239
  //#endregion
1239
1240
  //#region Methods
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
- //}
1241
+ BladeGrid.prototype.activate = function () {
1242
+ var _this = this;
1243
+ this.loadItems(function () { return _this.getItemsFunction; });
1244
+ //angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid.activate\' called.', [this]);
1245
+ //console.log('BladeGrid.activate()');
1246
+ //var that = this;
1247
+ //that.statusbar = 'Daten laden...';
1248
+ //that.statusbarClass = '';
1249
+ ////var onActivate = that.onActivate();
1250
+ ////if (that.onActivate === null || that.onActivate === undefined) {
1251
+ ////} else {
1252
+ // //that.loadItems(onActivate);
1253
+ // console.log('call onActivate()');
1254
+ // that.onActivate()
1255
+ // .then(function (data: any) {
1256
+ // console.log('OK');
1257
+ // that.items = data;
1258
+ // that.statusbar = '';
1259
+ // that.statusbarClass = '';
1260
+ // }).catch(function (exception: angularportalazure.Exception) {
1261
+ // console.log('exception');
1262
+ // console.log(exception);
1263
+ // that.statusbar = 'FEHLER: ' + exception.Message;
1264
+ // that.statusbarClass = 'message-info message-off';
1265
+ // });
1266
+ ////}
1267
+ };
1265
1268
  //onActivate(): angular.IHttpPromise<any> { // any should be: angular.IHttpPromise<any>
1266
1269
  // throw new Error('[angularportalazure.BladeGrid] \'onActivate\' is an abstract function. Define one in the derived class.');
1267
1270
  //}
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.67",
5
+ "version": "0.2.68",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {