@ardimedia/angular-portal-azure 0.2.143 → 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 +1 -5
- package/apn.js +23 -74
- package/directives/blade/angular-portal-blade.ts +2 -2
- package/directives/blade/blade.html +9 -10
- package/directives/grid/{grid.ts → angular-portal-grid.ts} +3 -3
- package/directives/nav/{nav.ts → angular-portal-nav.ts} +2 -2
- package/package.json +1 -1
- package/directives/blade/angular-portal-blade-grid.ts +0 -27
- package/directives/blade/angular-portal-blade-nav.ts +0 -27
- /package/directives/home/{home.ts → angular-portal-home.ts} +0 -0
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
|
}
|
|
@@ -350,10 +350,6 @@ declare namespace angularportalazure {
|
|
|
350
350
|
}
|
|
351
351
|
declare namespace angularportalazure {
|
|
352
352
|
}
|
|
353
|
-
declare namespace angularportalazure {
|
|
354
|
-
}
|
|
355
|
-
declare namespace angularportalazure {
|
|
356
|
-
}
|
|
357
353
|
declare namespace angularportalazure {
|
|
358
354
|
class BladeDetail<T> extends angularportalazure.BladeData {
|
|
359
355
|
item: T | null;
|
package/apn.js
CHANGED
|
@@ -175,8 +175,9 @@ var angularportalazure;
|
|
|
175
175
|
var UserControlBase = (function () {
|
|
176
176
|
//#region Constructor
|
|
177
177
|
function UserControlBase($scope, portalService) {
|
|
178
|
-
this.$scope = $scope;
|
|
178
|
+
//this.$scope = $scope;
|
|
179
179
|
this.portalService = portalService;
|
|
180
|
+
this.portalService.$scope = $scope;
|
|
180
181
|
}
|
|
181
182
|
//#endregion
|
|
182
183
|
//#region Methods
|
|
@@ -323,9 +324,9 @@ var angularportalazure;
|
|
|
323
324
|
_this.portalService.areaBlades.blades[index] = _this;
|
|
324
325
|
}
|
|
325
326
|
});
|
|
327
|
+
_this.setBladeHeights();
|
|
328
|
+
_this.setupWindowResizeListener(function () { _this.setBladeHeights(); });
|
|
326
329
|
return _this;
|
|
327
|
-
//this.setBladeHeights();
|
|
328
|
-
//this.setupWindowResizeListener(() => { this.setBladeHeights(); });
|
|
329
330
|
}
|
|
330
331
|
Object.defineProperty(Blade.prototype, "path", {
|
|
331
332
|
get: function () {
|
|
@@ -490,15 +491,16 @@ var angularportalazure;
|
|
|
490
491
|
Blade.prototype.setTitle = function (watchExpression, func) {
|
|
491
492
|
var _this = this;
|
|
492
493
|
if (this.watcherTitle === undefined) {
|
|
493
|
-
this.watcherTitle = this.$scope.$watch(watchExpression, function () { func(); });
|
|
494
|
-
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(); });
|
|
495
496
|
}
|
|
496
497
|
};
|
|
497
498
|
Blade.prototype.setBladeHeights = function () {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
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
|
+
});
|
|
502
504
|
//// http://stackoverflow.com/questions/4298612/jquery-how-to-call-resize-event-only-once-its-finished-resizing
|
|
503
505
|
//var id: NodeJS.Timer;
|
|
504
506
|
//$(window).resize(function () {
|
|
@@ -607,7 +609,7 @@ var angularportalazure;
|
|
|
607
609
|
});
|
|
608
610
|
//#endregion
|
|
609
611
|
//#region Show the blade
|
|
610
|
-
var blade = new angularportalazure.Blade(that.$scope, that.portalService, path, '');
|
|
612
|
+
var blade = new angularportalazure.Blade(that.portalService.$scope, that.portalService, path, '');
|
|
611
613
|
that.blades.push(blade);
|
|
612
614
|
//#endregion
|
|
613
615
|
//#region Position the blade
|
|
@@ -1051,8 +1053,8 @@ var angularportalazure;
|
|
|
1051
1053
|
_this.isVisible = true;
|
|
1052
1054
|
_this.title = title;
|
|
1053
1055
|
_this.portalService.panorama = _this;
|
|
1054
|
-
_this.avatarMenu = new angularportalazure.AvatarMenu(_this.$scope, _this.portalService);
|
|
1055
|
-
_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);
|
|
1056
1058
|
return _this;
|
|
1057
1059
|
}
|
|
1058
1060
|
return Panorama;
|
|
@@ -1075,7 +1077,7 @@ var angularportalazure;
|
|
|
1075
1077
|
var _this = _super.call(this, null, portalService) || this;
|
|
1076
1078
|
_this.portalService = portalService;
|
|
1077
1079
|
_this.portalService.portalShell = _this;
|
|
1078
|
-
_this.portalService.panorama = new angularportalazure.Panorama(_this.$scope, title, _this.portalService);
|
|
1080
|
+
_this.portalService.panorama = new angularportalazure.Panorama(_this.portalService.$scope, title, _this.portalService);
|
|
1079
1081
|
//this.portalService.areaBlades = new angularportalazure.BladeArea(this.$scope, portalService);
|
|
1080
1082
|
_this.portalService.panorama.title = title;
|
|
1081
1083
|
return _this;
|
|
@@ -1108,6 +1110,7 @@ var angularportalazure;
|
|
|
1108
1110
|
this.$rootScope = $injector.get('$rootScope');
|
|
1109
1111
|
this.$window = $injector.get('$window');
|
|
1110
1112
|
this.$analytics = $injector.get('$analytics');
|
|
1113
|
+
this.$timeout = $injector.get('$timeout');
|
|
1111
1114
|
this.$translate = $injector.get('$translate');
|
|
1112
1115
|
this.ngDialog = $injector.get('ngDialog');
|
|
1113
1116
|
this.ngDialog.openConfirm;
|
|
@@ -1124,60 +1127,6 @@ var angularportalazure;
|
|
|
1124
1127
|
/// <reference path="../../domain/portalservice.ts" />
|
|
1125
1128
|
"use strict";
|
|
1126
1129
|
var angularportalazure;
|
|
1127
|
-
(function (angularportalazure) {
|
|
1128
|
-
angularPortalBladeGrid.$inject = ['angularportalazure.portalService'];
|
|
1129
|
-
function angularPortalBladeGrid(portalService) {
|
|
1130
|
-
return {
|
|
1131
|
-
restrict: 'E',
|
|
1132
|
-
transclude: true,
|
|
1133
|
-
scope: {},
|
|
1134
|
-
bindToController: { vm: '=' },
|
|
1135
|
-
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
1136
|
-
link: function (scope, element, attrs, controller) { },
|
|
1137
|
-
controller: function () {
|
|
1138
|
-
this.$onInit = function () {
|
|
1139
|
-
this.close = function () {
|
|
1140
|
-
//portalService.areaBlades.clearLastLevel();
|
|
1141
|
-
};
|
|
1142
|
-
};
|
|
1143
|
-
},
|
|
1144
|
-
controllerAs: '$ctrl'
|
|
1145
|
-
};
|
|
1146
|
-
}
|
|
1147
|
-
angular.module('angularportalazure').directive('angularPortalBladeGrid', angularPortalBladeGrid);
|
|
1148
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
1149
|
-
/// <reference types="angular" />
|
|
1150
|
-
/// <reference path="../../domain/debug.ts" />
|
|
1151
|
-
/// <reference path="../../domain/portalservice.ts" />
|
|
1152
|
-
"use strict";
|
|
1153
|
-
var angularportalazure;
|
|
1154
|
-
(function (angularportalazure) {
|
|
1155
|
-
angularPortalBladeNav.$inject = ['angularportalazure.portalService'];
|
|
1156
|
-
function angularPortalBladeNav(portalService) {
|
|
1157
|
-
return {
|
|
1158
|
-
restrict: 'E',
|
|
1159
|
-
transclude: true,
|
|
1160
|
-
scope: {},
|
|
1161
|
-
bindToController: { vm: '=' },
|
|
1162
|
-
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
1163
|
-
link: function (scope, element, attrs, controller) { },
|
|
1164
|
-
controller: function () {
|
|
1165
|
-
this.$onInit = function () {
|
|
1166
|
-
this.close = function () {
|
|
1167
|
-
//portalService.areaBlades.clearLastLevel();
|
|
1168
|
-
};
|
|
1169
|
-
};
|
|
1170
|
-
},
|
|
1171
|
-
controllerAs: '$ctrl'
|
|
1172
|
-
};
|
|
1173
|
-
}
|
|
1174
|
-
angular.module('angularportalazure').directive('angularPortalBladeNav', angularPortalBladeNav);
|
|
1175
|
-
})(angularportalazure || (angularportalazure = {}));
|
|
1176
|
-
/// <reference types="angular" />
|
|
1177
|
-
/// <reference path="../../domain/debug.ts" />
|
|
1178
|
-
/// <reference path="../../domain/portalservice.ts" />
|
|
1179
|
-
"use strict";
|
|
1180
|
-
var angularportalazure;
|
|
1181
1130
|
(function (angularportalazure) {
|
|
1182
1131
|
//angularPortalBlade.$inject = ['angularportalazure.portalService'];
|
|
1183
1132
|
//function angularPortalBlade(portalService: angularportalazure.PortalService) {
|
|
@@ -1206,10 +1155,10 @@ var angularportalazure;
|
|
|
1206
1155
|
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
1207
1156
|
function AngularPortalBladeController(portalService) {
|
|
1208
1157
|
this.$onInit = function () {
|
|
1209
|
-
portalService.areaNotification.show();
|
|
1158
|
+
//portalService.areaNotification.show();
|
|
1210
1159
|
this.close = function () {
|
|
1211
1160
|
//portalService.areaBlades.clearLastLevel();
|
|
1212
|
-
portalService.areaNotification.hide();
|
|
1161
|
+
//portalService.areaNotification.hide();
|
|
1213
1162
|
};
|
|
1214
1163
|
};
|
|
1215
1164
|
}
|
|
@@ -1246,15 +1195,15 @@ var angularportalazure;
|
|
|
1246
1195
|
// };
|
|
1247
1196
|
//}
|
|
1248
1197
|
//angular.module('angularportalazure').directive('grid', grid);
|
|
1249
|
-
var
|
|
1198
|
+
var angularPortalGrid = {
|
|
1250
1199
|
transclude: true,
|
|
1251
|
-
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/
|
|
1200
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/bladegrid/bladegrid.html',
|
|
1252
1201
|
controller: function () { },
|
|
1253
1202
|
bindings: {
|
|
1254
1203
|
vm: '='
|
|
1255
1204
|
}
|
|
1256
1205
|
};
|
|
1257
|
-
angular.module('angularportalazure').component('
|
|
1206
|
+
angular.module('angularportalazure').component('angularPortalGrid', angularPortalGrid);
|
|
1258
1207
|
})(angularportalazure || (angularportalazure = {}));
|
|
1259
1208
|
"use strict";
|
|
1260
1209
|
var angularportalazure;
|
|
@@ -1317,7 +1266,7 @@ var angularportalazure;
|
|
|
1317
1266
|
// };
|
|
1318
1267
|
//}
|
|
1319
1268
|
//angular.module('angularportalazure').directive('nav', nav);
|
|
1320
|
-
var
|
|
1269
|
+
var angularPortalNav = {
|
|
1321
1270
|
transclude: true,
|
|
1322
1271
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
1323
1272
|
controller: function () { },
|
|
@@ -1325,7 +1274,7 @@ var angularportalazure;
|
|
|
1325
1274
|
vm: '='
|
|
1326
1275
|
}
|
|
1327
1276
|
};
|
|
1328
|
-
angular.module('angularportalazure').component('
|
|
1277
|
+
angular.module('angularportalazure').component('angularPortalNav', angularPortalNav);
|
|
1329
1278
|
})(angularportalazure || (angularportalazure = {}));
|
|
1330
1279
|
/// <reference path="bladedata.ts" />
|
|
1331
1280
|
/// <reference path="debug.ts" />
|
|
@@ -32,10 +32,10 @@ namespace angularportalazure {
|
|
|
32
32
|
AngularPortalBladeController.$inject = ['angularportalazure.portalService'];
|
|
33
33
|
function AngularPortalBladeController(portalService: angularportalazure.PortalService) {
|
|
34
34
|
this.$onInit = function () {
|
|
35
|
-
portalService.areaNotification.show();
|
|
35
|
+
//portalService.areaNotification.show();
|
|
36
36
|
this.close = function () {
|
|
37
37
|
//portalService.areaBlades.clearLastLevel();
|
|
38
|
-
portalService.areaNotification.hide();
|
|
38
|
+
//portalService.areaNotification.hide();
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -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
|
-
<grid data-ng-if="$ctrl.vm.isNavGrid" vm="$ctrl.vm"></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>
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
|
|
22
22
|
//angular.module('angularportalazure').directive('grid', grid);
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var angularPortalGrid = {
|
|
25
25
|
transclude: true,
|
|
26
|
-
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/
|
|
26
|
+
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/bladegrid/bladegrid.html',
|
|
27
27
|
controller: function () { },
|
|
28
28
|
bindings: {
|
|
29
29
|
vm: '='
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
angular.module('angularportalazure').component('
|
|
33
|
+
angular.module('angularportalazure').component('angularPortalGrid', angularPortalGrid);
|
|
34
34
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
//angular.module('angularportalazure').directive('nav', nav);
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var angularPortalNav = {
|
|
32
32
|
transclude: true,
|
|
33
33
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
34
34
|
controller: function () { },
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
angular.module('angularportalazure').component('
|
|
40
|
+
angular.module('angularportalazure').component('angularPortalNav', angularPortalNav);
|
|
41
41
|
}
|
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
|
-
}
|
|
File without changes
|