@ardimedia/angular-portal-azure 0.2.138 → 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 +39 -55
- package/apn.js +146 -171
- 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
|
|
54
|
-
bladeContentHeight: number;
|
|
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: {
|
|
@@ -120,13 +119,7 @@ declare namespace angularportalazure {
|
|
|
120
119
|
commandSwapText: string;
|
|
121
120
|
/** Obsolete */
|
|
122
121
|
/** Obsolete */
|
|
123
|
-
isNavGrid: boolean;
|
|
124
122
|
/** Obsolete */
|
|
125
|
-
navGrid: {
|
|
126
|
-
portalService: PortalService;
|
|
127
|
-
items: any[];
|
|
128
|
-
navigateTo: (path: string) => void;
|
|
129
|
-
};
|
|
130
123
|
activate(): void;
|
|
131
124
|
onActivate(): void;
|
|
132
125
|
onActivated(): void;
|
|
@@ -157,13 +150,12 @@ declare namespace angularportalazure {
|
|
|
157
150
|
onCommandStop(): void;
|
|
158
151
|
onCommandSwap(): void;
|
|
159
152
|
/** Obsolete */
|
|
160
|
-
bladeClose(): void;
|
|
161
|
-
setTitle(watchExpression: string, func: () => void): void;
|
|
162
153
|
private setBladeHeights();
|
|
163
154
|
}
|
|
164
155
|
}
|
|
165
156
|
declare namespace angularportalazure {
|
|
166
157
|
class BladeArea extends angularportalazure.UserControlBase {
|
|
158
|
+
static $inject: string[];
|
|
167
159
|
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
|
|
168
160
|
private listener1;
|
|
169
161
|
blades: Array<angularportalazure.Blade>;
|
|
@@ -177,10 +169,42 @@ declare namespace angularportalazure {
|
|
|
177
169
|
clearChild(path: string): void;
|
|
178
170
|
showPanoramaIfNoBlades(): void;
|
|
179
171
|
hidePanorama(): void;
|
|
180
|
-
/**
|
|
172
|
+
/** We need to call this when BladeArea is no longer used, otherwise the listener does not get removed. */
|
|
181
173
|
close(): void;
|
|
182
|
-
|
|
183
|
-
|
|
174
|
+
}
|
|
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;
|
|
184
208
|
}
|
|
185
209
|
}
|
|
186
210
|
declare namespace angularportalazure {
|
|
@@ -260,21 +284,7 @@ declare namespace angularportalazure {
|
|
|
260
284
|
}
|
|
261
285
|
declare namespace angularportalazure {
|
|
262
286
|
class PortalShell extends angularportalazure.UserControlBase {
|
|
263
|
-
/** Obsolete
|
|
264
|
-
* start using this.panorama.title */
|
|
265
|
-
title: string;
|
|
266
|
-
/** Obsolete
|
|
267
|
-
* start using this.panorama.avatarMenu.userAccount */
|
|
268
|
-
user: {};
|
|
269
|
-
/** Obsolete
|
|
270
|
-
* start using this.panorama.startboard.tiles */
|
|
271
|
-
tiles: angularportalazure.Tiles[];
|
|
272
|
-
/** Obsolete
|
|
273
|
-
* start using this.bladesNew.blades. */
|
|
274
|
-
blades: any[];
|
|
275
287
|
constructor(portalService: angularportalazure.PortalService, title: string);
|
|
276
|
-
initialize(): void;
|
|
277
|
-
setObsoleteLayoutProperites(): void;
|
|
278
288
|
}
|
|
279
289
|
}
|
|
280
290
|
declare namespace angularportalazure {
|
|
@@ -302,6 +312,7 @@ declare namespace angularportalazure {
|
|
|
302
312
|
portalShell: angularportalazure.PortalShell;
|
|
303
313
|
panorama: angularportalazure.Panorama;
|
|
304
314
|
bladeArea: angularportalazure.BladeArea;
|
|
315
|
+
areaNotification: angularportalazure.AreaNotification;
|
|
305
316
|
ngDialog: any;
|
|
306
317
|
/** obsolete - $scope is different in any view. do have one instance in a shared service is not the right approach. */
|
|
307
318
|
$scope: angular.IScope;
|
|
@@ -326,11 +337,6 @@ declare namespace angularportalazure {
|
|
|
326
337
|
}
|
|
327
338
|
declare namespace angularportalazure {
|
|
328
339
|
}
|
|
329
|
-
declare namespace angularportalazure {
|
|
330
|
-
class BladeData extends angularportalazure.Blade {
|
|
331
|
-
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
340
|
declare namespace angularportalazure {
|
|
335
341
|
class BladeDetail<T> extends angularportalazure.BladeData {
|
|
336
342
|
item: T | null;
|
|
@@ -354,28 +360,6 @@ declare namespace angularportalazure {
|
|
|
354
360
|
onFilter(actual: Object, expected: string): boolean;
|
|
355
361
|
}
|
|
356
362
|
}
|
|
357
|
-
declare namespace angularportalazure {
|
|
358
|
-
class BladeNavItem {
|
|
359
|
-
title: string;
|
|
360
|
-
cssClass: string;
|
|
361
|
-
bladePath: string;
|
|
362
|
-
hrefPath: string;
|
|
363
|
-
roles: string;
|
|
364
|
-
isVisible: boolean;
|
|
365
|
-
callback: () => any;
|
|
366
|
-
bladeNav: angularportalazure.BladeNav | null;
|
|
367
|
-
constructor(title?: string, cssClass?: string, bladePath?: string, hrefPath?: string, roles?: string, isVisible?: boolean, callback?: () => any, bladeNav?: angularportalazure.BladeNav | null);
|
|
368
|
-
onNavItemClick(): void;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
declare namespace angularportalazure {
|
|
372
|
-
class BladeNav extends angularportalazure.BladeData {
|
|
373
|
-
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
|
|
374
|
-
items: Array<angularportalazure.BladeNavItem>;
|
|
375
|
-
isNav: boolean;
|
|
376
|
-
onNavigateTo(path: string): void;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
363
|
declare namespace angularportalazure {
|
|
380
364
|
class Exception implements angularportalazure.IExceptionDotNet {
|
|
381
365
|
ExceptionType: string;
|
package/apn.js
CHANGED
|
@@ -264,19 +264,13 @@ var angularportalazure;
|
|
|
264
264
|
_this.isCommandSwap = false;
|
|
265
265
|
_this.commandSwap = function () { this.onCommandSwap(); };
|
|
266
266
|
_this.commandSwapText = '';
|
|
267
|
-
/** Obsolete */
|
|
268
|
-
_this.navGrid = {
|
|
269
|
-
portalService: null,
|
|
270
|
-
items: [],
|
|
271
|
-
navigateTo: function (path) { }
|
|
272
|
-
};
|
|
273
267
|
var that = _this;
|
|
274
268
|
_this.path = path;
|
|
275
269
|
_this.title = title;
|
|
276
270
|
_this.subTitle = subtitle;
|
|
277
271
|
_this.width.width = width + 'px';
|
|
278
272
|
_this.widthStackLayout.width = width - 50 + 'px';
|
|
279
|
-
|
|
273
|
+
//this.navGrid.portalService = portalService;
|
|
280
274
|
if (!portalService) {
|
|
281
275
|
throw new Error('[angularportalazure.Blade] constructor parameter \'portalService\' must be provided.');
|
|
282
276
|
}
|
|
@@ -297,10 +291,10 @@ var angularportalazure;
|
|
|
297
291
|
}
|
|
298
292
|
//#region Add BladeArea.AddBlade event listener
|
|
299
293
|
/** OBSOLETE: remove when all OBSOLETE code has been removed */
|
|
300
|
-
if (portalService instanceof angularportalazure.PortalService == false) {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
294
|
+
//if (portalService instanceof angularportalazure.PortalService == false) {
|
|
295
|
+
// console.log('Blade.constructor: This code cannot be removed yet.')
|
|
296
|
+
// return;
|
|
297
|
+
//}
|
|
304
298
|
/** OBSOLETE: end */
|
|
305
299
|
//// Register listener1
|
|
306
300
|
//this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args: angularportalazure.IAddBladeEventArgs) {
|
|
@@ -310,7 +304,8 @@ var angularportalazure;
|
|
|
310
304
|
// }
|
|
311
305
|
//});
|
|
312
306
|
//#endregion
|
|
313
|
-
// Set this
|
|
307
|
+
// Set 'this.portalService.bladeArea.blades[index]' to 'this'
|
|
308
|
+
// 'this.portalService.bladeArea.blades[index]' was generated during AddBlade
|
|
314
309
|
_this.portalService.bladeArea.blades.forEach(function (blade, index) {
|
|
315
310
|
if (blade.path === _this.path) {
|
|
316
311
|
_this.portalService.bladeArea.blades[index] = _this;
|
|
@@ -320,7 +315,6 @@ var angularportalazure;
|
|
|
320
315
|
return _this;
|
|
321
316
|
}
|
|
322
317
|
Object.defineProperty(Blade.prototype, "path", {
|
|
323
|
-
//#region path
|
|
324
318
|
get: function () {
|
|
325
319
|
return this._path;
|
|
326
320
|
},
|
|
@@ -335,6 +329,18 @@ var angularportalazure;
|
|
|
335
329
|
configurable: true
|
|
336
330
|
});
|
|
337
331
|
//#endregion
|
|
332
|
+
//#region OBSOLETE
|
|
333
|
+
/** Obsolete */
|
|
334
|
+
//blade: Blade;
|
|
335
|
+
/** Obsolete */
|
|
336
|
+
//isNavGrid: boolean;
|
|
337
|
+
/** Obsolete */
|
|
338
|
+
//navGrid = {
|
|
339
|
+
// portalService: <angularportalazure.PortalService | null>null,
|
|
340
|
+
// items: [],
|
|
341
|
+
// navigateTo: function (path: string) { }
|
|
342
|
+
//};
|
|
343
|
+
//#endregion
|
|
338
344
|
//#endregion
|
|
339
345
|
//#region Methods
|
|
340
346
|
//#region Methods
|
|
@@ -463,18 +469,17 @@ var angularportalazure;
|
|
|
463
469
|
//#endregion
|
|
464
470
|
//#region OBSOLETE
|
|
465
471
|
/** Obsolete */
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
}
|
|
472
|
+
//bladeClose() {
|
|
473
|
+
// this.close();
|
|
474
|
+
//}
|
|
469
475
|
//#endregion
|
|
470
476
|
//#endregion
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
};
|
|
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
|
+
//}
|
|
478
483
|
Blade.prototype.setBladeHeights = function () {
|
|
479
484
|
var that = this;
|
|
480
485
|
that.bladeContentHeight = $('.fxs-blade-content').height();
|
|
@@ -504,7 +509,6 @@ var angularportalazure;
|
|
|
504
509
|
(function (angularportalazure) {
|
|
505
510
|
var BladeArea = (function (_super) {
|
|
506
511
|
__extends(BladeArea, _super);
|
|
507
|
-
//#region Constructor
|
|
508
512
|
function BladeArea($scope, portalService) {
|
|
509
513
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
510
514
|
_this.blades = new Array();
|
|
@@ -669,48 +673,128 @@ var angularportalazure;
|
|
|
669
673
|
this.portalService.panorama.isVisible = false;
|
|
670
674
|
}
|
|
671
675
|
};
|
|
672
|
-
/**
|
|
676
|
+
/** We need to call this when BladeArea is no longer used, otherwise the listener does not get removed. */
|
|
673
677
|
BladeArea.prototype.close = function () {
|
|
674
678
|
this.listener1(); // Unregister listener1
|
|
675
679
|
};
|
|
680
|
+
return BladeArea;
|
|
681
|
+
}(angularportalazure.UserControlBase));
|
|
682
|
+
//#region Constructor
|
|
683
|
+
BladeArea.$inject = ['$scope', 'angularportalazure.portalService'];
|
|
684
|
+
angularportalazure.BladeArea = BladeArea;
|
|
685
|
+
angular.module('angularportalazure').service('angularportalazure.bladeArea', BladeArea);
|
|
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
|
+
}
|
|
676
727
|
//#endregion
|
|
677
|
-
//#region
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
this.portalService.$window = this.portalService;
|
|
728
|
+
//#region Methods
|
|
729
|
+
BladeNav.prototype.onNavigateTo = function (path) {
|
|
730
|
+
if (path === '') {
|
|
731
|
+
return;
|
|
682
732
|
}
|
|
683
|
-
this.
|
|
684
|
-
//this.addBladeOld(path);
|
|
733
|
+
this.portalService.bladeArea.raiseAddBladeEvent({ path: path, pathSender: this.path });
|
|
685
734
|
};
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
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();
|
|
690
769
|
}
|
|
691
|
-
var blade = new angularportalazure.Blade(that.$scope, that.portalService, path, '');
|
|
692
|
-
that.blades.push(blade);
|
|
693
|
-
var portalcontent = that.portalService.$window.document.getElementById('azureportalscroll');
|
|
694
|
-
that.portalService.$window.setTimeout(function () {
|
|
695
|
-
var azureportalblades = that.portalService.$window.document.getElementsByClassName('azureportalblade');
|
|
696
|
-
var i = that.blades.length - 1;
|
|
697
|
-
// HACK: Sometime azureportalblades[i].offsetLeft is undefined.
|
|
698
|
-
// So now if it is, the user has to scroll on its own.
|
|
699
|
-
if (azureportalblades[i] !== undefined && azureportalblades[i].offsetLeft !== undefined) {
|
|
700
|
-
var sl = azureportalblades[i].offsetLeft - 30;
|
|
701
|
-
portalcontent.scrollLeft = sl;
|
|
702
|
-
}
|
|
703
|
-
}, 250);
|
|
704
770
|
};
|
|
705
|
-
return
|
|
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;
|
|
706
796
|
}(angularportalazure.UserControlBase));
|
|
707
|
-
angularportalazure.
|
|
708
|
-
//#region Angular Registration
|
|
709
|
-
(function () {
|
|
710
|
-
'use strict';
|
|
711
|
-
angular.module('angularportalazure').service('angularportalazure.bladeArea', ['$window', BladeArea]);
|
|
712
|
-
})();
|
|
713
|
-
//#endregion
|
|
797
|
+
angularportalazure.AreaNotification = AreaNotification;
|
|
714
798
|
})(angularportalazure || (angularportalazure = {}));
|
|
715
799
|
"use strict";
|
|
716
800
|
/// <reference path="debug.ts" />
|
|
@@ -901,8 +985,6 @@ var angularportalazure;
|
|
|
901
985
|
(function (angularportalazure) {
|
|
902
986
|
var PortalShell = (function (_super) {
|
|
903
987
|
__extends(PortalShell, _super);
|
|
904
|
-
//#endregion
|
|
905
|
-
//#endregion
|
|
906
988
|
//#region Constructor
|
|
907
989
|
function PortalShell(portalService, title) {
|
|
908
990
|
var _this = _super.call(this, null, portalService) || this;
|
|
@@ -910,38 +992,18 @@ var angularportalazure;
|
|
|
910
992
|
_this.portalService.portalShell = _this;
|
|
911
993
|
_this.portalService.panorama = new angularportalazure.Panorama(_this.$scope, title, _this.portalService);
|
|
912
994
|
_this.portalService.bladeArea = new angularportalazure.BladeArea(_this.$scope, portalService);
|
|
913
|
-
_this.
|
|
995
|
+
_this.portalService.areaNotification = new angularportalazure.AreaNotification(_this.$scope, portalService);
|
|
996
|
+
_this.portalService.panorama.title = title;
|
|
914
997
|
return _this;
|
|
998
|
+
//this.initialize();
|
|
915
999
|
}
|
|
916
|
-
//#endregion
|
|
917
|
-
//#region Methods
|
|
918
|
-
PortalShell.prototype.initialize = function () {
|
|
919
|
-
this.setObsoleteLayoutProperites();
|
|
920
|
-
};
|
|
921
|
-
PortalShell.prototype.setObsoleteLayoutProperites = function () {
|
|
922
|
-
this.title = this.portalService.panorama.title;
|
|
923
|
-
this.tiles = this.portalService.panorama.startboard.tiles.tiles;
|
|
924
|
-
this.blades = this.portalService.bladeArea.blades;
|
|
925
|
-
//var bladeServiceOLD = <angularportalazure.Blade>this.portalService.$injector.get('bladeService');
|
|
926
|
-
//bladeServiceOLD.blades = this.portalService.bladeArea.blades;
|
|
927
|
-
if (this.portalService.panorama.avatarMenu.userAccount != undefined) {
|
|
928
|
-
this.user = {
|
|
929
|
-
name: this.portalService.panorama.avatarMenu.userAccount.name,
|
|
930
|
-
emailaddress: this.portalService.panorama.avatarMenu.userAccount.userName
|
|
931
|
-
};
|
|
932
|
-
}
|
|
933
|
-
//if (this.portalService.bladeArea != null) {
|
|
934
|
-
// this.portalService.bladeArea.blades.forEach(function (blade) {
|
|
935
|
-
// //blade.setObsoleteLayoutProperites();
|
|
936
|
-
// });
|
|
937
|
-
//}
|
|
938
|
-
};
|
|
939
1000
|
return PortalShell;
|
|
940
1001
|
}(angularportalazure.UserControlBase));
|
|
941
1002
|
angularportalazure.PortalShell = PortalShell;
|
|
942
1003
|
})(angularportalazure || (angularportalazure = {}));
|
|
943
1004
|
/// <reference types="angular" />
|
|
944
1005
|
/// <reference types="angulartics" />
|
|
1006
|
+
/// <reference path="areanotification.ts" />
|
|
945
1007
|
/// <reference path="bladearea.ts" />
|
|
946
1008
|
/// <reference path="debug.ts" />
|
|
947
1009
|
/// <reference path="bladeparameter.ts" />
|
|
@@ -1060,6 +1122,7 @@ var angularportalazure;
|
|
|
1060
1122
|
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
1061
1123
|
function AngularPortalBladeController(portalService) {
|
|
1062
1124
|
this.$onInit = function () {
|
|
1125
|
+
console.log('$onInit');
|
|
1063
1126
|
this.close = function () {
|
|
1064
1127
|
portalService.bladeArea.clearLastLevel();
|
|
1065
1128
|
};
|
|
@@ -1172,24 +1235,6 @@ var angularportalazure;
|
|
|
1172
1235
|
};
|
|
1173
1236
|
angular.module('angularportalazure').component('nav', nav);
|
|
1174
1237
|
})(angularportalazure || (angularportalazure = {}));
|
|
1175
|
-
/// <reference path="bladearea.ts" />
|
|
1176
|
-
/// <reference path="debug.ts" />
|
|
1177
|
-
/// <reference path="portalservice.ts" />
|
|
1178
|
-
"use strict";
|
|
1179
|
-
var angularportalazure;
|
|
1180
|
-
(function (angularportalazure) {
|
|
1181
|
-
var BladeData = (function (_super) {
|
|
1182
|
-
__extends(BladeData, _super);
|
|
1183
|
-
//#region Constructor
|
|
1184
|
-
function BladeData($scope, portalService, path, title, subtitle, width) {
|
|
1185
|
-
if (subtitle === void 0) { subtitle = ''; }
|
|
1186
|
-
if (width === void 0) { width = 300; }
|
|
1187
|
-
return _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
1188
|
-
}
|
|
1189
|
-
return BladeData;
|
|
1190
|
-
}(angularportalazure.Blade));
|
|
1191
|
-
angularportalazure.BladeData = BladeData;
|
|
1192
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
1193
1238
|
/// <reference path="bladedata.ts" />
|
|
1194
1239
|
/// <reference path="debug.ts" />
|
|
1195
1240
|
/// <reference path="portalservice.ts" />
|
|
@@ -1390,76 +1435,6 @@ var angularportalazure;
|
|
|
1390
1435
|
angularportalazure.BladeGrid = BladeGrid;
|
|
1391
1436
|
})(angularportalazure || (angularportalazure = {}));
|
|
1392
1437
|
/// <reference path="debug.ts" />
|
|
1393
|
-
/// <reference path="bladenav.ts" />
|
|
1394
|
-
"use strict";
|
|
1395
|
-
var angularportalazure;
|
|
1396
|
-
(function (angularportalazure) {
|
|
1397
|
-
var BladeNavItem = (function () {
|
|
1398
|
-
//#region Constructor
|
|
1399
|
-
function BladeNavItem(title, cssClass, bladePath, hrefPath, roles, isVisible, callback, bladeNav) {
|
|
1400
|
-
if (title === void 0) { title = ''; }
|
|
1401
|
-
if (cssClass === void 0) { cssClass = ""; }
|
|
1402
|
-
if (bladePath === void 0) { bladePath = ''; }
|
|
1403
|
-
if (hrefPath === void 0) { hrefPath = ""; }
|
|
1404
|
-
if (roles === void 0) { roles = ""; }
|
|
1405
|
-
if (isVisible === void 0) { isVisible = true; }
|
|
1406
|
-
if (callback === void 0) { callback = null; }
|
|
1407
|
-
if (bladeNav === void 0) { bladeNav = null; }
|
|
1408
|
-
this.title = title;
|
|
1409
|
-
this.cssClass = cssClass;
|
|
1410
|
-
this.bladePath = bladePath;
|
|
1411
|
-
this.hrefPath = hrefPath;
|
|
1412
|
-
this.roles = roles;
|
|
1413
|
-
this.isVisible = isVisible;
|
|
1414
|
-
this.callback = callback;
|
|
1415
|
-
this.bladeNav = bladeNav;
|
|
1416
|
-
}
|
|
1417
|
-
//#endregion
|
|
1418
|
-
//#region
|
|
1419
|
-
BladeNavItem.prototype.onNavItemClick = function () {
|
|
1420
|
-
if (this.callback != null) {
|
|
1421
|
-
this.callback();
|
|
1422
|
-
}
|
|
1423
|
-
};
|
|
1424
|
-
return BladeNavItem;
|
|
1425
|
-
}());
|
|
1426
|
-
angularportalazure.BladeNavItem = BladeNavItem;
|
|
1427
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
1428
|
-
/// <reference path="bladedata.ts" />
|
|
1429
|
-
/// <reference path="debug.ts" />
|
|
1430
|
-
/// <reference path="bladenavitem.ts" />
|
|
1431
|
-
/// <reference path="portalservice.ts" />
|
|
1432
|
-
"use strict";
|
|
1433
|
-
var angularportalazure;
|
|
1434
|
-
(function (angularportalazure) {
|
|
1435
|
-
var BladeNav = (function (_super) {
|
|
1436
|
-
__extends(BladeNav, _super);
|
|
1437
|
-
//#region Constructor
|
|
1438
|
-
function BladeNav($scope, portalService, path, title, subtitle, width) {
|
|
1439
|
-
if (title === void 0) { title = ''; }
|
|
1440
|
-
if (subtitle === void 0) { subtitle = ''; }
|
|
1441
|
-
if (width === void 0) { width = 315; }
|
|
1442
|
-
var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
1443
|
-
//#endregion
|
|
1444
|
-
//#region Properties
|
|
1445
|
-
_this.items = new Array();
|
|
1446
|
-
_this.isNav = true;
|
|
1447
|
-
_this.isInnerHtml = false;
|
|
1448
|
-
return _this;
|
|
1449
|
-
}
|
|
1450
|
-
//#endregion
|
|
1451
|
-
//#region Methods
|
|
1452
|
-
BladeNav.prototype.onNavigateTo = function (path) {
|
|
1453
|
-
if (path === '') {
|
|
1454
|
-
return;
|
|
1455
|
-
}
|
|
1456
|
-
this.portalService.bladeArea.raiseAddBladeEvent({ path: path, pathSender: this.path });
|
|
1457
|
-
};
|
|
1458
|
-
return BladeNav;
|
|
1459
|
-
}(angularportalazure.BladeData));
|
|
1460
|
-
angularportalazure.BladeNav = BladeNav;
|
|
1461
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
1462
|
-
/// <reference path="debug.ts" />
|
|
1463
1438
|
"use strict";
|
|
1464
1439
|
var angularportalazure;
|
|
1465
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": {
|