@ardimedia/angular-portal-azure 0.2.44 → 0.2.46
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
|
@@ -268,6 +268,7 @@ declare namespace angularportalazure {
|
|
|
268
268
|
}
|
|
269
269
|
declare namespace angularportalazure {
|
|
270
270
|
class PortalService {
|
|
271
|
+
static $inject: string[];
|
|
271
272
|
constructor($injector: any);
|
|
272
273
|
parameter: angularportalazure.IBladeParameter;
|
|
273
274
|
animate: any;
|
|
@@ -339,7 +340,7 @@ declare namespace angularportalazure {
|
|
|
339
340
|
}
|
|
340
341
|
}
|
|
341
342
|
declare namespace angularportalazure {
|
|
342
|
-
class
|
|
343
|
+
class BladeGrid extends angularportalazure.BladeData {
|
|
343
344
|
items: any[];
|
|
344
345
|
constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
345
346
|
activate(): void;
|
package/apn.js
CHANGED
|
@@ -866,7 +866,6 @@ var angularportalazure;
|
|
|
866
866
|
var angularportalazure;
|
|
867
867
|
(function (angularportalazure) {
|
|
868
868
|
var PortalService = (function () {
|
|
869
|
-
//#region Constructor
|
|
870
869
|
function PortalService($injector) {
|
|
871
870
|
//#endregion
|
|
872
871
|
//#region Properties
|
|
@@ -882,14 +881,13 @@ var angularportalazure;
|
|
|
882
881
|
this.ngDialog = $injector.get('ngDialog');
|
|
883
882
|
this.ngDialog.openConfirm;
|
|
884
883
|
}
|
|
884
|
+
//#region Constructor
|
|
885
|
+
PortalService.$inject = ['$injector'];
|
|
885
886
|
return PortalService;
|
|
886
887
|
}());
|
|
887
888
|
angularportalazure.PortalService = PortalService;
|
|
888
|
-
|
|
889
|
-
(
|
|
890
|
-
'use strict';
|
|
891
|
-
angular.module('angularportalazure').service('angularportalazure.portalService', ['$injector', PortalService]);
|
|
892
|
-
})();
|
|
889
|
+
angular.module('angularportalazure').service('angularportalazure.portalService', PortalService);
|
|
890
|
+
console.log('angularportalazure.portalService');
|
|
893
891
|
})(angularportalazure || (angularportalazure = {}));
|
|
894
892
|
/// <reference types="angular" />
|
|
895
893
|
/// <reference path="../../domain/debug.ts" />
|
|
@@ -916,6 +914,7 @@ var angularportalazure;
|
|
|
916
914
|
};
|
|
917
915
|
}
|
|
918
916
|
angular.module('angularportalazure').directive('angularPortalBladeGrid', angularPortalBladeGrid);
|
|
917
|
+
console.log('angularPortalBladeGrid');
|
|
919
918
|
})(angularportalazure || (angularportalazure = {}));
|
|
920
919
|
/// <reference types="angular" />
|
|
921
920
|
/// <reference path="../../domain/debug.ts" />
|
|
@@ -942,6 +941,7 @@ var angularportalazure;
|
|
|
942
941
|
};
|
|
943
942
|
}
|
|
944
943
|
angular.module('angularportalazure').directive('angularPortalBladeNav', angularPortalBladeNav);
|
|
944
|
+
console.log('angularPortalBladeNav');
|
|
945
945
|
})(angularportalazure || (angularportalazure = {}));
|
|
946
946
|
/// <reference types="angular" />
|
|
947
947
|
/// <reference path="../../domain/debug.ts" />
|
|
@@ -957,17 +957,22 @@ var angularportalazure;
|
|
|
957
957
|
bindToController: { vm: '=' },
|
|
958
958
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
959
959
|
link: function (scope, element, attrs, controller) {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
this.vm.close = function () {
|
|
963
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
960
|
+
controller.vm.close = function () {
|
|
961
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [controller, portalService]);
|
|
964
962
|
portalService.bladeArea.clearLastLevel();
|
|
965
963
|
};
|
|
966
964
|
},
|
|
965
|
+
controller: function () {
|
|
966
|
+
//this.vm.close = function () {
|
|
967
|
+
// angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
968
|
+
// portalService.bladeArea.clearLastLevel();
|
|
969
|
+
//};
|
|
970
|
+
},
|
|
967
971
|
controllerAs: '$ctrl'
|
|
968
972
|
};
|
|
969
973
|
}
|
|
970
974
|
angular.module('angularportalazure').directive('angularPortalBlade', angularPortalBlade);
|
|
975
|
+
console.log('angularPortalBlade');
|
|
971
976
|
})(angularportalazure || (angularportalazure = {}));
|
|
972
977
|
// http://blogs.msdn.com/b/laurieatkinson/archive/2014/08/23/implementing-a-save-warning-in-an-angular-spa.aspx
|
|
973
978
|
//'use strict';
|
|
@@ -1181,24 +1186,24 @@ var angularportalazure;
|
|
|
1181
1186
|
/// <reference path="portalservice.ts" />
|
|
1182
1187
|
var angularportalazure;
|
|
1183
1188
|
(function (angularportalazure) {
|
|
1184
|
-
var
|
|
1185
|
-
__extends(
|
|
1189
|
+
var BladeGrid = (function (_super) {
|
|
1190
|
+
__extends(BladeGrid, _super);
|
|
1186
1191
|
//#endregion
|
|
1187
1192
|
//#region Constructor
|
|
1188
|
-
function
|
|
1193
|
+
function BladeGrid(portalService, path, title, subtitle, width) {
|
|
1189
1194
|
if (subtitle === void 0) { subtitle = ''; }
|
|
1190
1195
|
if (width === void 0) { width = 200; }
|
|
1191
1196
|
_super.call(this, portalService, path, title, subtitle, width);
|
|
1192
1197
|
//#region Properties
|
|
1193
1198
|
this.items = [];
|
|
1194
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'
|
|
1199
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid\' constructor called.', [this, portalService, path, title, subtitle, width]);
|
|
1195
1200
|
this.isCommandNew = true;
|
|
1196
1201
|
this.commandNewText = 'neu';
|
|
1197
1202
|
}
|
|
1198
1203
|
//#endregion
|
|
1199
1204
|
//#region Methods
|
|
1200
|
-
|
|
1201
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'
|
|
1205
|
+
BladeGrid.prototype.activate = function () {
|
|
1206
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid.activate\' called.', [this]);
|
|
1202
1207
|
var that = this;
|
|
1203
1208
|
that.statusbar = 'Daten laden...';
|
|
1204
1209
|
that.statusbarClass = '';
|
|
@@ -1209,10 +1214,10 @@ var angularportalazure;
|
|
|
1209
1214
|
that.loadItems(onActivate);
|
|
1210
1215
|
}
|
|
1211
1216
|
};
|
|
1212
|
-
|
|
1213
|
-
throw new Error('[angularportalazure.
|
|
1217
|
+
BladeGrid.prototype.onActivate = function () {
|
|
1218
|
+
throw new Error('[angularportalazure.BladeGrid] \'onActivate\' is an abstract function. Define one in the derived class.');
|
|
1214
1219
|
};
|
|
1215
|
-
|
|
1220
|
+
BladeGrid.prototype.loadItems = function (f) {
|
|
1216
1221
|
var that = this;
|
|
1217
1222
|
f.success(function (data) {
|
|
1218
1223
|
that.items = data;
|
|
@@ -1224,8 +1229,8 @@ var angularportalazure;
|
|
|
1224
1229
|
});
|
|
1225
1230
|
};
|
|
1226
1231
|
//#region Filter
|
|
1227
|
-
|
|
1228
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'
|
|
1232
|
+
BladeGrid.prototype.onFilter = function (actual, expected) {
|
|
1233
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid.filter\' called.', [this, actual, expected]);
|
|
1229
1234
|
//#region Documentation
|
|
1230
1235
|
// > onFilter will be called for each item in an array
|
|
1231
1236
|
// > If the item is an native type (string, number), the filter will be called with the native type in the parameter 'actual'
|
|
@@ -1310,17 +1315,17 @@ var angularportalazure;
|
|
|
1310
1315
|
//#endregion
|
|
1311
1316
|
//#region OBSOLETE
|
|
1312
1317
|
/** Obsolete */
|
|
1313
|
-
|
|
1314
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'
|
|
1318
|
+
BladeGrid.prototype.setObsoleteLayoutProperites = function () {
|
|
1319
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid.setObsoleteLayoutProperites\' called.', [this]);
|
|
1315
1320
|
if (this.items.length !== 0) {
|
|
1316
1321
|
this.blade.navGrid.items = this.items; //--> needed, otherwise nav html pages will no longer work.
|
|
1317
1322
|
}
|
|
1318
1323
|
this.blade.isNavGrid = this.isNavGrid;
|
|
1319
1324
|
_super.prototype.setObsoleteLayoutProperites.call(this);
|
|
1320
1325
|
};
|
|
1321
|
-
return
|
|
1326
|
+
return BladeGrid;
|
|
1322
1327
|
}(angularportalazure.BladeData));
|
|
1323
|
-
angularportalazure.
|
|
1328
|
+
angularportalazure.BladeGrid = BladeGrid;
|
|
1324
1329
|
})(angularportalazure || (angularportalazure = {}));
|
|
1325
1330
|
/// <reference path="debug.ts" />
|
|
1326
1331
|
/// <reference path="bladenav.ts" />
|
|
@@ -12,16 +12,21 @@ namespace angularportalazure {
|
|
|
12
12
|
bindToController: { vm: '=' },
|
|
13
13
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
14
14
|
link: function (scope, element, attrs, controller) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
this.vm.close = function () {
|
|
18
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
15
|
+
controller.vm.close = function () {
|
|
16
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [controller, portalService]);
|
|
19
17
|
portalService.bladeArea.clearLastLevel();
|
|
20
18
|
};
|
|
21
19
|
},
|
|
20
|
+
controller: function () {
|
|
21
|
+
//this.vm.close = function () {
|
|
22
|
+
// angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
23
|
+
// portalService.bladeArea.clearLastLevel();
|
|
24
|
+
//};
|
|
25
|
+
},
|
|
22
26
|
controllerAs: '$ctrl'
|
|
23
27
|
};
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
angular.module('angularportalazure').directive('angularPortalBlade', angularPortalBlade);
|
|
31
|
+
console.log('angularPortalBlade');
|
|
27
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<section data-ng-form="formblade" class="fxs-blade-locked fxs-blade fx-rightClick fxs-bladesize-small" ng-style="$ctrl.vm.width">
|
|
1
|
+
<section data-ng-form="formblade" class="fxs-blade-locked fxs-blade fx-rightClick fxs-bladesize-small" ng-style="$ctrl.vm.blade.width">
|
|
2
2
|
<header class="fxs-blade-header">
|
|
3
3
|
<div class="fxs-blade-statusbar-wrapper">
|
|
4
4
|
<div class="fxs-blade-statusbar">
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
</div>
|
|
229
229
|
</header>
|
|
230
230
|
<div class="fxs-blade-content fxs-pannable" style="height:calc(100% - 175px);">
|
|
231
|
-
<div class="fxs-blade-stacklayout fxs-stacklayout fxs-stacklayout-vertical" ng-style="$ctrl.vm.widthStackLayout">
|
|
231
|
+
<div class="fxs-blade-stacklayout fxs-stacklayout fxs-stacklayout-vertical" ng-style="$ctrl.vm.blade.widthStackLayout">
|
|
232
232
|
<div class="fxs-stacklayout-child">
|
|
233
233
|
<div class="fxs-lens">
|
|
234
234
|
<h2 class="fxs-lens-title"></h2>
|
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.46",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|