@ardimedia/angular-portal-azure 0.2.157 → 0.2.159
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 +5 -1
- package/apn.js +9 -4
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -36,7 +36,11 @@ declare var $: JQueryStatic;
|
|
|
36
36
|
declare namespace angularportalazure {
|
|
37
37
|
class Blade extends angularportalazure.UserControlBase {
|
|
38
38
|
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
39
|
-
|
|
39
|
+
/** HACK: 2016-11-06/hp
|
|
40
|
+
[angular-portal-blade] needs [this] as the controller.
|
|
41
|
+
We don't know how to provide [this] to the directive.
|
|
42
|
+
So we came up with this [vm] property.*/
|
|
43
|
+
vm: any;
|
|
40
44
|
private watcherTitle;
|
|
41
45
|
bladeContentHeight: number;
|
|
42
46
|
bladeContentHeightInner: number;
|
package/apn.js
CHANGED
|
@@ -105,9 +105,7 @@ var angularportalazure;
|
|
|
105
105
|
var id;
|
|
106
106
|
this.portalService.$window.addEventListener('resize', function () {
|
|
107
107
|
clearTimeout(id);
|
|
108
|
-
id = setTimeout(function () {
|
|
109
|
-
callback();
|
|
110
|
-
}, 50);
|
|
108
|
+
id = setTimeout(function () { callback(); }, 50);
|
|
111
109
|
});
|
|
112
110
|
};
|
|
113
111
|
return UserControlBase;
|
|
@@ -136,6 +134,10 @@ var angularportalazure;
|
|
|
136
134
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
137
135
|
//#endregion
|
|
138
136
|
//#region Properties
|
|
137
|
+
/** HACK: 2016-11-06/hp
|
|
138
|
+
[angular-portal-blade] needs [this] as the controller.
|
|
139
|
+
We don't know how to provide [this] to the directive.
|
|
140
|
+
So we came up with this [vm] property.*/
|
|
139
141
|
_this.vm = {};
|
|
140
142
|
_this.title = '';
|
|
141
143
|
_this.subTitle = '';
|
|
@@ -226,7 +228,7 @@ var angularportalazure;
|
|
|
226
228
|
throw new Error('[angularportalazure.Blade] constructor parameter \'width\' must be at least 50.');
|
|
227
229
|
}
|
|
228
230
|
// Set 'this.portalService.areaBlades.blades[index]' to 'this'
|
|
229
|
-
//
|
|
231
|
+
// 'this.portalService.areaBlades.blades[index]' was generated during AddBlade
|
|
230
232
|
_this.portalService.areaBlades.blades.forEach(function (blade, index) {
|
|
231
233
|
if (blade.path === _this.path) {
|
|
232
234
|
_this.portalService.areaBlades.blades[index] = _this;
|
|
@@ -387,6 +389,9 @@ var angularportalazure;
|
|
|
387
389
|
Blade.prototype.setBladeHeights = function () {
|
|
388
390
|
var _this = this;
|
|
389
391
|
this.portalService.$timeout(function () {
|
|
392
|
+
console.log(_this.portalService);
|
|
393
|
+
console.log(_this.portalService.$window);
|
|
394
|
+
console.log(_this.portalService.$window.innerHeight);
|
|
390
395
|
_this.bladeContentHeight = _this.portalService.$window.innerHeight - 125; // 125 = header
|
|
391
396
|
_this.bladeContentHeightInner = _this.bladeContentHeight - 50 - 3; // 50 = padding (top and bottom), somehow we miss 3px
|
|
392
397
|
}, 50);
|
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.159",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|