@ardimedia/angular-portal-azure 0.2.139 → 0.2.140
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 +36 -50
- package/apn.js +132 -150
- package/directives/blade/angular-portal-blade.ts +1 -0
- package/directives/home/home.html +9 -6
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -50,11 +50,10 @@ declare var $: JQueryStatic;
|
|
|
50
50
|
declare namespace angularportalazure {
|
|
51
51
|
class Blade extends angularportalazure.UserControlBase {
|
|
52
52
|
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
53
|
-
private watcherTitle;
|
|
54
53
|
private bladeContentHeight;
|
|
55
54
|
bladeContentInnerHeight: number;
|
|
56
|
-
path: string;
|
|
57
55
|
private _path;
|
|
56
|
+
path: string;
|
|
58
57
|
title: string;
|
|
59
58
|
subTitle: string;
|
|
60
59
|
width: {
|
|
@@ -151,8 +150,6 @@ declare namespace angularportalazure {
|
|
|
151
150
|
onCommandStop(): void;
|
|
152
151
|
onCommandSwap(): void;
|
|
153
152
|
/** Obsolete */
|
|
154
|
-
bladeClose(): void;
|
|
155
|
-
setTitle(watchExpression: string, func: () => void): void;
|
|
156
153
|
private setBladeHeights();
|
|
157
154
|
}
|
|
158
155
|
}
|
|
@@ -176,6 +173,40 @@ declare namespace angularportalazure {
|
|
|
176
173
|
close(): void;
|
|
177
174
|
}
|
|
178
175
|
}
|
|
176
|
+
declare namespace angularportalazure {
|
|
177
|
+
class BladeData extends angularportalazure.Blade {
|
|
178
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
declare namespace angularportalazure {
|
|
182
|
+
class BladeNav extends angularportalazure.BladeData {
|
|
183
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
|
|
184
|
+
items: Array<angularportalazure.BladeNavItem>;
|
|
185
|
+
isNav: boolean;
|
|
186
|
+
onNavigateTo(path: string): void;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
declare namespace angularportalazure {
|
|
190
|
+
class BladeNavItem {
|
|
191
|
+
title: string;
|
|
192
|
+
cssClass: string;
|
|
193
|
+
bladePath: string;
|
|
194
|
+
hrefPath: string;
|
|
195
|
+
roles: string;
|
|
196
|
+
isVisible: boolean;
|
|
197
|
+
callback: () => any;
|
|
198
|
+
bladeNav: angularportalazure.BladeNav | null;
|
|
199
|
+
constructor(title?: string, cssClass?: string, bladePath?: string, hrefPath?: string, roles?: string, isVisible?: boolean, callback?: () => any, bladeNav?: angularportalazure.BladeNav | null);
|
|
200
|
+
onNavItemClick(): void;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
declare namespace angularportalazure {
|
|
204
|
+
class AreaNotification extends angularportalazure.UserControlBase {
|
|
205
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
|
|
206
|
+
notificationArea: Element;
|
|
207
|
+
show(): void;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
179
210
|
declare namespace angularportalazure {
|
|
180
211
|
interface BladeParameter {
|
|
181
212
|
action: string;
|
|
@@ -253,21 +284,7 @@ declare namespace angularportalazure {
|
|
|
253
284
|
}
|
|
254
285
|
declare namespace angularportalazure {
|
|
255
286
|
class PortalShell extends angularportalazure.UserControlBase {
|
|
256
|
-
/** Obsolete
|
|
257
|
-
* start using this.panorama.title */
|
|
258
|
-
title: string;
|
|
259
|
-
/** Obsolete
|
|
260
|
-
* start using this.panorama.avatarMenu.userAccount */
|
|
261
|
-
user: {};
|
|
262
|
-
/** Obsolete
|
|
263
|
-
* start using this.panorama.startboard.tiles */
|
|
264
|
-
tiles: angularportalazure.Tiles[];
|
|
265
|
-
/** Obsolete
|
|
266
|
-
* start using this.bladesNew.blades. */
|
|
267
|
-
blades: any[];
|
|
268
287
|
constructor(portalService: angularportalazure.PortalService, title: string);
|
|
269
|
-
initialize(): void;
|
|
270
|
-
setObsoleteLayoutProperites(): void;
|
|
271
288
|
}
|
|
272
289
|
}
|
|
273
290
|
declare namespace angularportalazure {
|
|
@@ -295,6 +312,7 @@ declare namespace angularportalazure {
|
|
|
295
312
|
portalShell: angularportalazure.PortalShell;
|
|
296
313
|
panorama: angularportalazure.Panorama;
|
|
297
314
|
bladeArea: angularportalazure.BladeArea;
|
|
315
|
+
areaNotification: angularportalazure.AreaNotification;
|
|
298
316
|
ngDialog: any;
|
|
299
317
|
/** obsolete - $scope is different in any view. do have one instance in a shared service is not the right approach. */
|
|
300
318
|
$scope: angular.IScope;
|
|
@@ -319,11 +337,6 @@ declare namespace angularportalazure {
|
|
|
319
337
|
}
|
|
320
338
|
declare namespace angularportalazure {
|
|
321
339
|
}
|
|
322
|
-
declare namespace angularportalazure {
|
|
323
|
-
class BladeData extends angularportalazure.Blade {
|
|
324
|
-
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
340
|
declare namespace angularportalazure {
|
|
328
341
|
class BladeDetail<T> extends angularportalazure.BladeData {
|
|
329
342
|
item: T | null;
|
|
@@ -347,33 +360,6 @@ declare namespace angularportalazure {
|
|
|
347
360
|
onFilter(actual: Object, expected: string): boolean;
|
|
348
361
|
}
|
|
349
362
|
}
|
|
350
|
-
declare namespace angularportalazure {
|
|
351
|
-
class BladeNavItem {
|
|
352
|
-
title: string;
|
|
353
|
-
cssClass: string;
|
|
354
|
-
bladePath: string;
|
|
355
|
-
hrefPath: string;
|
|
356
|
-
roles: string;
|
|
357
|
-
isVisible: boolean;
|
|
358
|
-
callback: () => any;
|
|
359
|
-
bladeNav: angularportalazure.BladeNav | null;
|
|
360
|
-
constructor(title?: string, cssClass?: string, bladePath?: string, hrefPath?: string, roles?: string, isVisible?: boolean, callback?: () => any, bladeNav?: angularportalazure.BladeNav | null);
|
|
361
|
-
onNavItemClick(): void;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
declare namespace angularportalazure {
|
|
365
|
-
class BladeNav extends angularportalazure.BladeData {
|
|
366
|
-
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
|
|
367
|
-
items: Array<angularportalazure.BladeNavItem>;
|
|
368
|
-
isNav: boolean;
|
|
369
|
-
onNavigateTo(path: string): void;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
declare namespace angularportalazure {
|
|
373
|
-
class BladeNotification extends angularportalazure.BladeData {
|
|
374
|
-
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
363
|
declare namespace angularportalazure {
|
|
378
364
|
class Exception implements angularportalazure.IExceptionDotNet {
|
|
379
365
|
ExceptionType: string;
|
package/apn.js
CHANGED
|
@@ -291,10 +291,10 @@ var angularportalazure;
|
|
|
291
291
|
}
|
|
292
292
|
//#region Add BladeArea.AddBlade event listener
|
|
293
293
|
/** OBSOLETE: remove when all OBSOLETE code has been removed */
|
|
294
|
-
if (portalService instanceof angularportalazure.PortalService == false) {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}
|
|
294
|
+
//if (portalService instanceof angularportalazure.PortalService == false) {
|
|
295
|
+
// console.log('Blade.constructor: This code cannot be removed yet.')
|
|
296
|
+
// return;
|
|
297
|
+
//}
|
|
298
298
|
/** OBSOLETE: end */
|
|
299
299
|
//// Register listener1
|
|
300
300
|
//this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args: angularportalazure.IAddBladeEventArgs) {
|
|
@@ -304,7 +304,8 @@ var angularportalazure;
|
|
|
304
304
|
// }
|
|
305
305
|
//});
|
|
306
306
|
//#endregion
|
|
307
|
-
// Set this
|
|
307
|
+
// Set 'this.portalService.bladeArea.blades[index]' to 'this'
|
|
308
|
+
// 'this.portalService.bladeArea.blades[index]' was generated during AddBlade
|
|
308
309
|
_this.portalService.bladeArea.blades.forEach(function (blade, index) {
|
|
309
310
|
if (blade.path === _this.path) {
|
|
310
311
|
_this.portalService.bladeArea.blades[index] = _this;
|
|
@@ -314,7 +315,6 @@ var angularportalazure;
|
|
|
314
315
|
return _this;
|
|
315
316
|
}
|
|
316
317
|
Object.defineProperty(Blade.prototype, "path", {
|
|
317
|
-
//#region path
|
|
318
318
|
get: function () {
|
|
319
319
|
return this._path;
|
|
320
320
|
},
|
|
@@ -469,18 +469,17 @@ var angularportalazure;
|
|
|
469
469
|
//#endregion
|
|
470
470
|
//#region OBSOLETE
|
|
471
471
|
/** Obsolete */
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
}
|
|
472
|
+
//bladeClose() {
|
|
473
|
+
// this.close();
|
|
474
|
+
//}
|
|
475
475
|
//#endregion
|
|
476
476
|
//#endregion
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
};
|
|
477
|
+
//setTitle(watchExpression: string, func: () => void) {
|
|
478
|
+
// if (this.watcherTitle === undefined) {
|
|
479
|
+
// this.watcherTitle = this.$scope.$watch(watchExpression, () => { func(); });
|
|
480
|
+
// this.$scope.$on('$destroy', () => { this.watcherTitle(); });
|
|
481
|
+
// }
|
|
482
|
+
//}
|
|
484
483
|
Blade.prototype.setBladeHeights = function () {
|
|
485
484
|
var that = this;
|
|
486
485
|
that.bladeContentHeight = $('.fxs-blade-content').height();
|
|
@@ -685,6 +684,118 @@ var angularportalazure;
|
|
|
685
684
|
angularportalazure.BladeArea = BladeArea;
|
|
686
685
|
angular.module('angularportalazure').service('angularportalazure.bladeArea', BladeArea);
|
|
687
686
|
})(angularportalazure || (angularportalazure = {}));
|
|
687
|
+
/// <reference path="bladearea.ts" />
|
|
688
|
+
/// <reference path="debug.ts" />
|
|
689
|
+
/// <reference path="portalservice.ts" />
|
|
690
|
+
"use strict";
|
|
691
|
+
var angularportalazure;
|
|
692
|
+
(function (angularportalazure) {
|
|
693
|
+
var BladeData = (function (_super) {
|
|
694
|
+
__extends(BladeData, _super);
|
|
695
|
+
//#region Constructor
|
|
696
|
+
function BladeData($scope, portalService, path, title, subtitle, width) {
|
|
697
|
+
if (subtitle === void 0) { subtitle = ''; }
|
|
698
|
+
if (width === void 0) { width = 300; }
|
|
699
|
+
return _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
700
|
+
}
|
|
701
|
+
return BladeData;
|
|
702
|
+
}(angularportalazure.Blade));
|
|
703
|
+
angularportalazure.BladeData = BladeData;
|
|
704
|
+
})(angularportalazure || (angularportalazure = {}));
|
|
705
|
+
/// <reference path="bladedata.ts" />
|
|
706
|
+
/// <reference path="debug.ts" />
|
|
707
|
+
/// <reference path="bladenavitem.ts" />
|
|
708
|
+
/// <reference path="portalservice.ts" />
|
|
709
|
+
"use strict";
|
|
710
|
+
var angularportalazure;
|
|
711
|
+
(function (angularportalazure) {
|
|
712
|
+
var BladeNav = (function (_super) {
|
|
713
|
+
__extends(BladeNav, _super);
|
|
714
|
+
//#region Constructor
|
|
715
|
+
function BladeNav($scope, portalService, path, title, subtitle, width) {
|
|
716
|
+
if (title === void 0) { title = ''; }
|
|
717
|
+
if (subtitle === void 0) { subtitle = ''; }
|
|
718
|
+
if (width === void 0) { width = 315; }
|
|
719
|
+
var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
720
|
+
//#endregion
|
|
721
|
+
//#region Properties
|
|
722
|
+
_this.items = new Array();
|
|
723
|
+
_this.isNav = true;
|
|
724
|
+
_this.isInnerHtml = false;
|
|
725
|
+
return _this;
|
|
726
|
+
}
|
|
727
|
+
//#endregion
|
|
728
|
+
//#region Methods
|
|
729
|
+
BladeNav.prototype.onNavigateTo = function (path) {
|
|
730
|
+
if (path === '') {
|
|
731
|
+
return;
|
|
732
|
+
}
|
|
733
|
+
this.portalService.bladeArea.raiseAddBladeEvent({ path: path, pathSender: this.path });
|
|
734
|
+
};
|
|
735
|
+
return BladeNav;
|
|
736
|
+
}(angularportalazure.BladeData));
|
|
737
|
+
angularportalazure.BladeNav = BladeNav;
|
|
738
|
+
})(angularportalazure || (angularportalazure = {}));
|
|
739
|
+
/// <reference path="debug.ts" />
|
|
740
|
+
/// <reference path="bladenav.ts" />
|
|
741
|
+
"use strict";
|
|
742
|
+
var angularportalazure;
|
|
743
|
+
(function (angularportalazure) {
|
|
744
|
+
var BladeNavItem = (function () {
|
|
745
|
+
//#region Constructor
|
|
746
|
+
function BladeNavItem(title, cssClass, bladePath, hrefPath, roles, isVisible, callback, bladeNav) {
|
|
747
|
+
if (title === void 0) { title = ''; }
|
|
748
|
+
if (cssClass === void 0) { cssClass = ""; }
|
|
749
|
+
if (bladePath === void 0) { bladePath = ''; }
|
|
750
|
+
if (hrefPath === void 0) { hrefPath = ""; }
|
|
751
|
+
if (roles === void 0) { roles = ""; }
|
|
752
|
+
if (isVisible === void 0) { isVisible = true; }
|
|
753
|
+
if (callback === void 0) { callback = null; }
|
|
754
|
+
if (bladeNav === void 0) { bladeNav = null; }
|
|
755
|
+
this.title = title;
|
|
756
|
+
this.cssClass = cssClass;
|
|
757
|
+
this.bladePath = bladePath;
|
|
758
|
+
this.hrefPath = hrefPath;
|
|
759
|
+
this.roles = roles;
|
|
760
|
+
this.isVisible = isVisible;
|
|
761
|
+
this.callback = callback;
|
|
762
|
+
this.bladeNav = bladeNav;
|
|
763
|
+
}
|
|
764
|
+
//#endregion
|
|
765
|
+
//#region
|
|
766
|
+
BladeNavItem.prototype.onNavItemClick = function () {
|
|
767
|
+
if (this.callback != null) {
|
|
768
|
+
this.callback();
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
return BladeNavItem;
|
|
772
|
+
}());
|
|
773
|
+
angularportalazure.BladeNavItem = BladeNavItem;
|
|
774
|
+
})(angularportalazure || (angularportalazure = {}));
|
|
775
|
+
/// <reference path="bladedata.ts" />
|
|
776
|
+
/// <reference path="debug.ts" />
|
|
777
|
+
/// <reference path="bladenavitem.ts" />
|
|
778
|
+
/// <reference path="portalservice.ts" />
|
|
779
|
+
"use strict";
|
|
780
|
+
var angularportalazure;
|
|
781
|
+
(function (angularportalazure) {
|
|
782
|
+
var AreaNotification = (function (_super) {
|
|
783
|
+
__extends(AreaNotification, _super);
|
|
784
|
+
//#region Constructor
|
|
785
|
+
function AreaNotification($scope, portalService) {
|
|
786
|
+
var _this = _super.call(this, $scope, portalService) || this;
|
|
787
|
+
_this.notificationArea = $('#apa-notification-area')[0];
|
|
788
|
+
console.log(_this.notificationArea);
|
|
789
|
+
return _this;
|
|
790
|
+
}
|
|
791
|
+
//#endregion
|
|
792
|
+
//#region Methods
|
|
793
|
+
AreaNotification.prototype.show = function () {
|
|
794
|
+
};
|
|
795
|
+
return AreaNotification;
|
|
796
|
+
}(angularportalazure.UserControlBase));
|
|
797
|
+
angularportalazure.AreaNotification = AreaNotification;
|
|
798
|
+
})(angularportalazure || (angularportalazure = {}));
|
|
688
799
|
"use strict";
|
|
689
800
|
/// <reference path="debug.ts" />
|
|
690
801
|
/// <reference path="portalservice.ts" />
|
|
@@ -874,8 +985,6 @@ var angularportalazure;
|
|
|
874
985
|
(function (angularportalazure) {
|
|
875
986
|
var PortalShell = (function (_super) {
|
|
876
987
|
__extends(PortalShell, _super);
|
|
877
|
-
//#endregion
|
|
878
|
-
//#endregion
|
|
879
988
|
//#region Constructor
|
|
880
989
|
function PortalShell(portalService, title) {
|
|
881
990
|
var _this = _super.call(this, null, portalService) || this;
|
|
@@ -883,38 +992,18 @@ var angularportalazure;
|
|
|
883
992
|
_this.portalService.portalShell = _this;
|
|
884
993
|
_this.portalService.panorama = new angularportalazure.Panorama(_this.$scope, title, _this.portalService);
|
|
885
994
|
_this.portalService.bladeArea = new angularportalazure.BladeArea(_this.$scope, portalService);
|
|
886
|
-
_this.
|
|
995
|
+
_this.portalService.areaNotification = new angularportalazure.AreaNotification(_this.$scope, portalService);
|
|
996
|
+
_this.portalService.panorama.title = title;
|
|
887
997
|
return _this;
|
|
998
|
+
//this.initialize();
|
|
888
999
|
}
|
|
889
|
-
//#endregion
|
|
890
|
-
//#region Methods
|
|
891
|
-
PortalShell.prototype.initialize = function () {
|
|
892
|
-
this.setObsoleteLayoutProperites();
|
|
893
|
-
};
|
|
894
|
-
PortalShell.prototype.setObsoleteLayoutProperites = function () {
|
|
895
|
-
this.title = this.portalService.panorama.title;
|
|
896
|
-
this.tiles = this.portalService.panorama.startboard.tiles.tiles;
|
|
897
|
-
this.blades = this.portalService.bladeArea.blades;
|
|
898
|
-
//var bladeServiceOLD = <angularportalazure.Blade>this.portalService.$injector.get('bladeService');
|
|
899
|
-
//bladeServiceOLD.blades = this.portalService.bladeArea.blades;
|
|
900
|
-
if (this.portalService.panorama.avatarMenu.userAccount != undefined) {
|
|
901
|
-
this.user = {
|
|
902
|
-
name: this.portalService.panorama.avatarMenu.userAccount.name,
|
|
903
|
-
emailaddress: this.portalService.panorama.avatarMenu.userAccount.userName
|
|
904
|
-
};
|
|
905
|
-
}
|
|
906
|
-
//if (this.portalService.bladeArea != null) {
|
|
907
|
-
// this.portalService.bladeArea.blades.forEach(function (blade) {
|
|
908
|
-
// //blade.setObsoleteLayoutProperites();
|
|
909
|
-
// });
|
|
910
|
-
//}
|
|
911
|
-
};
|
|
912
1000
|
return PortalShell;
|
|
913
1001
|
}(angularportalazure.UserControlBase));
|
|
914
1002
|
angularportalazure.PortalShell = PortalShell;
|
|
915
1003
|
})(angularportalazure || (angularportalazure = {}));
|
|
916
1004
|
/// <reference types="angular" />
|
|
917
1005
|
/// <reference types="angulartics" />
|
|
1006
|
+
/// <reference path="areanotification.ts" />
|
|
918
1007
|
/// <reference path="bladearea.ts" />
|
|
919
1008
|
/// <reference path="debug.ts" />
|
|
920
1009
|
/// <reference path="bladeparameter.ts" />
|
|
@@ -1033,6 +1122,7 @@ var angularportalazure;
|
|
|
1033
1122
|
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
1034
1123
|
function AngularPortalBladeController(portalService) {
|
|
1035
1124
|
this.$onInit = function () {
|
|
1125
|
+
console.log('$onInit');
|
|
1036
1126
|
this.close = function () {
|
|
1037
1127
|
portalService.bladeArea.clearLastLevel();
|
|
1038
1128
|
};
|
|
@@ -1145,24 +1235,6 @@ var angularportalazure;
|
|
|
1145
1235
|
};
|
|
1146
1236
|
angular.module('angularportalazure').component('nav', nav);
|
|
1147
1237
|
})(angularportalazure || (angularportalazure = {}));
|
|
1148
|
-
/// <reference path="bladearea.ts" />
|
|
1149
|
-
/// <reference path="debug.ts" />
|
|
1150
|
-
/// <reference path="portalservice.ts" />
|
|
1151
|
-
"use strict";
|
|
1152
|
-
var angularportalazure;
|
|
1153
|
-
(function (angularportalazure) {
|
|
1154
|
-
var BladeData = (function (_super) {
|
|
1155
|
-
__extends(BladeData, _super);
|
|
1156
|
-
//#region Constructor
|
|
1157
|
-
function BladeData($scope, portalService, path, title, subtitle, width) {
|
|
1158
|
-
if (subtitle === void 0) { subtitle = ''; }
|
|
1159
|
-
if (width === void 0) { width = 300; }
|
|
1160
|
-
return _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
1161
|
-
}
|
|
1162
|
-
return BladeData;
|
|
1163
|
-
}(angularportalazure.Blade));
|
|
1164
|
-
angularportalazure.BladeData = BladeData;
|
|
1165
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
1166
1238
|
/// <reference path="bladedata.ts" />
|
|
1167
1239
|
/// <reference path="debug.ts" />
|
|
1168
1240
|
/// <reference path="portalservice.ts" />
|
|
@@ -1363,96 +1435,6 @@ var angularportalazure;
|
|
|
1363
1435
|
angularportalazure.BladeGrid = BladeGrid;
|
|
1364
1436
|
})(angularportalazure || (angularportalazure = {}));
|
|
1365
1437
|
/// <reference path="debug.ts" />
|
|
1366
|
-
/// <reference path="bladenav.ts" />
|
|
1367
|
-
"use strict";
|
|
1368
|
-
var angularportalazure;
|
|
1369
|
-
(function (angularportalazure) {
|
|
1370
|
-
var BladeNavItem = (function () {
|
|
1371
|
-
//#region Constructor
|
|
1372
|
-
function BladeNavItem(title, cssClass, bladePath, hrefPath, roles, isVisible, callback, bladeNav) {
|
|
1373
|
-
if (title === void 0) { title = ''; }
|
|
1374
|
-
if (cssClass === void 0) { cssClass = ""; }
|
|
1375
|
-
if (bladePath === void 0) { bladePath = ''; }
|
|
1376
|
-
if (hrefPath === void 0) { hrefPath = ""; }
|
|
1377
|
-
if (roles === void 0) { roles = ""; }
|
|
1378
|
-
if (isVisible === void 0) { isVisible = true; }
|
|
1379
|
-
if (callback === void 0) { callback = null; }
|
|
1380
|
-
if (bladeNav === void 0) { bladeNav = null; }
|
|
1381
|
-
this.title = title;
|
|
1382
|
-
this.cssClass = cssClass;
|
|
1383
|
-
this.bladePath = bladePath;
|
|
1384
|
-
this.hrefPath = hrefPath;
|
|
1385
|
-
this.roles = roles;
|
|
1386
|
-
this.isVisible = isVisible;
|
|
1387
|
-
this.callback = callback;
|
|
1388
|
-
this.bladeNav = bladeNav;
|
|
1389
|
-
}
|
|
1390
|
-
//#endregion
|
|
1391
|
-
//#region
|
|
1392
|
-
BladeNavItem.prototype.onNavItemClick = function () {
|
|
1393
|
-
if (this.callback != null) {
|
|
1394
|
-
this.callback();
|
|
1395
|
-
}
|
|
1396
|
-
};
|
|
1397
|
-
return BladeNavItem;
|
|
1398
|
-
}());
|
|
1399
|
-
angularportalazure.BladeNavItem = BladeNavItem;
|
|
1400
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
1401
|
-
/// <reference path="bladedata.ts" />
|
|
1402
|
-
/// <reference path="debug.ts" />
|
|
1403
|
-
/// <reference path="bladenavitem.ts" />
|
|
1404
|
-
/// <reference path="portalservice.ts" />
|
|
1405
|
-
"use strict";
|
|
1406
|
-
var angularportalazure;
|
|
1407
|
-
(function (angularportalazure) {
|
|
1408
|
-
var BladeNav = (function (_super) {
|
|
1409
|
-
__extends(BladeNav, _super);
|
|
1410
|
-
//#region Constructor
|
|
1411
|
-
function BladeNav($scope, portalService, path, title, subtitle, width) {
|
|
1412
|
-
if (title === void 0) { title = ''; }
|
|
1413
|
-
if (subtitle === void 0) { subtitle = ''; }
|
|
1414
|
-
if (width === void 0) { width = 315; }
|
|
1415
|
-
var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
1416
|
-
//#endregion
|
|
1417
|
-
//#region Properties
|
|
1418
|
-
_this.items = new Array();
|
|
1419
|
-
_this.isNav = true;
|
|
1420
|
-
_this.isInnerHtml = false;
|
|
1421
|
-
return _this;
|
|
1422
|
-
}
|
|
1423
|
-
//#endregion
|
|
1424
|
-
//#region Methods
|
|
1425
|
-
BladeNav.prototype.onNavigateTo = function (path) {
|
|
1426
|
-
if (path === '') {
|
|
1427
|
-
return;
|
|
1428
|
-
}
|
|
1429
|
-
this.portalService.bladeArea.raiseAddBladeEvent({ path: path, pathSender: this.path });
|
|
1430
|
-
};
|
|
1431
|
-
return BladeNav;
|
|
1432
|
-
}(angularportalazure.BladeData));
|
|
1433
|
-
angularportalazure.BladeNav = BladeNav;
|
|
1434
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
1435
|
-
/// <reference path="bladedata.ts" />
|
|
1436
|
-
/// <reference path="debug.ts" />
|
|
1437
|
-
/// <reference path="bladenavitem.ts" />
|
|
1438
|
-
/// <reference path="portalservice.ts" />
|
|
1439
|
-
"use strict";
|
|
1440
|
-
var angularportalazure;
|
|
1441
|
-
(function (angularportalazure) {
|
|
1442
|
-
var BladeNotification = (function (_super) {
|
|
1443
|
-
__extends(BladeNotification, _super);
|
|
1444
|
-
//#region Constructor
|
|
1445
|
-
function BladeNotification($scope, portalService, path, title, subtitle, width) {
|
|
1446
|
-
if (title === void 0) { title = ''; }
|
|
1447
|
-
if (subtitle === void 0) { subtitle = ''; }
|
|
1448
|
-
if (width === void 0) { width = 315; }
|
|
1449
|
-
return _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
1450
|
-
}
|
|
1451
|
-
return BladeNotification;
|
|
1452
|
-
}(angularportalazure.BladeData));
|
|
1453
|
-
angularportalazure.BladeNotification = BladeNotification;
|
|
1454
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
1455
|
-
/// <reference path="debug.ts" />
|
|
1456
1438
|
"use strict";
|
|
1457
1439
|
var angularportalazure;
|
|
1458
1440
|
(function (angularportalazure) {
|
|
@@ -32,6 +32,7 @@ namespace angularportalazure {
|
|
|
32
32
|
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
33
33
|
function AngularPortalBladeController(portalService: angularportalazure.PortalService) {
|
|
34
34
|
this.$onInit = function () {
|
|
35
|
+
console.log('$onInit');
|
|
35
36
|
this.close = function () {
|
|
36
37
|
portalService.bladeArea.clearLastLevel();
|
|
37
38
|
};
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
<div id="azureportalscroll" class="fxs-portal-content fxs-panorama">
|
|
4
4
|
<div class="fxs-panorama-homearea" ng-class="{collapsed: !$ctrl.vm.portalService.panorama.startboard.tiles.showTiles}" ng-show="$ctrl.vm.portalService.panorama.isVisible">
|
|
5
5
|
<header class="fxs-pannable" ng-class="{collapsed: !$ctrl.vm.portalService.panorama.startboard.tiles.showTiles}">
|
|
6
|
-
<h1 class="fxs-panorama-title fxs-pannable">{{$ctrl.vm.title}}</h1>
|
|
6
|
+
<h1 class="fxs-panorama-title fxs-pannable">{{$ctrl.vm.portalService.panorama.title}}</h1>
|
|
7
7
|
<div class="fxs-avatarmenu-target fxs-avatarmenu" ng-class="{collapsed: !$ctrl.vm.portalService.panorama.startboard.tiles.showTiles}">
|
|
8
8
|
<a class="fxs-avatarmenu-header" href="/Account/Manage">
|
|
9
9
|
<img alt="" src="/node_modules/@ardimedia/angular-portal-azure/images/avatar.jpg" />
|
|
10
|
-
<div class="fxs-avatarmenu-username">{{$ctrl.vm.
|
|
11
|
-
<div class="fxs-avatarmenu-emailaddresse">{{$ctrl.vm.
|
|
10
|
+
<div class="fxs-avatarmenu-username">{{$ctrl.vm.portalService.panorama.avatarMenu.userAccount.name}}</div>
|
|
11
|
+
<div class="fxs-avatarmenu-emailaddresse">{{$ctrl.vm.portalService.panorama.avatarMenu.userAccount.userName}}</div>
|
|
12
12
|
</a>
|
|
13
13
|
</div>
|
|
14
14
|
</header>
|
|
15
15
|
<div class="fxs-startboard-target fxs-startboard fx-rightClick" ng-class="{collapsed: !$ctrl.vm.portalService.panorama.startboard.tiles.showTiles}">
|
|
16
16
|
<div class="fxs-startboard-layout fxs-flowlayout">
|
|
17
17
|
<div class="fxs-flowlayout-childcontainer">
|
|
18
|
-
<section data-ng-repeat="tile in $ctrl.vm.tiles track by $index" class="fxs-tile fx-rightClick fxs-flowlayout-element" data-ng-class="{'fxs-tilesize-normal':tile.size=='normal', 'fxs-tilesize-mini':tile.size=='mini', 'fxs-tilesize-herowide':tile.size=='herowide'}" data-ng-style="{'left': tile.left, 'top': tile.top}">
|
|
19
|
-
<div class="fxs-part fxs-part-clickable" ng-click="
|
|
18
|
+
<section data-ng-repeat="tile in $ctrl.vm.portalService.panorama.startboard.tiles.tiles track by $index" class="fxs-tile fx-rightClick fxs-flowlayout-element" data-ng-class="{'fxs-tilesize-normal':tile.size=='normal', 'fxs-tilesize-mini':tile.size=='mini', 'fxs-tilesize-herowide':tile.size=='herowide'}" data-ng-style="{'left': tile.left, 'top': tile.top}">
|
|
19
|
+
<div class="fxs-part fxs-part-clickable" ng-click="tile.clicked();" style="cursor:pointer;">
|
|
20
20
|
<header class="fxs-part-title">
|
|
21
21
|
<h2 class="msportalfx-tooltip-overflow">{{tile.title}}</h2>
|
|
22
22
|
<h3 class="msportalfx-tooltip-overflow">{{tile.subTitle}}</h3>
|
|
@@ -31,8 +31,11 @@
|
|
|
31
31
|
</div>
|
|
32
32
|
<div class="fxs-journey-target fxs-journey">
|
|
33
33
|
<div class="fxs-journey-layout fxs-stacklayout fxs-stacklayout-horizontal">
|
|
34
|
-
<div data-ng-repeat="blade in $ctrl.vm.blades track by $index" class="azureportalblade fxs-stacklayout-child" ng-include="blade.path"></div>
|
|
34
|
+
<div data-ng-repeat="blade in $ctrl.vm.portalService.bladeArea.blades track by $index" class="azureportalblade fxs-stacklayout-child" ng-include="blade.path"></div>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
|
+
<div id="apa-notification-area" style="background-color:red;display: inline-block;height:100%;width:250px;position:absolute;left:624px;top:0">
|
|
38
|
+
asdf
|
|
39
|
+
</div>
|
|
37
40
|
</div>
|
|
38
41
|
</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.
|
|
5
|
+
"version": "0.2.140",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|