@ardimedia/angular-portal-azure 0.2.68 → 0.2.70

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 -2
  2. package/apn.js +10 -4
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -333,9 +333,8 @@ declare namespace angularportalazure {
333
333
  }
334
334
  declare namespace angularportalazure {
335
335
  class BladeGrid extends angularportalazure.BladeData {
336
- getItemsFunction: any;
337
336
  items: any[];
338
- constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle: string, width: number, getItemsFunction: any);
337
+ constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
339
338
  activate(): void;
340
339
  loadItems(func: () => any): void;
341
340
  onFilter(actual: Object, expected: string): boolean;
package/apn.js CHANGED
@@ -274,12 +274,18 @@ var angularportalazure;
274
274
  }
275
275
  /** OBSOLETE: end */
276
276
  // Register listener1
277
+ console.log('listener1');
277
278
  _this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
278
279
  angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' BladeArea.AddBlade event processing.', [this, event, args]);
279
280
  if (that.blade.comparePaths(args.path, that.blade.path)) {
281
+ console.log('activate');
280
282
  that.activate();
281
283
  }
282
284
  });
285
+ console.log('1');
286
+ that.activate();
287
+ console.log('2');
288
+ (function () { return that.activate(); });
283
289
  return _this;
284
290
  //#endregion
285
291
  }
@@ -1224,11 +1230,10 @@ var angularportalazure;
1224
1230
  __extends(BladeGrid, _super);
1225
1231
  //#endregion
1226
1232
  //#region Constructor
1227
- function BladeGrid(portalService, path, title, subtitle, width, getItemsFunction) {
1233
+ function BladeGrid(portalService, path, title, subtitle, width) {
1228
1234
  if (subtitle === void 0) { subtitle = ''; }
1229
1235
  if (width === void 0) { width = 200; }
1230
1236
  var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
1231
- _this.getItemsFunction = getItemsFunction;
1232
1237
  //#region Properties
1233
1238
  _this.items = [];
1234
1239
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid\' constructor called.', [_this, portalService, path, title, subtitle, width]);
@@ -1239,13 +1244,14 @@ var angularportalazure;
1239
1244
  //#endregion
1240
1245
  //#region Methods
1241
1246
  BladeGrid.prototype.activate = function () {
1242
- var _this = this;
1243
- this.loadItems(function () { return _this.getItemsFunction; });
1247
+ var that = this;
1248
+ //this.loadItems(() => this.getItemsFunction);
1244
1249
  //angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid.activate\' called.', [this]);
1245
1250
  //console.log('BladeGrid.activate()');
1246
1251
  //var that = this;
1247
1252
  //that.statusbar = 'Daten laden...';
1248
1253
  //that.statusbarClass = '';
1254
+ that.onActivate();
1249
1255
  ////var onActivate = that.onActivate();
1250
1256
  ////if (that.onActivate === null || that.onActivate === undefined) {
1251
1257
  ////} else {
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.68",
5
+ "version": "0.2.70",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {