@ardimedia/angular-portal-azure 0.2.138 → 0.2.139
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 +8 -10
- package/apn.js +37 -44
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ 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
53
|
private watcherTitle;
|
|
54
|
-
bladeContentHeight
|
|
54
|
+
private bladeContentHeight;
|
|
55
55
|
bladeContentInnerHeight: number;
|
|
56
56
|
path: string;
|
|
57
57
|
private _path;
|
|
@@ -120,13 +120,7 @@ declare namespace angularportalazure {
|
|
|
120
120
|
commandSwapText: string;
|
|
121
121
|
/** Obsolete */
|
|
122
122
|
/** Obsolete */
|
|
123
|
-
isNavGrid: boolean;
|
|
124
123
|
/** Obsolete */
|
|
125
|
-
navGrid: {
|
|
126
|
-
portalService: PortalService;
|
|
127
|
-
items: any[];
|
|
128
|
-
navigateTo: (path: string) => void;
|
|
129
|
-
};
|
|
130
124
|
activate(): void;
|
|
131
125
|
onActivate(): void;
|
|
132
126
|
onActivated(): void;
|
|
@@ -164,6 +158,7 @@ declare namespace angularportalazure {
|
|
|
164
158
|
}
|
|
165
159
|
declare namespace angularportalazure {
|
|
166
160
|
class BladeArea extends angularportalazure.UserControlBase {
|
|
161
|
+
static $inject: string[];
|
|
167
162
|
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
|
|
168
163
|
private listener1;
|
|
169
164
|
blades: Array<angularportalazure.Blade>;
|
|
@@ -177,10 +172,8 @@ declare namespace angularportalazure {
|
|
|
177
172
|
clearChild(path: string): void;
|
|
178
173
|
showPanoramaIfNoBlades(): void;
|
|
179
174
|
hidePanorama(): void;
|
|
180
|
-
/**
|
|
175
|
+
/** We need to call this when BladeArea is no longer used, otherwise the listener does not get removed. */
|
|
181
176
|
close(): void;
|
|
182
|
-
addBladePath(path: string): void;
|
|
183
|
-
addBladeOld(path: string): void;
|
|
184
177
|
}
|
|
185
178
|
}
|
|
186
179
|
declare namespace angularportalazure {
|
|
@@ -376,6 +369,11 @@ declare namespace angularportalazure {
|
|
|
376
369
|
onNavigateTo(path: string): void;
|
|
377
370
|
}
|
|
378
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
|
+
}
|
|
379
377
|
declare namespace angularportalazure {
|
|
380
378
|
class Exception implements angularportalazure.IExceptionDotNet {
|
|
381
379
|
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
|
}
|
|
@@ -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
|
|
@@ -504,7 +510,6 @@ var angularportalazure;
|
|
|
504
510
|
(function (angularportalazure) {
|
|
505
511
|
var BladeArea = (function (_super) {
|
|
506
512
|
__extends(BladeArea, _super);
|
|
507
|
-
//#region Constructor
|
|
508
513
|
function BladeArea($scope, portalService) {
|
|
509
514
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
510
515
|
_this.blades = new Array();
|
|
@@ -669,48 +674,16 @@ var angularportalazure;
|
|
|
669
674
|
this.portalService.panorama.isVisible = false;
|
|
670
675
|
}
|
|
671
676
|
};
|
|
672
|
-
/**
|
|
677
|
+
/** We need to call this when BladeArea is no longer used, otherwise the listener does not get removed. */
|
|
673
678
|
BladeArea.prototype.close = function () {
|
|
674
679
|
this.listener1(); // Unregister listener1
|
|
675
680
|
};
|
|
676
|
-
//#endregion
|
|
677
|
-
//#region OBSOLETE
|
|
678
|
-
BladeArea.prototype.addBladePath = function (path) {
|
|
679
|
-
// Fix issue with old code
|
|
680
|
-
if (this.portalService.$window === undefined) {
|
|
681
|
-
this.portalService.$window = this.portalService;
|
|
682
|
-
}
|
|
683
|
-
this.addBlade(path);
|
|
684
|
-
//this.addBladeOld(path);
|
|
685
|
-
};
|
|
686
|
-
BladeArea.prototype.addBladeOld = function (path) {
|
|
687
|
-
var that = this;
|
|
688
|
-
if (path === undefined || path == '') {
|
|
689
|
-
return;
|
|
690
|
-
}
|
|
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
|
-
};
|
|
705
681
|
return BladeArea;
|
|
706
682
|
}(angularportalazure.UserControlBase));
|
|
683
|
+
//#region Constructor
|
|
684
|
+
BladeArea.$inject = ['$scope', 'angularportalazure.portalService'];
|
|
707
685
|
angularportalazure.BladeArea = BladeArea;
|
|
708
|
-
|
|
709
|
-
(function () {
|
|
710
|
-
'use strict';
|
|
711
|
-
angular.module('angularportalazure').service('angularportalazure.bladeArea', ['$window', BladeArea]);
|
|
712
|
-
})();
|
|
713
|
-
//#endregion
|
|
686
|
+
angular.module('angularportalazure').service('angularportalazure.bladeArea', BladeArea);
|
|
714
687
|
})(angularportalazure || (angularportalazure = {}));
|
|
715
688
|
"use strict";
|
|
716
689
|
/// <reference path="debug.ts" />
|
|
@@ -1459,6 +1432,26 @@ var angularportalazure;
|
|
|
1459
1432
|
}(angularportalazure.BladeData));
|
|
1460
1433
|
angularportalazure.BladeNav = BladeNav;
|
|
1461
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 = {}));
|
|
1462
1455
|
/// <reference path="debug.ts" />
|
|
1463
1456
|
"use strict";
|
|
1464
1457
|
var angularportalazure;
|
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.139",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|