@ardimedia/angular-portal-azure 0.2.31 → 0.2.33

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
@@ -113,7 +113,6 @@ declare namespace angularportalazure {
113
113
  /** Obsolete */
114
114
  blade: Blade;
115
115
  /** Obsolete */
116
- isNavGrid: boolean;
117
116
  /** Obsolete */
118
117
  navGrid: {
119
118
  portalService: any;
@@ -307,8 +306,6 @@ declare namespace angularportalazure {
307
306
  }
308
307
  declare namespace angularportalazure {
309
308
  }
310
- declare namespace angularportalazure {
311
- }
312
309
  declare namespace angularportalazure {
313
310
  /** If a Web API through an exception, the following interface should be available. */
314
311
  interface IException {
@@ -364,7 +361,7 @@ declare namespace angularportalazure {
364
361
  declare namespace angularportalazure {
365
362
  class BladeNav extends angularportalazure.BladeData {
366
363
  navItems: Array<angularportalazure.BladeNavItem>;
367
- isNav: boolean;
364
+ isNavGrid: boolean;
368
365
  constructor(portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
369
366
  }
370
367
  }
package/apn.js CHANGED
@@ -232,6 +232,8 @@ var angularportalazure;
232
232
  this.commandSwap = function () { this.onCommandSwap(); };
233
233
  this.commandSwapText = '';
234
234
  /** Obsolete */
235
+ //isNavGrid: boolean;
236
+ /** Obsolete */
235
237
  this.navGrid = {
236
238
  portalService: null,
237
239
  items: [],
@@ -895,44 +897,6 @@ var angularportalazure;
895
897
  /// <reference path="../../domain/debug.ts" />
896
898
  /// <reference path="../../domain/portalservice.ts" />
897
899
  var angularportalazure;
898
- (function (angularportalazure) {
899
- function angularPortalBladeGrid(portalService) {
900
- return {
901
- restrict: 'E',
902
- transclude: true,
903
- scope: {},
904
- bindToController: { vm: '=' },
905
- templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
906
- link: function (scope, element, attrs, controller) {
907
- //console.log('angularPortalBladeGrid.link()');
908
- //console.log(this);
909
- //#region the following code makes sure, that a function scope.vm.close is available
910
- //if (scope.vm === undefined) { scope.vm = {}; }
911
- //if (scope.vm.close === undefined) {
912
- // scope.vm.close = function () {
913
- // angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
914
- // portalService.bladeArea.clearLastLevel();
915
- // }
916
- //}
917
- //#endregion
918
- },
919
- controller: function () {
920
- //console.log('angularPortalBladeGrid.controller()');
921
- //console.log(this);
922
- this.vm.close = function () {
923
- angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
924
- portalService.bladeArea.clearLastLevel();
925
- };
926
- },
927
- controllerAs: 'ctrl'
928
- };
929
- }
930
- angular.module('angularportalazure').directive('angularPortalBladeGrid', ['angularportalazure.portalService', angularPortalBladeGrid]);
931
- })(angularportalazure || (angularportalazure = {}));
932
- /// <reference types="angular" />
933
- /// <reference path="../../domain/debug.ts" />
934
- /// <reference path="../../domain/portalservice.ts" />
935
- var angularportalazure;
936
900
  (function (angularportalazure) {
937
901
  function angularPortalBladeNav(portalService) {
938
902
  return {
@@ -944,15 +908,6 @@ var angularportalazure;
944
908
  link: function (scope, element, attrs, controller) {
945
909
  //console.log('angularPortalBladeNav.link()');
946
910
  //console.log(this);
947
- //#region the following code makes sure, that a function scope.vm.close is available
948
- //if (scope.vm === undefined) { scope.vm = {}; }
949
- //if (scope.vm.close === undefined) {
950
- // scope.vm.close = function () {
951
- // angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
952
- // portalService.bladeArea.clearLastLevel();
953
- // }
954
- //}
955
- //#endregion
956
911
  },
957
912
  controller: function () {
958
913
  //console.log('angularPortalBladeNav.controller()');
@@ -1328,7 +1283,6 @@ var angularportalazure;
1328
1283
  if (this.items.length !== 0) {
1329
1284
  this.blade.navGrid.items = this.items; //--> needed, otherwise nav html pages will no longer work.
1330
1285
  }
1331
- this.blade.isNavGrid = this.isNavGrid;
1332
1286
  _super.prototype.setObsoleteLayoutProperites.call(this);
1333
1287
  };
1334
1288
  return BladeList;
@@ -1387,9 +1341,10 @@ var angularportalazure;
1387
1341
  _super.call(this, portalService, path, title, subtitle, width);
1388
1342
  //#region Properties
1389
1343
  this.navItems = new Array();
1390
- this.isNav = true;
1344
+ this.isNavGrid = true;
1391
1345
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeNav\' constructor called.', [this, portalService, path, title, subtitle, width]);
1392
1346
  _super.prototype.onNavigateTo = this.navigateTo;
1347
+ this.isNavGrid = true;
1393
1348
  }
1394
1349
  return BladeNav;
1395
1350
  }(angularportalazure.BladeData));
@@ -13,22 +13,10 @@ namespace angularportalazure {
13
13
  link: function (scope, element, attrs, controller) {
14
14
  //console.log('angularPortalBladeNav.link()');
15
15
  //console.log(this);
16
- //#region the following code makes sure, that a function scope.vm.close is available
17
-
18
- //if (scope.vm === undefined) { scope.vm = {}; }
19
- //if (scope.vm.close === undefined) {
20
- // scope.vm.close = function () {
21
- // angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
22
- // portalService.bladeArea.clearLastLevel();
23
- // }
24
- //}
25
-
26
- //#endregion
27
16
  },
28
17
  controller: function () {
29
18
  //console.log('angularPortalBladeNav.controller()');
30
19
  //console.log(this);
31
-
32
20
  this.vm.close = function () {
33
21
  angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
34
22
  portalService.bladeArea.clearLastLevel();
@@ -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>
@@ -5,7 +5,7 @@
5
5
  <col class="col1">
6
6
  </colgroup>
7
7
  <tbody class="azc-grid-groupdata" role="rowgroup">
8
- <tr data-ng-repeat="item in ctrl.vm.items track by $index" data-ng-click="ctrl.vm.navigateTo(item.bladePath);" role="row" aria-selected="false" data-grid-row-activated="false" data-grid-selectable="true" data-grid-focusable="true" data-grid-activateable="true" ng-show="item.isVisible" style="cursor:pointer" ng-style="item.style">
8
+ <tr data-ng-repeat="item in ctrl.vm.navItems track by $index" data-ng-click="ctrl.vm.navigateTo(item.bladePath);" role="row" aria-selected="false" data-grid-row-activated="false" data-grid-selectable="true" data-grid-focusable="true" data-grid-activateable="true" ng-show="item.isVisible" style="cursor:pointer" ng-style="item.style">
9
9
  <td class="msportalfx-gridcolumn-asseticon" role="gridcell" data-grid-cell-activated="false">
10
10
  <div class="azc-vivaControl" data-bind='vivaControl: "DEB28B4C-518F-4F70-A817-BF9277606CAB"'>
11
11
  <div data-bind="image: value">
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.31",
5
+ "version": "0.2.33",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {
@@ -1,42 +0,0 @@
1
- /// <reference types="angular" />
2
- /// <reference path="../../domain/debug.ts" />
3
- /// <reference path="../../domain/portalservice.ts" />
4
-
5
- namespace angularportalazure {
6
- function angularPortalBladeGrid(portalService: angularportalazure.PortalService) {
7
- return {
8
- restrict: 'E',
9
- transclude: true,
10
- scope: {},
11
- bindToController: { vm: '=' },
12
- templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
13
- link: function (scope, element, attrs, controller) {
14
- //console.log('angularPortalBladeGrid.link()');
15
- //console.log(this);
16
- //#region the following code makes sure, that a function scope.vm.close is available
17
-
18
- //if (scope.vm === undefined) { scope.vm = {}; }
19
- //if (scope.vm.close === undefined) {
20
- // scope.vm.close = function () {
21
- // angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
22
- // portalService.bladeArea.clearLastLevel();
23
- // }
24
- //}
25
-
26
- //#endregion
27
- },
28
- controller: function () {
29
- //console.log('angularPortalBladeGrid.controller()');
30
- //console.log(this);
31
-
32
- this.vm.close = function () {
33
- angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
34
- portalService.bladeArea.clearLastLevel();
35
- };
36
- },
37
- controllerAs: 'ctrl'
38
- };
39
- }
40
-
41
- angular.module('angularportalazure').directive('angularPortalBladeGrid', ['angularportalazure.portalService', angularPortalBladeGrid]);
42
- }