@ardimedia/angular-portal-azure 0.2.32 → 0.2.34

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 CHANGED
@@ -111,15 +111,7 @@ declare namespace angularportalazure {
111
111
  commandSwap: () => void;
112
112
  commandSwapText: string;
113
113
  /** Obsolete */
114
- blade: Blade;
115
114
  /** Obsolete */
116
- isNavGrid: boolean;
117
- /** Obsolete */
118
- navGrid: {
119
- portalService: any;
120
- items: any[];
121
- navigateTo: (path: string) => void;
122
- };
123
115
  activate(): void;
124
116
  onActivate(): void;
125
117
  navigateTo(arg: any): void;
@@ -362,7 +354,7 @@ declare namespace angularportalazure {
362
354
  declare namespace angularportalazure {
363
355
  class BladeNav extends angularportalazure.BladeData {
364
356
  navItems: Array<angularportalazure.BladeNavItem>;
365
- isNav: boolean;
357
+ isNavGrid: boolean;
366
358
  constructor(portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
367
359
  }
368
360
  }
package/apn.js CHANGED
@@ -231,21 +231,15 @@ var angularportalazure;
231
231
  this.isCommandSwap = false;
232
232
  this.commandSwap = function () { this.onCommandSwap(); };
233
233
  this.commandSwapText = '';
234
- /** Obsolete */
235
- this.navGrid = {
236
- portalService: null,
237
- items: [],
238
- navigateTo: function (path) { }
239
- };
240
234
  angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' constructor called.', [this, portalService, path, title, subtitle, width]);
241
235
  var that = this;
242
- this.blade = this;
236
+ //this.blade = this;
243
237
  this.path = path;
244
238
  this.title = title;
245
239
  this.subTitle = subtitle;
246
240
  this.width.width = width + 'px';
247
241
  this.widthStackLayout.width = width - 50 + 'px';
248
- this.navGrid.portalService = portalService;
242
+ //this.navGrid.portalService = portalService;
249
243
  if (!portalService) {
250
244
  throw new Error('[angularportalazure.Blade] constructor parameter \'portalService\' must be provided.');
251
245
  }
@@ -273,7 +267,7 @@ var angularportalazure;
273
267
  // Register listener1
274
268
  this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
275
269
  angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' BladeArea.AddBlade event processing.', [this, event, args]);
276
- if (that.blade.comparePaths(args.path, that.blade.path)) {
270
+ if (that.comparePaths(args.path, that.path)) {
277
271
  that.activate();
278
272
  }
279
273
  });
@@ -292,6 +286,16 @@ var angularportalazure;
292
286
  configurable: true
293
287
  });
294
288
  //#endregion
289
+ //#region OBSOLETE
290
+ /** Obsolete */
291
+ //blade: Blade;
292
+ /** Obsolete */
293
+ //navGrid = {
294
+ // portalService: null,
295
+ // items: [],
296
+ // navigateTo: function (path: string) { }
297
+ //};
298
+ //#endregion
295
299
  //#endregion
296
300
  //#region Methods
297
301
  //#region Methods
@@ -387,26 +391,26 @@ var angularportalazure;
387
391
  /** Obsolete */
388
392
  Blade.prototype.setObsoleteLayoutProperites = function () {
389
393
  angularportalazure.Debug.write('[angularportalazure-debug] \'Blade.setObsoleteLayoutProperites\' called.', [this]);
390
- this.blade.title = this.title;
391
- this.blade.statusbar = this.statusbar;
392
- this.blade.statusbarClass = this.statusbarClass;
393
- this.blade.isCommandBrowse = this.isCommandBrowse;
394
- this.blade.isCommandCancel = this.isCommandCancel;
395
- this.blade.isCommandCopy = this.isCommandCopy;
396
- this.blade.isCommandDelete = this.isCommandDelete;
397
- this.blade.isCommandDocument = this.isCommandDocument;
398
- this.blade.isCommandDocument2 = this.isCommandDocument2;
399
- this.blade.isCommandDocument3 = this.isCommandDocument3;
400
- this.blade.isCommandDocument4 = this.isCommandDocument4;
401
- this.blade.isCommandDocument5 = this.isCommandDocument5;
402
- this.blade.isCommandNew = this.isCommandNew;
403
- this.blade.isCommandOrder = this.isCommandOrder;
404
- this.blade.isCommandRestart = this.isCommandRestart;
405
- this.blade.isCommandSave = this.isCommandSave;
406
- this.blade.isCommandSearch = this.isCommandSearch;
407
- this.blade.isCommandStart = this.isCommandStart;
408
- this.blade.isCommandStop = this.isCommandStop;
409
- this.blade.isCommandSwap = this.isCommandSwap;
394
+ //this.blade.title = this.title;
395
+ //this.blade.statusbar = this.statusbar;
396
+ //this.blade.statusbarClass = this.statusbarClass;
397
+ //this.blade.isCommandBrowse = this.isCommandBrowse;
398
+ //this.blade.isCommandCancel = this.isCommandCancel;
399
+ //this.blade.isCommandCopy = this.isCommandCopy;
400
+ //this.blade.isCommandDelete = this.isCommandDelete;
401
+ //this.blade.isCommandDocument = this.isCommandDocument;
402
+ //this.blade.isCommandDocument2 = this.isCommandDocument2;
403
+ //this.blade.isCommandDocument3 = this.isCommandDocument3;
404
+ //this.blade.isCommandDocument4 = this.isCommandDocument4;
405
+ //this.blade.isCommandDocument5 = this.isCommandDocument5;
406
+ //this.blade.isCommandNew = this.isCommandNew;
407
+ //this.blade.isCommandOrder = this.isCommandOrder;
408
+ //this.blade.isCommandRestart = this.isCommandRestart;
409
+ //this.blade.isCommandSave = this.isCommandSave;
410
+ //this.blade.isCommandSearch = this.isCommandSearch;
411
+ //this.blade.isCommandStart = this.isCommandStart;
412
+ //this.blade.isCommandStop = this.isCommandStop;
413
+ //this.blade.isCommandSwap = this.isCommandSwap;
410
414
  };
411
415
  /** Obsolete */
412
416
  Blade.prototype.bladeClose = function () {
@@ -1278,10 +1282,9 @@ var angularportalazure;
1278
1282
  /** Obsolete */
1279
1283
  BladeList.prototype.setObsoleteLayoutProperites = function () {
1280
1284
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeList.setObsoleteLayoutProperites\' called.', [this]);
1281
- if (this.items.length !== 0) {
1282
- this.blade.navGrid.items = this.items; //--> needed, otherwise nav html pages will no longer work.
1283
- }
1284
- this.blade.isNavGrid = this.isNavGrid;
1285
+ //if (this.items.length !== 0) {
1286
+ // this.blade.navGrid.items = this.items; //--> needed, otherwise nav html pages will no longer work.
1287
+ //}
1285
1288
  _super.prototype.setObsoleteLayoutProperites.call(this);
1286
1289
  };
1287
1290
  return BladeList;
@@ -1340,9 +1343,10 @@ var angularportalazure;
1340
1343
  _super.call(this, portalService, path, title, subtitle, width);
1341
1344
  //#region Properties
1342
1345
  this.navItems = new Array();
1343
- this.isNav = true;
1346
+ this.isNavGrid = true;
1344
1347
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeNav\' constructor called.', [this, portalService, path, title, subtitle, width]);
1345
1348
  _super.prototype.onNavigateTo = this.navigateTo;
1349
+ this.isNavGrid = true;
1346
1350
  }
1347
1351
  return BladeNav;
1348
1352
  }(angularportalazure.BladeData));
@@ -249,7 +249,7 @@
249
249
  </div>
250
250
 
251
251
  <!-- nav -->
252
- <nav data-ng-if="ctrl.vm.blade.isNavGrid" vm="ctrl.vm"></nav>
252
+ <nav data-ng-if="ctrl.vm.isNavGrid" vm="ctrl.vm"></nav>
253
253
 
254
254
  </div>
255
255
  </div>
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.32",
5
+ "version": "0.2.34",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {