@ardimedia/angular-portal-azure 0.2.144 → 0.2.145
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
CHANGED
|
@@ -36,7 +36,6 @@ declare namespace angularportalazure {
|
|
|
36
36
|
declare namespace angularportalazure {
|
|
37
37
|
class UserControlBase {
|
|
38
38
|
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
|
|
39
|
-
$scope: angular.IScope;
|
|
40
39
|
portalService: angularportalazure.PortalService;
|
|
41
40
|
setupWindowResizeListener(callback: () => void): void;
|
|
42
41
|
}
|
|
@@ -339,6 +338,7 @@ declare namespace angularportalazure {
|
|
|
339
338
|
$q: angular.IQService;
|
|
340
339
|
$rootScope: angular.IRootScopeService;
|
|
341
340
|
$window: angular.IWindowService;
|
|
341
|
+
$timeout: angular.ITimeoutService;
|
|
342
342
|
$translate: angular.translate.ITranslateService;
|
|
343
343
|
}
|
|
344
344
|
}
|
package/apn.js
CHANGED
|
@@ -44,58 +44,6 @@ var angularportalazure;
|
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
46
|
})(angularportalazure || (angularportalazure = {}));
|
|
47
|
-
///// <reference types="angular" />
|
|
48
|
-
///// <reference path="../../domain/debug.ts" />
|
|
49
|
-
///// <reference path="../../domain/portalservice.ts" />
|
|
50
|
-
"use strict";
|
|
51
|
-
//namespace angularportalazure {
|
|
52
|
-
// angularPortalBladeGrid.$inject = ['angularportalazure.portalService'];
|
|
53
|
-
// function angularPortalBladeGrid(portalService: angularportalazure.PortalService) {
|
|
54
|
-
// return {
|
|
55
|
-
// restrict: 'E',
|
|
56
|
-
// transclude: true,
|
|
57
|
-
// scope: {},
|
|
58
|
-
// bindToController: { vm: '=' },
|
|
59
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
60
|
-
// link: function (scope: angular.IScope, element, attrs, controller) { },
|
|
61
|
-
// controller: function () {
|
|
62
|
-
// this.$onInit = function () {
|
|
63
|
-
// this.close = function () {
|
|
64
|
-
// //portalService.areaBlades.clearLastLevel();
|
|
65
|
-
// };
|
|
66
|
-
// };
|
|
67
|
-
// },
|
|
68
|
-
// controllerAs: '$ctrl'
|
|
69
|
-
// };
|
|
70
|
-
// }
|
|
71
|
-
// angular.module('angularportalazure').directive('angularPortalBladeGrid', angularPortalBladeGrid);
|
|
72
|
-
//}
|
|
73
|
-
///// <reference types="angular" />
|
|
74
|
-
///// <reference path="../../domain/debug.ts" />
|
|
75
|
-
///// <reference path="../../domain/portalservice.ts" />
|
|
76
|
-
"use strict";
|
|
77
|
-
//namespace angularportalazure {
|
|
78
|
-
// angularPortalBladeNav.$inject = ['angularportalazure.portalService'];
|
|
79
|
-
// function angularPortalBladeNav(portalService: angularportalazure.PortalService) {
|
|
80
|
-
// return {
|
|
81
|
-
// restrict: 'E',
|
|
82
|
-
// transclude: true,
|
|
83
|
-
// scope: {},
|
|
84
|
-
// bindToController: { vm: '=' },
|
|
85
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
86
|
-
// link: function (scope:angular.IScope, element, attrs, controller) { },
|
|
87
|
-
// controller: function () {
|
|
88
|
-
// this.$onInit = function () {
|
|
89
|
-
// this.close = function () {
|
|
90
|
-
// //portalService.areaBlades.clearLastLevel();
|
|
91
|
-
// };
|
|
92
|
-
// };
|
|
93
|
-
// },
|
|
94
|
-
// controllerAs: '$ctrl'
|
|
95
|
-
// };
|
|
96
|
-
// }
|
|
97
|
-
// angular.module('angularportalazure').directive('angularPortalBladeNav', angularPortalBladeNav);
|
|
98
|
-
//}
|
|
99
47
|
//#region Make sure console.log is working in any case, even IE9
|
|
100
48
|
"use strict";
|
|
101
49
|
//if ($('html').hasClass('k-ie9')) {
|
|
@@ -227,8 +175,9 @@ var angularportalazure;
|
|
|
227
175
|
var UserControlBase = (function () {
|
|
228
176
|
//#region Constructor
|
|
229
177
|
function UserControlBase($scope, portalService) {
|
|
230
|
-
this.$scope = $scope;
|
|
178
|
+
//this.$scope = $scope;
|
|
231
179
|
this.portalService = portalService;
|
|
180
|
+
this.portalService.$scope = $scope;
|
|
232
181
|
}
|
|
233
182
|
//#endregion
|
|
234
183
|
//#region Methods
|
|
@@ -375,9 +324,9 @@ var angularportalazure;
|
|
|
375
324
|
_this.portalService.areaBlades.blades[index] = _this;
|
|
376
325
|
}
|
|
377
326
|
});
|
|
327
|
+
_this.setBladeHeights();
|
|
328
|
+
_this.setupWindowResizeListener(function () { _this.setBladeHeights(); });
|
|
378
329
|
return _this;
|
|
379
|
-
//this.setBladeHeights();
|
|
380
|
-
//this.setupWindowResizeListener(() => { this.setBladeHeights(); });
|
|
381
330
|
}
|
|
382
331
|
Object.defineProperty(Blade.prototype, "path", {
|
|
383
332
|
get: function () {
|
|
@@ -542,15 +491,16 @@ var angularportalazure;
|
|
|
542
491
|
Blade.prototype.setTitle = function (watchExpression, func) {
|
|
543
492
|
var _this = this;
|
|
544
493
|
if (this.watcherTitle === undefined) {
|
|
545
|
-
this.watcherTitle = this.$scope.$watch(watchExpression, function () { func(); });
|
|
546
|
-
this.$scope.$on('$destroy', function () { _this.watcherTitle(); });
|
|
494
|
+
this.watcherTitle = this.portalService.$scope.$watch(watchExpression, function () { func(); });
|
|
495
|
+
this.portalService.$scope.$on('$destroy', function () { _this.watcherTitle(); });
|
|
547
496
|
}
|
|
548
497
|
};
|
|
549
498
|
Blade.prototype.setBladeHeights = function () {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
499
|
+
var _this = this;
|
|
500
|
+
this.portalService.$timeout(function () {
|
|
501
|
+
_this.bladeContentHeight = _this.portalService.$window.innerHeight - 125; // header
|
|
502
|
+
_this.bladeContentInnerHeight = _this.bladeContentHeight - 50; // padding
|
|
503
|
+
});
|
|
554
504
|
//// http://stackoverflow.com/questions/4298612/jquery-how-to-call-resize-event-only-once-its-finished-resizing
|
|
555
505
|
//var id: NodeJS.Timer;
|
|
556
506
|
//$(window).resize(function () {
|
|
@@ -659,7 +609,7 @@ var angularportalazure;
|
|
|
659
609
|
});
|
|
660
610
|
//#endregion
|
|
661
611
|
//#region Show the blade
|
|
662
|
-
var blade = new angularportalazure.Blade(that.$scope, that.portalService, path, '');
|
|
612
|
+
var blade = new angularportalazure.Blade(that.portalService.$scope, that.portalService, path, '');
|
|
663
613
|
that.blades.push(blade);
|
|
664
614
|
//#endregion
|
|
665
615
|
//#region Position the blade
|
|
@@ -1103,8 +1053,8 @@ var angularportalazure;
|
|
|
1103
1053
|
_this.isVisible = true;
|
|
1104
1054
|
_this.title = title;
|
|
1105
1055
|
_this.portalService.panorama = _this;
|
|
1106
|
-
_this.avatarMenu = new angularportalazure.AvatarMenu(_this.$scope, _this.portalService);
|
|
1107
|
-
_this.startboard = new angularportalazure.Startboard(_this.$scope, _this.portalService);
|
|
1056
|
+
_this.avatarMenu = new angularportalazure.AvatarMenu(_this.portalService.$scope, _this.portalService);
|
|
1057
|
+
_this.startboard = new angularportalazure.Startboard(_this.portalService.$scope, _this.portalService);
|
|
1108
1058
|
return _this;
|
|
1109
1059
|
}
|
|
1110
1060
|
return Panorama;
|
|
@@ -1127,7 +1077,7 @@ var angularportalazure;
|
|
|
1127
1077
|
var _this = _super.call(this, null, portalService) || this;
|
|
1128
1078
|
_this.portalService = portalService;
|
|
1129
1079
|
_this.portalService.portalShell = _this;
|
|
1130
|
-
_this.portalService.panorama = new angularportalazure.Panorama(_this.$scope, title, _this.portalService);
|
|
1080
|
+
_this.portalService.panorama = new angularportalazure.Panorama(_this.portalService.$scope, title, _this.portalService);
|
|
1131
1081
|
//this.portalService.areaBlades = new angularportalazure.BladeArea(this.$scope, portalService);
|
|
1132
1082
|
_this.portalService.panorama.title = title;
|
|
1133
1083
|
return _this;
|
|
@@ -1160,6 +1110,7 @@ var angularportalazure;
|
|
|
1160
1110
|
this.$rootScope = $injector.get('$rootScope');
|
|
1161
1111
|
this.$window = $injector.get('$window');
|
|
1162
1112
|
this.$analytics = $injector.get('$analytics');
|
|
1113
|
+
this.$timeout = $injector.get('$timeout');
|
|
1163
1114
|
this.$translate = $injector.get('$translate');
|
|
1164
1115
|
this.ngDialog = $injector.get('ngDialog');
|
|
1165
1116
|
this.ngDialog.openConfirm;
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
</div>
|
|
223
223
|
</div>
|
|
224
224
|
</header>
|
|
225
|
-
<div
|
|
225
|
+
<div class="fxs-blade-content fxs-pannable" ng-style="{'height': $ctrl.vm.bladeContentInnerHeight}">
|
|
226
226
|
<div class="fxs-blade-stacklayout fxs-stacklayout fxs-stacklayout-vertical" ng-style="$ctrl.vm.widthStackLayout">
|
|
227
227
|
<div class="fxs-stacklayout-child">
|
|
228
228
|
<div class="fxs-lens">
|
|
@@ -237,17 +237,16 @@
|
|
|
237
237
|
<section class="fxs-part-content css-scope-HubsExtension">
|
|
238
238
|
<div tabindex="0" class="fxcontrol-base azc-control azc-theme-frost azc-grid-focusableRow azc-grid-selectableRow azc-grid-activateableRow azc-grid-rightClickableRow azc-grid azc-grid-headerHidden Formatter FormatterHtmlBindings Focusable Selectable RightClickableRow" data-bind="pcGrid: $root" data-control="true">
|
|
239
239
|
<!--<div class="azc-grid-container">-->
|
|
240
|
+
<!-- neutral -->
|
|
241
|
+
<div data-ng-if="$ctrl.vm.isInnerHtml">
|
|
242
|
+
<div ng-transclude></div>
|
|
243
|
+
</div>
|
|
240
244
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
<div ng-transclude></div>
|
|
244
|
-
</div>
|
|
245
|
+
<!-- nav -->
|
|
246
|
+
<angular-portal-nav data-ng-if="$ctrl.vm.isNav" vm="$ctrl.vm"></angular-portal-nav>
|
|
245
247
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
<!-- grid -->
|
|
250
|
-
<angular-portal-grid data-ng-if="$ctrl.vm.isNavGrid" vm="$ctrl.vm"></angular-portal-grid>
|
|
248
|
+
<!-- grid -->
|
|
249
|
+
<angular-portal-grid data-ng-if="$ctrl.vm.isNavGrid" vm="$ctrl.vm"></angular-portal-grid>
|
|
251
250
|
|
|
252
251
|
<!--</div>-->
|
|
253
252
|
</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.145",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
///// <reference types="angular" />
|
|
2
|
-
///// <reference path="../../domain/debug.ts" />
|
|
3
|
-
///// <reference path="../../domain/portalservice.ts" />
|
|
4
|
-
|
|
5
|
-
//namespace angularportalazure {
|
|
6
|
-
// angularPortalBladeGrid.$inject = ['angularportalazure.portalService'];
|
|
7
|
-
// function angularPortalBladeGrid(portalService: angularportalazure.PortalService) {
|
|
8
|
-
// return {
|
|
9
|
-
// restrict: 'E',
|
|
10
|
-
// transclude: true,
|
|
11
|
-
// scope: {},
|
|
12
|
-
// bindToController: { vm: '=' },
|
|
13
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
14
|
-
// link: function (scope: angular.IScope, element, attrs, controller) { },
|
|
15
|
-
// controller: function () {
|
|
16
|
-
// this.$onInit = function () {
|
|
17
|
-
// this.close = function () {
|
|
18
|
-
// //portalService.areaBlades.clearLastLevel();
|
|
19
|
-
// };
|
|
20
|
-
// };
|
|
21
|
-
// },
|
|
22
|
-
// controllerAs: '$ctrl'
|
|
23
|
-
// };
|
|
24
|
-
// }
|
|
25
|
-
|
|
26
|
-
// angular.module('angularportalazure').directive('angularPortalBladeGrid', angularPortalBladeGrid);
|
|
27
|
-
//}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
///// <reference types="angular" />
|
|
2
|
-
///// <reference path="../../domain/debug.ts" />
|
|
3
|
-
///// <reference path="../../domain/portalservice.ts" />
|
|
4
|
-
|
|
5
|
-
//namespace angularportalazure {
|
|
6
|
-
// angularPortalBladeNav.$inject = ['angularportalazure.portalService'];
|
|
7
|
-
// function angularPortalBladeNav(portalService: angularportalazure.PortalService) {
|
|
8
|
-
// return {
|
|
9
|
-
// restrict: 'E',
|
|
10
|
-
// transclude: true,
|
|
11
|
-
// scope: {},
|
|
12
|
-
// bindToController: { vm: '=' },
|
|
13
|
-
// templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
14
|
-
// link: function (scope:angular.IScope, element, attrs, controller) { },
|
|
15
|
-
// controller: function () {
|
|
16
|
-
// this.$onInit = function () {
|
|
17
|
-
// this.close = function () {
|
|
18
|
-
// //portalService.areaBlades.clearLastLevel();
|
|
19
|
-
// };
|
|
20
|
-
// };
|
|
21
|
-
// },
|
|
22
|
-
// controllerAs: '$ctrl'
|
|
23
|
-
// };
|
|
24
|
-
// }
|
|
25
|
-
|
|
26
|
-
// angular.module('angularportalazure').directive('angularPortalBladeNav', angularPortalBladeNav);
|
|
27
|
-
//}
|