@ardimedia/angular-portal-azure 0.2.42 → 0.2.44
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 +12 -6
- package/apn.js +75 -120
- package/css/apn.css +1141 -1141
- package/directives/blade/angular-portal-blade-grid.ts +3 -18
- package/directives/blade/angular-portal-blade-nav.ts +3 -6
- package/directives/blade/angular-portal-blade.ts +3 -18
- package/directives/blade/blade.html +269 -266
- package/directives/grid/grid.html +1 -1
- package/directives/grid/grid.ts +7 -12
- package/directives/home/home.html +10 -10
- package/directives/home/home.ts +20 -21
- package/directives/nav/nav.html +1 -1
- package/directives/nav/nav.ts +27 -28
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -111,7 +111,15 @@ declare namespace angularportalazure {
|
|
|
111
111
|
commandSwap: () => void;
|
|
112
112
|
commandSwapText: string;
|
|
113
113
|
/** Obsolete */
|
|
114
|
+
blade: Blade;
|
|
114
115
|
/** Obsolete */
|
|
116
|
+
isNavGrid: boolean;
|
|
117
|
+
/** Obsolete */
|
|
118
|
+
navGrid: {
|
|
119
|
+
portalService: any;
|
|
120
|
+
items: any[];
|
|
121
|
+
navigateTo: (path: string) => void;
|
|
122
|
+
};
|
|
115
123
|
activate(): void;
|
|
116
124
|
onActivate(): void;
|
|
117
125
|
navigateTo(arg: any): void;
|
|
@@ -331,11 +339,9 @@ declare namespace angularportalazure {
|
|
|
331
339
|
}
|
|
332
340
|
}
|
|
333
341
|
declare namespace angularportalazure {
|
|
334
|
-
class
|
|
335
|
-
constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
342
|
+
class BladeList extends angularportalazure.BladeData {
|
|
336
343
|
items: any[];
|
|
337
|
-
|
|
338
|
-
filter: any;
|
|
344
|
+
constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
339
345
|
activate(): void;
|
|
340
346
|
onActivate(): any;
|
|
341
347
|
loadItems(f: any): void;
|
|
@@ -359,8 +365,8 @@ declare namespace angularportalazure {
|
|
|
359
365
|
}
|
|
360
366
|
declare namespace angularportalazure {
|
|
361
367
|
class BladeNav extends angularportalazure.BladeData {
|
|
362
|
-
|
|
363
|
-
|
|
368
|
+
items: Array<angularportalazure.BladeNavItem>;
|
|
369
|
+
isNav: boolean;
|
|
364
370
|
constructor(portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
|
|
365
371
|
}
|
|
366
372
|
}
|
package/apn.js
CHANGED
|
@@ -24,7 +24,7 @@ var angularportalazure;
|
|
|
24
24
|
var angularportalazure;
|
|
25
25
|
(function (angularportalazure) {
|
|
26
26
|
var Debug = (function () {
|
|
27
|
-
//#region
|
|
27
|
+
//#region Constructor
|
|
28
28
|
function Debug() {
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
@@ -91,7 +91,7 @@ var angularportalazure;
|
|
|
91
91
|
var angularportalazure;
|
|
92
92
|
(function (angularportalazure) {
|
|
93
93
|
var UserAccount = (function () {
|
|
94
|
-
//#region
|
|
94
|
+
//#region Constructor
|
|
95
95
|
function UserAccount(username, firstName, lastName) {
|
|
96
96
|
if (firstName === void 0) { firstName = ''; }
|
|
97
97
|
if (lastName === void 0) { lastName = ''; }
|
|
@@ -142,7 +142,7 @@ var angularportalazure;
|
|
|
142
142
|
var angularportalazure;
|
|
143
143
|
(function (angularportalazure) {
|
|
144
144
|
var UserControlBase = (function () {
|
|
145
|
-
//#region
|
|
145
|
+
//#region Constructor
|
|
146
146
|
function UserControlBase(portalService) {
|
|
147
147
|
angularportalazure.Debug.write('[angularportalazure-debug] \'UserControlBase\' constructor called.', [this, portalService]);
|
|
148
148
|
this.portalService = portalService;
|
|
@@ -231,15 +231,21 @@ var angularportalazure;
|
|
|
231
231
|
this.isCommandSwap = false;
|
|
232
232
|
this.commandSwap = function () { this.onCommandSwap(); };
|
|
233
233
|
this.commandSwapText = '';
|
|
234
|
+
/** Obsolete */
|
|
235
|
+
this.navGrid = {
|
|
236
|
+
portalService: null,
|
|
237
|
+
items: [],
|
|
238
|
+
navigateTo: function (path) { }
|
|
239
|
+
};
|
|
234
240
|
angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' constructor called.', [this, portalService, path, title, subtitle, width]);
|
|
235
241
|
var that = this;
|
|
236
|
-
|
|
242
|
+
this.blade = this;
|
|
237
243
|
this.path = path;
|
|
238
244
|
this.title = title;
|
|
239
245
|
this.subTitle = subtitle;
|
|
240
246
|
this.width.width = width + 'px';
|
|
241
247
|
this.widthStackLayout.width = width - 50 + 'px';
|
|
242
|
-
|
|
248
|
+
this.navGrid.portalService = portalService;
|
|
243
249
|
if (!portalService) {
|
|
244
250
|
throw new Error('[angularportalazure.Blade] constructor parameter \'portalService\' must be provided.');
|
|
245
251
|
}
|
|
@@ -267,7 +273,7 @@ var angularportalazure;
|
|
|
267
273
|
// Register listener1
|
|
268
274
|
this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
|
|
269
275
|
angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' BladeArea.AddBlade event processing.', [this, event, args]);
|
|
270
|
-
if (that.comparePaths(args.path, that.path)) {
|
|
276
|
+
if (that.blade.comparePaths(args.path, that.blade.path)) {
|
|
271
277
|
that.activate();
|
|
272
278
|
}
|
|
273
279
|
});
|
|
@@ -286,16 +292,6 @@ var angularportalazure;
|
|
|
286
292
|
configurable: true
|
|
287
293
|
});
|
|
288
294
|
//#endregion
|
|
289
|
-
//#region OBSOLETE
|
|
290
|
-
/** Obsolete */
|
|
291
|
-
//blade: Blade;
|
|
292
|
-
/** Obsolete */
|
|
293
|
-
//navGrid = {
|
|
294
|
-
// portalService: null,
|
|
295
|
-
// items: [],
|
|
296
|
-
// navigateTo: function (path: string) { }
|
|
297
|
-
//};
|
|
298
|
-
//#endregion
|
|
299
295
|
//#endregion
|
|
300
296
|
//#region Methods
|
|
301
297
|
//#region Methods
|
|
@@ -391,26 +387,26 @@ var angularportalazure;
|
|
|
391
387
|
/** Obsolete */
|
|
392
388
|
Blade.prototype.setObsoleteLayoutProperites = function () {
|
|
393
389
|
angularportalazure.Debug.write('[angularportalazure-debug] \'Blade.setObsoleteLayoutProperites\' called.', [this]);
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
390
|
+
this.blade.title = this.title;
|
|
391
|
+
this.blade.statusbar = this.statusbar;
|
|
392
|
+
this.blade.statusbarClass = this.statusbarClass;
|
|
393
|
+
this.blade.isCommandBrowse = this.isCommandBrowse;
|
|
394
|
+
this.blade.isCommandCancel = this.isCommandCancel;
|
|
395
|
+
this.blade.isCommandCopy = this.isCommandCopy;
|
|
396
|
+
this.blade.isCommandDelete = this.isCommandDelete;
|
|
397
|
+
this.blade.isCommandDocument = this.isCommandDocument;
|
|
398
|
+
this.blade.isCommandDocument2 = this.isCommandDocument2;
|
|
399
|
+
this.blade.isCommandDocument3 = this.isCommandDocument3;
|
|
400
|
+
this.blade.isCommandDocument4 = this.isCommandDocument4;
|
|
401
|
+
this.blade.isCommandDocument5 = this.isCommandDocument5;
|
|
402
|
+
this.blade.isCommandNew = this.isCommandNew;
|
|
403
|
+
this.blade.isCommandOrder = this.isCommandOrder;
|
|
404
|
+
this.blade.isCommandRestart = this.isCommandRestart;
|
|
405
|
+
this.blade.isCommandSave = this.isCommandSave;
|
|
406
|
+
this.blade.isCommandSearch = this.isCommandSearch;
|
|
407
|
+
this.blade.isCommandStart = this.isCommandStart;
|
|
408
|
+
this.blade.isCommandStop = this.isCommandStop;
|
|
409
|
+
this.blade.isCommandSwap = this.isCommandSwap;
|
|
414
410
|
};
|
|
415
411
|
/** Obsolete */
|
|
416
412
|
Blade.prototype.bladeClose = function () {
|
|
@@ -430,7 +426,7 @@ var angularportalazure;
|
|
|
430
426
|
(function (angularportalazure) {
|
|
431
427
|
var BladeArea = (function (_super) {
|
|
432
428
|
__extends(BladeArea, _super);
|
|
433
|
-
//#region
|
|
429
|
+
//#region Constructor
|
|
434
430
|
function BladeArea(portalService) {
|
|
435
431
|
_super.call(this, portalService);
|
|
436
432
|
this.blades = new Array();
|
|
@@ -641,7 +637,7 @@ var angularportalazure;
|
|
|
641
637
|
(function (angularportalazure) {
|
|
642
638
|
var AvatarMenu = (function (_super) {
|
|
643
639
|
__extends(AvatarMenu, _super);
|
|
644
|
-
//#region
|
|
640
|
+
//#region Constructor
|
|
645
641
|
function AvatarMenu(portalService) {
|
|
646
642
|
_super.call(this, portalService);
|
|
647
643
|
angularportalazure.Debug.write('[angularportalazure-debug] \'AvatarMenu\' constructor called.', [this]);
|
|
@@ -666,7 +662,7 @@ var angularportalazure;
|
|
|
666
662
|
var angularportalazure;
|
|
667
663
|
(function (angularportalazure) {
|
|
668
664
|
var TileSize = (function () {
|
|
669
|
-
//#region
|
|
665
|
+
//#region Constructor
|
|
670
666
|
function TileSize(tileSizes, width, height) {
|
|
671
667
|
this.tileSizes = tileSizes;
|
|
672
668
|
this.width = width;
|
|
@@ -695,7 +691,7 @@ var angularportalazure;
|
|
|
695
691
|
var angularportalazure;
|
|
696
692
|
(function (angularportalazure) {
|
|
697
693
|
var Tile = (function () {
|
|
698
|
-
//#region
|
|
694
|
+
//#region Constructor
|
|
699
695
|
function Tile(title, bladePath, portalService) {
|
|
700
696
|
angularportalazure.Debug.write('[angularportalazure-debug] \'Tile\' constructor called.', [this, title, bladePath, portalService]);
|
|
701
697
|
this.portalService = portalService;
|
|
@@ -776,7 +772,7 @@ var angularportalazure;
|
|
|
776
772
|
var Startboard = (function (_super) {
|
|
777
773
|
__extends(Startboard, _super);
|
|
778
774
|
//#endregion
|
|
779
|
-
//#region
|
|
775
|
+
//#region Constructor
|
|
780
776
|
function Startboard(portalService) {
|
|
781
777
|
_super.call(this, portalService);
|
|
782
778
|
angularportalazure.Debug.write('[angularportalazure-debug] \'Startboard\' constructor called.', [this]);
|
|
@@ -796,7 +792,7 @@ var angularportalazure;
|
|
|
796
792
|
var Panorama = (function (_super) {
|
|
797
793
|
__extends(Panorama, _super);
|
|
798
794
|
//#endregion
|
|
799
|
-
//#region
|
|
795
|
+
//#region Constructor
|
|
800
796
|
function Panorama(title, portalService) {
|
|
801
797
|
_super.call(this, portalService);
|
|
802
798
|
this.isVisible = true;
|
|
@@ -822,7 +818,7 @@ var angularportalazure;
|
|
|
822
818
|
__extends(PortalShell, _super);
|
|
823
819
|
//#endregion
|
|
824
820
|
//#endregion
|
|
825
|
-
//#region
|
|
821
|
+
//#region Constructor
|
|
826
822
|
function PortalShell(title, portalService) {
|
|
827
823
|
_super.call(this, portalService);
|
|
828
824
|
angularportalazure.Debug.write('[angularportalazure-debug] \'PortalShell\' constructor called.', [this, title, portalService]);
|
|
@@ -870,7 +866,7 @@ var angularportalazure;
|
|
|
870
866
|
var angularportalazure;
|
|
871
867
|
(function (angularportalazure) {
|
|
872
868
|
var PortalService = (function () {
|
|
873
|
-
//#region
|
|
869
|
+
//#region Constructor
|
|
874
870
|
function PortalService($injector) {
|
|
875
871
|
//#endregion
|
|
876
872
|
//#region Properties
|
|
@@ -900,6 +896,7 @@ var angularportalazure;
|
|
|
900
896
|
/// <reference path="../../domain/portalservice.ts" />
|
|
901
897
|
var angularportalazure;
|
|
902
898
|
(function (angularportalazure) {
|
|
899
|
+
angularPortalBladeGrid.$inject = ['angularportalazure.portalService'];
|
|
903
900
|
function angularPortalBladeGrid(portalService) {
|
|
904
901
|
return {
|
|
905
902
|
restrict: 'E',
|
|
@@ -908,36 +905,24 @@ var angularportalazure;
|
|
|
908
905
|
bindToController: { vm: '=' },
|
|
909
906
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
910
907
|
link: function (scope, element, attrs, controller) {
|
|
911
|
-
//console.log('angularPortalBladeGrid.link()');
|
|
912
|
-
//console.log(this);
|
|
913
|
-
//#region the following code makes sure, that a function scope.vm.close is available
|
|
914
|
-
//if (scope.vm === undefined) { scope.vm = {}; }
|
|
915
|
-
//if (scope.vm.close === undefined) {
|
|
916
|
-
// scope.vm.close = function () {
|
|
917
|
-
// angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
918
|
-
// portalService.bladeArea.clearLastLevel();
|
|
919
|
-
// }
|
|
920
|
-
//}
|
|
921
|
-
//#endregion
|
|
922
908
|
},
|
|
923
909
|
controller: function () {
|
|
924
|
-
//console.log('angularPortalBladeGrid.controller()');
|
|
925
|
-
//console.log(this);
|
|
926
910
|
this.vm.close = function () {
|
|
927
911
|
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
928
912
|
portalService.bladeArea.clearLastLevel();
|
|
929
913
|
};
|
|
930
914
|
},
|
|
931
|
-
controllerAs: 'ctrl'
|
|
915
|
+
controllerAs: '$ctrl'
|
|
932
916
|
};
|
|
933
917
|
}
|
|
934
|
-
angular.module('angularportalazure').directive('angularPortalBladeGrid',
|
|
918
|
+
angular.module('angularportalazure').directive('angularPortalBladeGrid', angularPortalBladeGrid);
|
|
935
919
|
})(angularportalazure || (angularportalazure = {}));
|
|
936
920
|
/// <reference types="angular" />
|
|
937
921
|
/// <reference path="../../domain/debug.ts" />
|
|
938
922
|
/// <reference path="../../domain/portalservice.ts" />
|
|
939
923
|
var angularportalazure;
|
|
940
924
|
(function (angularportalazure) {
|
|
925
|
+
angularPortalBladeNav.$inject = ['angularportalazure.portalService'];
|
|
941
926
|
function angularPortalBladeNav(portalService) {
|
|
942
927
|
return {
|
|
943
928
|
restrict: 'E',
|
|
@@ -946,27 +931,24 @@ var angularportalazure;
|
|
|
946
931
|
bindToController: { vm: '=' },
|
|
947
932
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
948
933
|
link: function (scope, element, attrs, controller) {
|
|
949
|
-
//console.log('angularPortalBladeNav.link()');
|
|
950
|
-
//console.log(this);
|
|
951
934
|
},
|
|
952
935
|
controller: function () {
|
|
953
|
-
//console.log('angularPortalBladeNav.controller()');
|
|
954
|
-
//console.log(this);
|
|
955
936
|
this.vm.close = function () {
|
|
956
937
|
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
957
938
|
portalService.bladeArea.clearLastLevel();
|
|
958
939
|
};
|
|
959
940
|
},
|
|
960
|
-
controllerAs: 'ctrl'
|
|
941
|
+
controllerAs: '$ctrl'
|
|
961
942
|
};
|
|
962
943
|
}
|
|
963
|
-
angular.module('angularportalazure').directive('angularPortalBladeNav',
|
|
944
|
+
angular.module('angularportalazure').directive('angularPortalBladeNav', angularPortalBladeNav);
|
|
964
945
|
})(angularportalazure || (angularportalazure = {}));
|
|
965
946
|
/// <reference types="angular" />
|
|
966
947
|
/// <reference path="../../domain/debug.ts" />
|
|
967
948
|
/// <reference path="../../domain/portalservice.ts" />
|
|
968
949
|
var angularportalazure;
|
|
969
950
|
(function (angularportalazure) {
|
|
951
|
+
angularPortalBlade.$inject = ['angularportalazure.portalService'];
|
|
970
952
|
function angularPortalBlade(portalService) {
|
|
971
953
|
return {
|
|
972
954
|
restrict: 'E',
|
|
@@ -975,30 +957,17 @@ var angularportalazure;
|
|
|
975
957
|
bindToController: { vm: '=' },
|
|
976
958
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
977
959
|
link: function (scope, element, attrs, controller) {
|
|
978
|
-
//console.log('angularPortalBlade.link()');
|
|
979
|
-
//console.log(this);
|
|
980
|
-
//#region the following code makes sure, that a function scope.vm.close is available
|
|
981
|
-
//if (scope.vm === undefined) { scope.vm = {}; }
|
|
982
|
-
//if (scope.vm.close === undefined) {
|
|
983
|
-
// scope.vm.close = function () {
|
|
984
|
-
// angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
985
|
-
// portalService.bladeArea.clearLastLevel();
|
|
986
|
-
// }
|
|
987
|
-
//}
|
|
988
|
-
//#endregion
|
|
989
960
|
},
|
|
990
961
|
controller: function () {
|
|
991
|
-
//console.log('angularPortalBlade.controller()');
|
|
992
|
-
//console.log(this);
|
|
993
962
|
this.vm.close = function () {
|
|
994
963
|
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
995
964
|
portalService.bladeArea.clearLastLevel();
|
|
996
965
|
};
|
|
997
966
|
},
|
|
998
|
-
controllerAs: 'ctrl'
|
|
967
|
+
controllerAs: '$ctrl'
|
|
999
968
|
};
|
|
1000
969
|
}
|
|
1001
|
-
angular.module('angularportalazure').directive('angularPortalBlade',
|
|
970
|
+
angular.module('angularportalazure').directive('angularPortalBlade', angularPortalBlade);
|
|
1002
971
|
})(angularportalazure || (angularportalazure = {}));
|
|
1003
972
|
// http://blogs.msdn.com/b/laurieatkinson/archive/2014/08/23/implementing-a-save-warning-in-an-angular-spa.aspx
|
|
1004
973
|
//'use strict';
|
|
@@ -1046,27 +1015,16 @@ var angularportalazure;
|
|
|
1046
1015
|
bindToController: { vm: '=' },
|
|
1047
1016
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/grid/grid.html',
|
|
1048
1017
|
link: function (scope, element, attrs, controller) {
|
|
1049
|
-
//
|
|
1050
|
-
//
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
}
|
|
1056
|
-
if (item.title == undefined || item.title == '') {
|
|
1057
|
-
item.style = { cursor: 'default' };
|
|
1058
|
-
}
|
|
1059
|
-
if (item.bladePath == undefined || item.bladePath == '') {
|
|
1060
|
-
item.style = { cursor: 'default' };
|
|
1061
|
-
}
|
|
1062
|
-
});
|
|
1018
|
+
//angular.forEach(controller.vm.items, function (item) {
|
|
1019
|
+
// // Set some default values, depending on existing values
|
|
1020
|
+
// if (item.isVisible == undefined) { item.isVisible = true; }
|
|
1021
|
+
// if (item.title == undefined || item.title == '') { item.style = { cursor: 'default' }; }
|
|
1022
|
+
// if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
|
|
1023
|
+
//});
|
|
1063
1024
|
},
|
|
1064
1025
|
controller: function () {
|
|
1065
|
-
//console.log('grid.controller()');
|
|
1066
|
-
//console.log(this);
|
|
1067
|
-
function navigateTo(path) { console.log(path); }
|
|
1068
1026
|
},
|
|
1069
|
-
controllerAs: 'ctrl'
|
|
1027
|
+
controllerAs: '$ctrl'
|
|
1070
1028
|
};
|
|
1071
1029
|
}
|
|
1072
1030
|
angular.module('angularportalazure').directive('grid', ['$window', grid]);
|
|
@@ -1086,9 +1044,8 @@ var angularportalazure;
|
|
|
1086
1044
|
controller: function () {
|
|
1087
1045
|
//console.log('angularPortalHome.controller()');
|
|
1088
1046
|
//console.log(this);
|
|
1089
|
-
function navigateTo(path) { console.log(path); }
|
|
1090
1047
|
},
|
|
1091
|
-
controllerAs: 'ctrl'
|
|
1048
|
+
controllerAs: '$ctrl'
|
|
1092
1049
|
};
|
|
1093
1050
|
}
|
|
1094
1051
|
angular.module('angularportalazure').directive('angularPortalHome', angularPortalHome);
|
|
@@ -1120,9 +1077,8 @@ var angularportalazure;
|
|
|
1120
1077
|
controller: function () {
|
|
1121
1078
|
//console.log('nav.controller()');
|
|
1122
1079
|
//console.log(this);
|
|
1123
|
-
function navigateTo(path) { console.log(path); }
|
|
1124
1080
|
},
|
|
1125
|
-
controllerAs: 'ctrl'
|
|
1081
|
+
controllerAs: '$ctrl'
|
|
1126
1082
|
};
|
|
1127
1083
|
}
|
|
1128
1084
|
angular.module('angularportalazure').directive('nav', ['$window', nav]);
|
|
@@ -1225,24 +1181,23 @@ var angularportalazure;
|
|
|
1225
1181
|
/// <reference path="portalservice.ts" />
|
|
1226
1182
|
var angularportalazure;
|
|
1227
1183
|
(function (angularportalazure) {
|
|
1228
|
-
var
|
|
1229
|
-
__extends(
|
|
1184
|
+
var BladeList = (function (_super) {
|
|
1185
|
+
__extends(BladeList, _super);
|
|
1186
|
+
//#endregion
|
|
1230
1187
|
//#region Constructor
|
|
1231
|
-
function
|
|
1188
|
+
function BladeList(portalService, path, title, subtitle, width) {
|
|
1232
1189
|
if (subtitle === void 0) { subtitle = ''; }
|
|
1233
1190
|
if (width === void 0) { width = 200; }
|
|
1234
1191
|
_super.call(this, portalService, path, title, subtitle, width);
|
|
1235
|
-
//#endregion
|
|
1236
1192
|
//#region Properties
|
|
1237
1193
|
this.items = [];
|
|
1238
|
-
this.searchString = '';
|
|
1239
1194
|
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeList\' constructor called.', [this, portalService, path, title, subtitle, width]);
|
|
1240
1195
|
this.isCommandNew = true;
|
|
1241
1196
|
this.commandNewText = 'neu';
|
|
1242
1197
|
}
|
|
1243
1198
|
//#endregion
|
|
1244
1199
|
//#region Methods
|
|
1245
|
-
|
|
1200
|
+
BladeList.prototype.activate = function () {
|
|
1246
1201
|
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeList.activate\' called.', [this]);
|
|
1247
1202
|
var that = this;
|
|
1248
1203
|
that.statusbar = 'Daten laden...';
|
|
@@ -1254,10 +1209,10 @@ var angularportalazure;
|
|
|
1254
1209
|
that.loadItems(onActivate);
|
|
1255
1210
|
}
|
|
1256
1211
|
};
|
|
1257
|
-
|
|
1212
|
+
BladeList.prototype.onActivate = function () {
|
|
1258
1213
|
throw new Error('[angularportalazure.BladeList] \'onActivate\' is an abstract function. Define one in the derived class.');
|
|
1259
1214
|
};
|
|
1260
|
-
|
|
1215
|
+
BladeList.prototype.loadItems = function (f) {
|
|
1261
1216
|
var that = this;
|
|
1262
1217
|
f.success(function (data) {
|
|
1263
1218
|
that.items = data;
|
|
@@ -1269,7 +1224,7 @@ var angularportalazure;
|
|
|
1269
1224
|
});
|
|
1270
1225
|
};
|
|
1271
1226
|
//#region Filter
|
|
1272
|
-
|
|
1227
|
+
BladeList.prototype.onFilter = function (actual, expected) {
|
|
1273
1228
|
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeList.filter\' called.', [this, actual, expected]);
|
|
1274
1229
|
//#region Documentation
|
|
1275
1230
|
// > onFilter will be called for each item in an array
|
|
@@ -1355,16 +1310,17 @@ var angularportalazure;
|
|
|
1355
1310
|
//#endregion
|
|
1356
1311
|
//#region OBSOLETE
|
|
1357
1312
|
/** Obsolete */
|
|
1358
|
-
|
|
1313
|
+
BladeList.prototype.setObsoleteLayoutProperites = function () {
|
|
1359
1314
|
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeList.setObsoleteLayoutProperites\' called.', [this]);
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1315
|
+
if (this.items.length !== 0) {
|
|
1316
|
+
this.blade.navGrid.items = this.items; //--> needed, otherwise nav html pages will no longer work.
|
|
1317
|
+
}
|
|
1318
|
+
this.blade.isNavGrid = this.isNavGrid;
|
|
1363
1319
|
_super.prototype.setObsoleteLayoutProperites.call(this);
|
|
1364
1320
|
};
|
|
1365
|
-
return
|
|
1321
|
+
return BladeList;
|
|
1366
1322
|
}(angularportalazure.BladeData));
|
|
1367
|
-
angularportalazure.
|
|
1323
|
+
angularportalazure.BladeList = BladeList;
|
|
1368
1324
|
})(angularportalazure || (angularportalazure = {}));
|
|
1369
1325
|
/// <reference path="debug.ts" />
|
|
1370
1326
|
/// <reference path="bladenav.ts" />
|
|
@@ -1417,11 +1373,10 @@ var angularportalazure;
|
|
|
1417
1373
|
if (width === void 0) { width = 200; }
|
|
1418
1374
|
_super.call(this, portalService, path, title, subtitle, width);
|
|
1419
1375
|
//#region Properties
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1376
|
+
this.items = new Array();
|
|
1377
|
+
this.isNav = true;
|
|
1422
1378
|
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeNav\' constructor called.', [this, portalService, path, title, subtitle, width]);
|
|
1423
1379
|
_super.prototype.onNavigateTo = this.navigateTo;
|
|
1424
|
-
this.isNavGrid = true;
|
|
1425
1380
|
}
|
|
1426
1381
|
return BladeNav;
|
|
1427
1382
|
}(angularportalazure.BladeData));
|