@ardimedia/angular-portal-azure 0.2.51 → 0.2.52

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 +0 -2
  2. package/apn.js +142 -130
  3. package/package.json +6 -6
package/apn.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- /// <reference types="angular-resource" />
2
- /// <reference types="angular" />
3
1
  declare namespace angularportalazure {
4
2
  }
5
3
  declare namespace angularportalazure {
package/apn.js CHANGED
@@ -80,13 +80,13 @@ var angularportalazure;
80
80
  }
81
81
  return false;
82
82
  };
83
- //#endregion
84
- //#region Properties
85
- Debug.isEnabled = false;
86
- Debug.isWithObjects = false;
87
- Debug.keys = new Array();
88
83
  return Debug;
89
84
  }());
85
+ //#endregion
86
+ //#region Properties
87
+ Debug.isEnabled = false;
88
+ Debug.isWithObjects = false;
89
+ Debug.keys = new Array();
90
90
  angularportalazure.Debug = Debug;
91
91
  })(angularportalazure || (angularportalazure = {}));
92
92
  /// <reference path="debug.ts" />
@@ -172,83 +172,83 @@ var angularportalazure;
172
172
  function Blade(portalService, path, title, subtitle, width) {
173
173
  if (subtitle === void 0) { subtitle = ''; }
174
174
  if (width === void 0) { width = 200; }
175
- _super.call(this, portalService);
175
+ var _this = _super.call(this, portalService) || this;
176
176
  //#endregion
177
- this.title = '';
178
- this.subTitle = '';
179
- this.width = { 'width': '0' };
180
- this.widthStackLayout = { 'width': '50px' };
181
- this.isInnerHtml = true;
182
- this.statusbar = '';
183
- this.statusbarClass = '';
177
+ _this.title = '';
178
+ _this.subTitle = '';
179
+ _this.width = { 'width': '0' };
180
+ _this.widthStackLayout = { 'width': '50px' };
181
+ _this.isInnerHtml = true;
182
+ _this.statusbar = '';
183
+ _this.statusbarClass = '';
184
184
  //#endregion
185
185
  //#region Commands
186
- this.isCommandBrowse = false;
187
- this.commandBrowse = function () { this.onCommandBrowse(); };
188
- this.commandBrowseText = '';
189
- this.isCommandCancel = false;
190
- this.commandCancel = function () { this.onCommandCancel(); };
191
- this.commandCancelText = '';
192
- this.isCommandCopy = false;
193
- this.commandCopy = function () { this.onCommandCopy(); };
194
- this.commandCopyText = '';
195
- this.isCommandDelete = false;
196
- this.commandDelete = function () { this.onCommandDelete(); };
197
- this.commandDeleteText = '';
198
- this.isCommandDocument = false;
199
- this.commandDocument = function () { this.onCommandDocument(); };
200
- this.commandDocumentText = '';
201
- this.isCommandDocument2 = false;
202
- this.commandDocument2 = function () { this.onCommandDocument2(); };
203
- this.commandDocument2Text = '';
204
- this.isCommandDocument3 = false;
205
- this.commandDocument3 = function () { this.onCommandDocument3(); };
206
- this.commandDocument3Text = '';
207
- this.isCommandDocument4 = false;
208
- this.commandDocument4 = function () { this.onCommandDocument4(); };
209
- this.commandDocument4Text = '';
210
- this.isCommandDocument5 = false;
211
- this.commandDocument5 = function () { this.onCommandDocument5(); };
212
- this.commandDocument5Text = '';
213
- this.isCommandNew = false;
214
- this.commandNew = function () { this.onCommandNew(); };
215
- this.commandNewText = '';
216
- this.isCommandOrder = false;
217
- this.commandOrder = function () { this.onCommandOrder(); };
218
- this.commandOrderText = '';
219
- this.isCommandRestart = false;
220
- this.commandRestart = function () { this.onCommandRestart(); };
221
- this.commandRestartText = '';
222
- this.isCommandSave = false;
223
- this.commandSave = function () { this.onCommandSave(); };
224
- this.commandSaveText = '';
225
- this.isCommandSearch = false;
226
- this.commandSearch = function () { this.onCommandSearch(); };
227
- this.commandSearchText = '';
228
- this.isCommandStart = false;
229
- this.commandStart = function () { this.onCommandStart(); };
230
- this.commandStartText = '';
231
- this.isCommandStop = false;
232
- this.commandStop = function () { this.onCommandStop(); };
233
- this.commandStopText = '';
234
- this.isCommandSwap = false;
235
- this.commandSwap = function () { this.onCommandSwap(); };
236
- this.commandSwapText = '';
186
+ _this.isCommandBrowse = false;
187
+ _this.commandBrowse = function () { this.onCommandBrowse(); };
188
+ _this.commandBrowseText = '';
189
+ _this.isCommandCancel = false;
190
+ _this.commandCancel = function () { this.onCommandCancel(); };
191
+ _this.commandCancelText = '';
192
+ _this.isCommandCopy = false;
193
+ _this.commandCopy = function () { this.onCommandCopy(); };
194
+ _this.commandCopyText = '';
195
+ _this.isCommandDelete = false;
196
+ _this.commandDelete = function () { this.onCommandDelete(); };
197
+ _this.commandDeleteText = '';
198
+ _this.isCommandDocument = false;
199
+ _this.commandDocument = function () { this.onCommandDocument(); };
200
+ _this.commandDocumentText = '';
201
+ _this.isCommandDocument2 = false;
202
+ _this.commandDocument2 = function () { this.onCommandDocument2(); };
203
+ _this.commandDocument2Text = '';
204
+ _this.isCommandDocument3 = false;
205
+ _this.commandDocument3 = function () { this.onCommandDocument3(); };
206
+ _this.commandDocument3Text = '';
207
+ _this.isCommandDocument4 = false;
208
+ _this.commandDocument4 = function () { this.onCommandDocument4(); };
209
+ _this.commandDocument4Text = '';
210
+ _this.isCommandDocument5 = false;
211
+ _this.commandDocument5 = function () { this.onCommandDocument5(); };
212
+ _this.commandDocument5Text = '';
213
+ _this.isCommandNew = false;
214
+ _this.commandNew = function () { this.onCommandNew(); };
215
+ _this.commandNewText = '';
216
+ _this.isCommandOrder = false;
217
+ _this.commandOrder = function () { this.onCommandOrder(); };
218
+ _this.commandOrderText = '';
219
+ _this.isCommandRestart = false;
220
+ _this.commandRestart = function () { this.onCommandRestart(); };
221
+ _this.commandRestartText = '';
222
+ _this.isCommandSave = false;
223
+ _this.commandSave = function () { this.onCommandSave(); };
224
+ _this.commandSaveText = '';
225
+ _this.isCommandSearch = false;
226
+ _this.commandSearch = function () { this.onCommandSearch(); };
227
+ _this.commandSearchText = '';
228
+ _this.isCommandStart = false;
229
+ _this.commandStart = function () { this.onCommandStart(); };
230
+ _this.commandStartText = '';
231
+ _this.isCommandStop = false;
232
+ _this.commandStop = function () { this.onCommandStop(); };
233
+ _this.commandStopText = '';
234
+ _this.isCommandSwap = false;
235
+ _this.commandSwap = function () { this.onCommandSwap(); };
236
+ _this.commandSwapText = '';
237
237
  /** Obsolete */
238
- this.navGrid = {
238
+ _this.navGrid = {
239
239
  portalService: null,
240
240
  items: [],
241
241
  navigateTo: function (path) { }
242
242
  };
243
- angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' constructor called.', [this, portalService, path, title, subtitle, width]);
244
- var that = this;
245
- this.blade = this;
246
- this.path = path;
247
- this.title = title;
248
- this.subTitle = subtitle;
249
- this.width.width = width + 'px';
250
- this.widthStackLayout.width = width - 50 + 'px';
251
- this.navGrid.portalService = portalService;
243
+ angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' constructor called.', [_this, portalService, path, title, subtitle, width]);
244
+ var that = _this;
245
+ _this.blade = _this;
246
+ _this.path = path;
247
+ _this.title = title;
248
+ _this.subTitle = subtitle;
249
+ _this.width.width = width + 'px';
250
+ _this.widthStackLayout.width = width - 50 + 'px';
251
+ _this.navGrid.portalService = portalService;
252
252
  if (!portalService) {
253
253
  throw new Error('[angularportalazure.Blade] constructor parameter \'portalService\' must be provided.');
254
254
  }
@@ -270,16 +270,17 @@ var angularportalazure;
270
270
  //#region Add BladeArea.AddBlade event listener
271
271
  /** OBSOLETE: remove when all OBSOLETE code has been removed */
272
272
  if (portalService instanceof angularportalazure.PortalService == false) {
273
- return;
273
+ return _this;
274
274
  }
275
275
  /** OBSOLETE: end */
276
276
  // Register listener1
277
- this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
277
+ _this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
278
278
  angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' BladeArea.AddBlade event processing.', [this, event, args]);
279
279
  if (that.blade.comparePaths(args.path, that.blade.path)) {
280
280
  that.activate();
281
281
  }
282
282
  });
283
+ return _this;
283
284
  //#endregion
284
285
  }
285
286
  Object.defineProperty(Blade.prototype, "path", {
@@ -440,24 +441,25 @@ var angularportalazure;
440
441
  __extends(BladeArea, _super);
441
442
  //#region Constructor
442
443
  function BladeArea(portalService) {
443
- _super.call(this, portalService);
444
- this.blades = new Array();
445
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea\' constructor called.', [this, portalService]);
446
- var that = this;
444
+ var _this = _super.call(this, portalService) || this;
445
+ _this.blades = new Array();
446
+ angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea\' constructor called.', [_this, portalService]);
447
+ var that = _this;
447
448
  // Set dependencies
448
- this.portalService = portalService;
449
- this.portalService.bladeArea = this;
449
+ _this.portalService = portalService;
450
+ _this.portalService.bladeArea = _this;
450
451
  //#region Add BladeArea.AddBlade event listener
451
452
  /** OBSOLETE: remove when all OBSOLETE code has been removed */
452
453
  if (portalService instanceof angularportalazure.PortalService == false) {
453
- return;
454
+ return _this;
454
455
  }
455
456
  /** OBSOLETE: end */
456
457
  // Register listener1
457
- this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
458
+ _this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
458
459
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea\' BladeArea.AddBlade event processing.', [this, event, args]);
459
460
  that.addBlade(args.path, args.pathSender);
460
461
  });
462
+ return _this;
461
463
  //#endregion
462
464
  }
463
465
  //#endregion
@@ -647,6 +649,7 @@ var angularportalazure;
647
649
  'use strict';
648
650
  angular.module('angularportalazure').service('angularportalazure.bladeArea', ['$window', BladeArea]);
649
651
  })();
652
+ //#endregion
650
653
  })(angularportalazure || (angularportalazure = {}));
651
654
  /// <reference path="debug.ts" />
652
655
  /// <reference path="portalservice.ts" />
@@ -658,8 +661,9 @@ var angularportalazure;
658
661
  __extends(AvatarMenu, _super);
659
662
  //#region Constructor
660
663
  function AvatarMenu(portalService) {
661
- _super.call(this, portalService);
662
- angularportalazure.Debug.write('[angularportalazure-debug] \'AvatarMenu\' constructor called.', [this]);
664
+ var _this = _super.call(this, portalService) || this;
665
+ angularportalazure.Debug.write('[angularportalazure-debug] \'AvatarMenu\' constructor called.', [_this]);
666
+ return _this;
663
667
  }
664
668
  return AvatarMenu;
665
669
  }(angularportalazure.UserControlBase));
@@ -668,13 +672,13 @@ var angularportalazure;
668
672
  var angularportalazure;
669
673
  (function (angularportalazure) {
670
674
  /** The names are used in CSS for layouting, e.g. style='mini' */
675
+ var TileSizes;
671
676
  (function (TileSizes) {
672
677
  TileSizes[TileSizes["small"] = 0] = "small";
673
678
  TileSizes[TileSizes["mini"] = 1] = "mini";
674
679
  TileSizes[TileSizes["normal"] = 2] = "normal";
675
680
  TileSizes[TileSizes["herowide"] = 3] = "herowide";
676
- })(angularportalazure.TileSizes || (angularportalazure.TileSizes = {}));
677
- var TileSizes = angularportalazure.TileSizes;
681
+ })(TileSizes = angularportalazure.TileSizes || (angularportalazure.TileSizes = {}));
678
682
  })(angularportalazure || (angularportalazure = {}));
679
683
  /// <reference path="debug.ts" />
680
684
  /// <reference path="tilesizes.ts" />
@@ -757,6 +761,7 @@ var angularportalazure;
757
761
  this.nextLeft = 0;
758
762
  this.nextTop = 0;
759
763
  this.columnHeightMax = 0;
764
+ //#endregion
760
765
  }
761
766
  //#endregion
762
767
  //#region Methods
@@ -793,9 +798,10 @@ var angularportalazure;
793
798
  //#endregion
794
799
  //#region Constructor
795
800
  function Startboard(portalService) {
796
- _super.call(this, portalService);
797
- angularportalazure.Debug.write('[angularportalazure-debug] \'Startboard\' constructor called.', [this]);
798
- this.tiles = new angularportalazure.Tiles();
801
+ var _this = _super.call(this, portalService) || this;
802
+ angularportalazure.Debug.write('[angularportalazure-debug] \'Startboard\' constructor called.', [_this]);
803
+ _this.tiles = new angularportalazure.Tiles();
804
+ return _this;
799
805
  }
800
806
  return Startboard;
801
807
  }(angularportalazure.UserControlBase));
@@ -813,13 +819,14 @@ var angularportalazure;
813
819
  //#endregion
814
820
  //#region Constructor
815
821
  function Panorama(title, portalService) {
816
- _super.call(this, portalService);
817
- this.isVisible = true;
818
- angularportalazure.Debug.write('[angularportalazure-debug] \'Panorama\' constructor called.', [this, title]);
819
- this.title = title;
820
- this.portalService.panorama = this;
821
- this.avatarMenu = new angularportalazure.AvatarMenu(this.portalService);
822
- this.startboard = new angularportalazure.Startboard(this.portalService);
822
+ var _this = _super.call(this, portalService) || this;
823
+ _this.isVisible = true;
824
+ angularportalazure.Debug.write('[angularportalazure-debug] \'Panorama\' constructor called.', [_this, title]);
825
+ _this.title = title;
826
+ _this.portalService.panorama = _this;
827
+ _this.avatarMenu = new angularportalazure.AvatarMenu(_this.portalService);
828
+ _this.startboard = new angularportalazure.Startboard(_this.portalService);
829
+ return _this;
823
830
  }
824
831
  return Panorama;
825
832
  }(angularportalazure.UserControlBase));
@@ -839,13 +846,14 @@ var angularportalazure;
839
846
  //#endregion
840
847
  //#region Constructor
841
848
  function PortalShell(title, portalService) {
842
- _super.call(this, portalService);
843
- angularportalazure.Debug.write('[angularportalazure-debug] \'PortalShell\' constructor called.', [this, title, portalService]);
844
- this.portalService = portalService;
845
- this.portalService.portalShell = this;
846
- this.portalService.panorama = new angularportalazure.Panorama(title, this.portalService);
847
- this.portalService.bladeArea = new angularportalazure.BladeArea(portalService);
848
- this.initialize();
849
+ var _this = _super.call(this, portalService) || this;
850
+ angularportalazure.Debug.write('[angularportalazure-debug] \'PortalShell\' constructor called.', [_this, title, portalService]);
851
+ _this.portalService = portalService;
852
+ _this.portalService.portalShell = _this;
853
+ _this.portalService.panorama = new angularportalazure.Panorama(title, _this.portalService);
854
+ _this.portalService.bladeArea = new angularportalazure.BladeArea(portalService);
855
+ _this.initialize();
856
+ return _this;
849
857
  }
850
858
  //#endregion
851
859
  //#region Methods
@@ -901,10 +909,10 @@ var angularportalazure;
901
909
  this.ngDialog = $injector.get('ngDialog');
902
910
  this.ngDialog.openConfirm;
903
911
  }
904
- //#region Constructor
905
- PortalService.$inject = ['$injector'];
906
912
  return PortalService;
907
913
  }());
914
+ //#region Constructor
915
+ PortalService.$inject = ['$injector'];
908
916
  angularportalazure.PortalService = PortalService;
909
917
  angular.module('angularportalazure').service('angularportalazure.portalService', PortalService);
910
918
  })(angularportalazure || (angularportalazure = {}));
@@ -1116,8 +1124,9 @@ var angularportalazure;
1116
1124
  function BladeData(portalService, path, title, subtitle, width) {
1117
1125
  if (subtitle === void 0) { subtitle = ''; }
1118
1126
  if (width === void 0) { width = 300; }
1119
- _super.call(this, portalService, path, title, subtitle, width);
1120
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeData\' constructor called.', [this, portalService, path, title, subtitle, width]);
1127
+ var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
1128
+ angularportalazure.Debug.write('[angularportalazure-debug] \'BladeData\' constructor called.', [_this, portalService, path, title, subtitle, width]);
1129
+ return _this;
1121
1130
  }
1122
1131
  //#endregion
1123
1132
  //#region Methods
@@ -1145,18 +1154,19 @@ var angularportalazure;
1145
1154
  function BladeDetail(portalService, path, title, subtitle, width) {
1146
1155
  if (subtitle === void 0) { subtitle = ''; }
1147
1156
  if (width === void 0) { width = 200; }
1148
- _super.call(this, portalService, path, title, subtitle, width);
1157
+ var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
1149
1158
  //#region Properties
1150
- this.item = null;
1151
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeDetail\' constructor called.', [this, portalService, path, title, subtitle, width]);
1152
- this.isCommandNew = true;
1153
- this.commandNewText = 'neu';
1154
- this.isCommandSave = true;
1155
- this.commandSaveText = 'speichern';
1156
- this.isCommandDelete = true;
1157
- this.commandDeleteText = 'löschen';
1158
- this.isCommandCancel = true;
1159
- this.commandCancelText = 'abbrechen';
1159
+ _this.item = null;
1160
+ angularportalazure.Debug.write('[angularportalazure-debug] \'BladeDetail\' constructor called.', [_this, portalService, path, title, subtitle, width]);
1161
+ _this.isCommandNew = true;
1162
+ _this.commandNewText = 'neu';
1163
+ _this.isCommandSave = true;
1164
+ _this.commandSaveText = 'speichern';
1165
+ _this.isCommandDelete = true;
1166
+ _this.commandDeleteText = 'löschen';
1167
+ _this.isCommandCancel = true;
1168
+ _this.commandCancelText = 'abbrechen';
1169
+ return _this;
1160
1170
  }
1161
1171
  //#endregion
1162
1172
  //#region Methods
@@ -1209,12 +1219,13 @@ var angularportalazure;
1209
1219
  function BladeGrid(portalService, path, title, subtitle, width) {
1210
1220
  if (subtitle === void 0) { subtitle = ''; }
1211
1221
  if (width === void 0) { width = 200; }
1212
- _super.call(this, portalService, path, title, subtitle, width);
1222
+ var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
1213
1223
  //#region Properties
1214
- this.items = [];
1215
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid\' constructor called.', [this, portalService, path, title, subtitle, width]);
1216
- this.isCommandNew = true;
1217
- this.commandNewText = 'neu';
1224
+ _this.items = [];
1225
+ angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid\' constructor called.', [_this, portalService, path, title, subtitle, width]);
1226
+ _this.isCommandNew = true;
1227
+ _this.commandNewText = 'neu';
1228
+ return _this;
1218
1229
  }
1219
1230
  //#endregion
1220
1231
  //#region Methods
@@ -1392,12 +1403,13 @@ var angularportalazure;
1392
1403
  if (title === void 0) { title = ''; }
1393
1404
  if (subtitle === void 0) { subtitle = ''; }
1394
1405
  if (width === void 0) { width = 200; }
1395
- _super.call(this, portalService, path, title, subtitle, width);
1406
+ var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
1396
1407
  //#region Properties
1397
- this.items = new Array();
1398
- this.isNav = true;
1399
- angularportalazure.Debug.write('[angularportalazure-debug] \'BladeNav\' constructor called.', [this, portalService, path, title, subtitle, width]);
1400
- _super.prototype.navigateTo = this.navigateTo;
1408
+ _this.items = new Array();
1409
+ _this.isNav = true;
1410
+ angularportalazure.Debug.write('[angularportalazure-debug] \'BladeNav\' constructor called.', [_this, portalService, path, title, subtitle, width]);
1411
+ _super.prototype.navigateTo = _this.navigateTo;
1412
+ return _this;
1401
1413
  }
1402
1414
  return BladeNav;
1403
1415
  }(angularportalazure.BladeData));
package/package.json CHANGED
@@ -2,20 +2,20 @@
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.51",
5
+ "version": "0.2.52",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {
9
- "@types/angular": "^1.5.16",
10
- "@types/angular-resource": "^1.5.6",
9
+ "@types/angular": "^1.5.20",
10
+ "@types/angular-resource": "^1.5.8",
11
11
  "@types/ng-dialog": "0.0.31",
12
- "angular": "^1.5.8",
13
- "angular-resource": "^1.5.8",
12
+ "angular": "^1.5.9",
13
+ "angular-resource": "^1.5.9",
14
14
  "angulartics": "^1.3.0",
15
15
  "angulartics-google-analytics": "^0.4.0",
16
16
  "ng-dialog": "^0.6.4"
17
17
  },
18
18
  "devDependencies": {
19
- "typescript": "^2.0.6"
19
+ "typescript": "^2.1.4"
20
20
  }
21
21
  }