@ardimedia/angular-portal-azure 0.2.51 → 0.2.53
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 +13 -12
- package/apn.js +167 -162
- package/directives/blade/angular-portal-blade-grid.ts +6 -5
- package/directives/blade/angular-portal-blade-nav.ts +6 -5
- package/directives/blade/angular-portal-blade.ts +6 -4
- package/directives/grid/grid.ts +1 -2
- package/directives/home/home.ts +2 -8
- package/directives/nav/nav.ts +1 -6
- package/package.json +8 -7
package/apn.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
/// <reference types="
|
|
1
|
+
/// <reference types="angulartics" />
|
|
2
2
|
/// <reference types="angular" />
|
|
3
|
+
/// <reference types="angular-resource" />
|
|
3
4
|
declare namespace angularportalazure {
|
|
4
5
|
}
|
|
5
6
|
declare namespace angularportalazure {
|
|
@@ -272,7 +273,7 @@ declare namespace angularportalazure {
|
|
|
272
273
|
static $inject: string[];
|
|
273
274
|
constructor($injector: any);
|
|
274
275
|
parameter: angularportalazure.IBladeParameter;
|
|
275
|
-
$analytics:
|
|
276
|
+
$analytics: angulartics.IAnalyticsService;
|
|
276
277
|
animate: any;
|
|
277
278
|
animation: any;
|
|
278
279
|
component: any;
|
|
@@ -293,13 +294,13 @@ declare namespace angularportalazure {
|
|
|
293
294
|
panorama: angularportalazure.Panorama;
|
|
294
295
|
bladeArea: angularportalazure.BladeArea;
|
|
295
296
|
ngDialog: any;
|
|
296
|
-
$http:
|
|
297
|
-
$httpBackend:
|
|
298
|
-
$injector:
|
|
299
|
-
$q:
|
|
300
|
-
$rootScope:
|
|
301
|
-
$window:
|
|
302
|
-
$scope:
|
|
297
|
+
$http: angular.IHttpService;
|
|
298
|
+
$httpBackend: angular.IHttpBackendService;
|
|
299
|
+
$injector: angular.auto.IInjectorService;
|
|
300
|
+
$q: angular.IQService;
|
|
301
|
+
$rootScope: angular.IRootScopeService;
|
|
302
|
+
$window: angular.IWindowService;
|
|
303
|
+
$scope: angular.IScope;
|
|
303
304
|
}
|
|
304
305
|
}
|
|
305
306
|
declare namespace angularportalazure {
|
|
@@ -381,9 +382,9 @@ declare namespace angularportalazure {
|
|
|
381
382
|
}
|
|
382
383
|
declare namespace angularportalazure {
|
|
383
384
|
class DataService {
|
|
384
|
-
$http:
|
|
385
|
-
$q:
|
|
386
|
-
constructor($http:
|
|
385
|
+
$http: angular.IHttpService;
|
|
386
|
+
$q: angular.IQService;
|
|
387
|
+
constructor($http: angular.IHttpService, $q: angular.IQService);
|
|
387
388
|
getData(url: string): any;
|
|
388
389
|
}
|
|
389
390
|
}
|
package/apn.js
CHANGED
|
@@ -80,13 +80,13 @@ var angularportalazure;
|
|
|
80
80
|
}
|
|
81
81
|
return false;
|
|
82
82
|
};
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region Properties
|
|
85
|
-
Debug.isEnabled = false;
|
|
86
|
-
Debug.isWithObjects = false;
|
|
87
|
-
Debug.keys = new Array();
|
|
88
83
|
return Debug;
|
|
89
84
|
}());
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region Properties
|
|
87
|
+
Debug.isEnabled = false;
|
|
88
|
+
Debug.isWithObjects = false;
|
|
89
|
+
Debug.keys = new Array();
|
|
90
90
|
angularportalazure.Debug = Debug;
|
|
91
91
|
})(angularportalazure || (angularportalazure = {}));
|
|
92
92
|
/// <reference path="debug.ts" />
|
|
@@ -172,83 +172,83 @@ var angularportalazure;
|
|
|
172
172
|
function Blade(portalService, path, title, subtitle, width) {
|
|
173
173
|
if (subtitle === void 0) { subtitle = ''; }
|
|
174
174
|
if (width === void 0) { width = 200; }
|
|
175
|
-
_super.call(this, portalService);
|
|
175
|
+
var _this = _super.call(this, portalService) || this;
|
|
176
176
|
//#endregion
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
177
|
+
_this.title = '';
|
|
178
|
+
_this.subTitle = '';
|
|
179
|
+
_this.width = { 'width': '0' };
|
|
180
|
+
_this.widthStackLayout = { 'width': '50px' };
|
|
181
|
+
_this.isInnerHtml = true;
|
|
182
|
+
_this.statusbar = '';
|
|
183
|
+
_this.statusbarClass = '';
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region Commands
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
186
|
+
_this.isCommandBrowse = false;
|
|
187
|
+
_this.commandBrowse = function () { this.onCommandBrowse(); };
|
|
188
|
+
_this.commandBrowseText = '';
|
|
189
|
+
_this.isCommandCancel = false;
|
|
190
|
+
_this.commandCancel = function () { this.onCommandCancel(); };
|
|
191
|
+
_this.commandCancelText = '';
|
|
192
|
+
_this.isCommandCopy = false;
|
|
193
|
+
_this.commandCopy = function () { this.onCommandCopy(); };
|
|
194
|
+
_this.commandCopyText = '';
|
|
195
|
+
_this.isCommandDelete = false;
|
|
196
|
+
_this.commandDelete = function () { this.onCommandDelete(); };
|
|
197
|
+
_this.commandDeleteText = '';
|
|
198
|
+
_this.isCommandDocument = false;
|
|
199
|
+
_this.commandDocument = function () { this.onCommandDocument(); };
|
|
200
|
+
_this.commandDocumentText = '';
|
|
201
|
+
_this.isCommandDocument2 = false;
|
|
202
|
+
_this.commandDocument2 = function () { this.onCommandDocument2(); };
|
|
203
|
+
_this.commandDocument2Text = '';
|
|
204
|
+
_this.isCommandDocument3 = false;
|
|
205
|
+
_this.commandDocument3 = function () { this.onCommandDocument3(); };
|
|
206
|
+
_this.commandDocument3Text = '';
|
|
207
|
+
_this.isCommandDocument4 = false;
|
|
208
|
+
_this.commandDocument4 = function () { this.onCommandDocument4(); };
|
|
209
|
+
_this.commandDocument4Text = '';
|
|
210
|
+
_this.isCommandDocument5 = false;
|
|
211
|
+
_this.commandDocument5 = function () { this.onCommandDocument5(); };
|
|
212
|
+
_this.commandDocument5Text = '';
|
|
213
|
+
_this.isCommandNew = false;
|
|
214
|
+
_this.commandNew = function () { this.onCommandNew(); };
|
|
215
|
+
_this.commandNewText = '';
|
|
216
|
+
_this.isCommandOrder = false;
|
|
217
|
+
_this.commandOrder = function () { this.onCommandOrder(); };
|
|
218
|
+
_this.commandOrderText = '';
|
|
219
|
+
_this.isCommandRestart = false;
|
|
220
|
+
_this.commandRestart = function () { this.onCommandRestart(); };
|
|
221
|
+
_this.commandRestartText = '';
|
|
222
|
+
_this.isCommandSave = false;
|
|
223
|
+
_this.commandSave = function () { this.onCommandSave(); };
|
|
224
|
+
_this.commandSaveText = '';
|
|
225
|
+
_this.isCommandSearch = false;
|
|
226
|
+
_this.commandSearch = function () { this.onCommandSearch(); };
|
|
227
|
+
_this.commandSearchText = '';
|
|
228
|
+
_this.isCommandStart = false;
|
|
229
|
+
_this.commandStart = function () { this.onCommandStart(); };
|
|
230
|
+
_this.commandStartText = '';
|
|
231
|
+
_this.isCommandStop = false;
|
|
232
|
+
_this.commandStop = function () { this.onCommandStop(); };
|
|
233
|
+
_this.commandStopText = '';
|
|
234
|
+
_this.isCommandSwap = false;
|
|
235
|
+
_this.commandSwap = function () { this.onCommandSwap(); };
|
|
236
|
+
_this.commandSwapText = '';
|
|
237
237
|
/** Obsolete */
|
|
238
|
-
|
|
238
|
+
_this.navGrid = {
|
|
239
239
|
portalService: null,
|
|
240
240
|
items: [],
|
|
241
241
|
navigateTo: function (path) { }
|
|
242
242
|
};
|
|
243
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' constructor called.', [
|
|
244
|
-
var that =
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
243
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' constructor called.', [_this, portalService, path, title, subtitle, width]);
|
|
244
|
+
var that = _this;
|
|
245
|
+
_this.blade = _this;
|
|
246
|
+
_this.path = path;
|
|
247
|
+
_this.title = title;
|
|
248
|
+
_this.subTitle = subtitle;
|
|
249
|
+
_this.width.width = width + 'px';
|
|
250
|
+
_this.widthStackLayout.width = width - 50 + 'px';
|
|
251
|
+
_this.navGrid.portalService = portalService;
|
|
252
252
|
if (!portalService) {
|
|
253
253
|
throw new Error('[angularportalazure.Blade] constructor parameter \'portalService\' must be provided.');
|
|
254
254
|
}
|
|
@@ -270,16 +270,17 @@ var angularportalazure;
|
|
|
270
270
|
//#region Add BladeArea.AddBlade event listener
|
|
271
271
|
/** OBSOLETE: remove when all OBSOLETE code has been removed */
|
|
272
272
|
if (portalService instanceof angularportalazure.PortalService == false) {
|
|
273
|
-
return;
|
|
273
|
+
return _this;
|
|
274
274
|
}
|
|
275
275
|
/** OBSOLETE: end */
|
|
276
276
|
// Register listener1
|
|
277
|
-
|
|
277
|
+
_this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
|
|
278
278
|
angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' BladeArea.AddBlade event processing.', [this, event, args]);
|
|
279
279
|
if (that.blade.comparePaths(args.path, that.blade.path)) {
|
|
280
280
|
that.activate();
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
|
+
return _this;
|
|
283
284
|
//#endregion
|
|
284
285
|
}
|
|
285
286
|
Object.defineProperty(Blade.prototype, "path", {
|
|
@@ -440,24 +441,25 @@ var angularportalazure;
|
|
|
440
441
|
__extends(BladeArea, _super);
|
|
441
442
|
//#region Constructor
|
|
442
443
|
function BladeArea(portalService) {
|
|
443
|
-
_super.call(this, portalService);
|
|
444
|
-
|
|
445
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea\' constructor called.', [
|
|
446
|
-
var that =
|
|
444
|
+
var _this = _super.call(this, portalService) || this;
|
|
445
|
+
_this.blades = new Array();
|
|
446
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea\' constructor called.', [_this, portalService]);
|
|
447
|
+
var that = _this;
|
|
447
448
|
// Set dependencies
|
|
448
|
-
|
|
449
|
-
|
|
449
|
+
_this.portalService = portalService;
|
|
450
|
+
_this.portalService.bladeArea = _this;
|
|
450
451
|
//#region Add BladeArea.AddBlade event listener
|
|
451
452
|
/** OBSOLETE: remove when all OBSOLETE code has been removed */
|
|
452
453
|
if (portalService instanceof angularportalazure.PortalService == false) {
|
|
453
|
-
return;
|
|
454
|
+
return _this;
|
|
454
455
|
}
|
|
455
456
|
/** OBSOLETE: end */
|
|
456
457
|
// Register listener1
|
|
457
|
-
|
|
458
|
+
_this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
|
|
458
459
|
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea\' BladeArea.AddBlade event processing.', [this, event, args]);
|
|
459
460
|
that.addBlade(args.path, args.pathSender);
|
|
460
461
|
});
|
|
462
|
+
return _this;
|
|
461
463
|
//#endregion
|
|
462
464
|
}
|
|
463
465
|
//#endregion
|
|
@@ -647,6 +649,7 @@ var angularportalazure;
|
|
|
647
649
|
'use strict';
|
|
648
650
|
angular.module('angularportalazure').service('angularportalazure.bladeArea', ['$window', BladeArea]);
|
|
649
651
|
})();
|
|
652
|
+
//#endregion
|
|
650
653
|
})(angularportalazure || (angularportalazure = {}));
|
|
651
654
|
/// <reference path="debug.ts" />
|
|
652
655
|
/// <reference path="portalservice.ts" />
|
|
@@ -658,8 +661,9 @@ var angularportalazure;
|
|
|
658
661
|
__extends(AvatarMenu, _super);
|
|
659
662
|
//#region Constructor
|
|
660
663
|
function AvatarMenu(portalService) {
|
|
661
|
-
_super.call(this, portalService);
|
|
662
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'AvatarMenu\' constructor called.', [
|
|
664
|
+
var _this = _super.call(this, portalService) || this;
|
|
665
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'AvatarMenu\' constructor called.', [_this]);
|
|
666
|
+
return _this;
|
|
663
667
|
}
|
|
664
668
|
return AvatarMenu;
|
|
665
669
|
}(angularportalazure.UserControlBase));
|
|
@@ -668,13 +672,13 @@ var angularportalazure;
|
|
|
668
672
|
var angularportalazure;
|
|
669
673
|
(function (angularportalazure) {
|
|
670
674
|
/** The names are used in CSS for layouting, e.g. style='mini' */
|
|
675
|
+
var TileSizes;
|
|
671
676
|
(function (TileSizes) {
|
|
672
677
|
TileSizes[TileSizes["small"] = 0] = "small";
|
|
673
678
|
TileSizes[TileSizes["mini"] = 1] = "mini";
|
|
674
679
|
TileSizes[TileSizes["normal"] = 2] = "normal";
|
|
675
680
|
TileSizes[TileSizes["herowide"] = 3] = "herowide";
|
|
676
|
-
})(angularportalazure.TileSizes || (angularportalazure.TileSizes = {}));
|
|
677
|
-
var TileSizes = angularportalazure.TileSizes;
|
|
681
|
+
})(TileSizes = angularportalazure.TileSizes || (angularportalazure.TileSizes = {}));
|
|
678
682
|
})(angularportalazure || (angularportalazure = {}));
|
|
679
683
|
/// <reference path="debug.ts" />
|
|
680
684
|
/// <reference path="tilesizes.ts" />
|
|
@@ -757,6 +761,7 @@ var angularportalazure;
|
|
|
757
761
|
this.nextLeft = 0;
|
|
758
762
|
this.nextTop = 0;
|
|
759
763
|
this.columnHeightMax = 0;
|
|
764
|
+
//#endregion
|
|
760
765
|
}
|
|
761
766
|
//#endregion
|
|
762
767
|
//#region Methods
|
|
@@ -793,9 +798,10 @@ var angularportalazure;
|
|
|
793
798
|
//#endregion
|
|
794
799
|
//#region Constructor
|
|
795
800
|
function Startboard(portalService) {
|
|
796
|
-
_super.call(this, portalService);
|
|
797
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'Startboard\' constructor called.', [
|
|
798
|
-
|
|
801
|
+
var _this = _super.call(this, portalService) || this;
|
|
802
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'Startboard\' constructor called.', [_this]);
|
|
803
|
+
_this.tiles = new angularportalazure.Tiles();
|
|
804
|
+
return _this;
|
|
799
805
|
}
|
|
800
806
|
return Startboard;
|
|
801
807
|
}(angularportalazure.UserControlBase));
|
|
@@ -813,13 +819,14 @@ var angularportalazure;
|
|
|
813
819
|
//#endregion
|
|
814
820
|
//#region Constructor
|
|
815
821
|
function Panorama(title, portalService) {
|
|
816
|
-
_super.call(this, portalService);
|
|
817
|
-
|
|
818
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'Panorama\' constructor called.', [
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
822
|
+
var _this = _super.call(this, portalService) || this;
|
|
823
|
+
_this.isVisible = true;
|
|
824
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'Panorama\' constructor called.', [_this, title]);
|
|
825
|
+
_this.title = title;
|
|
826
|
+
_this.portalService.panorama = _this;
|
|
827
|
+
_this.avatarMenu = new angularportalazure.AvatarMenu(_this.portalService);
|
|
828
|
+
_this.startboard = new angularportalazure.Startboard(_this.portalService);
|
|
829
|
+
return _this;
|
|
823
830
|
}
|
|
824
831
|
return Panorama;
|
|
825
832
|
}(angularportalazure.UserControlBase));
|
|
@@ -839,13 +846,14 @@ var angularportalazure;
|
|
|
839
846
|
//#endregion
|
|
840
847
|
//#region Constructor
|
|
841
848
|
function PortalShell(title, portalService) {
|
|
842
|
-
_super.call(this, portalService);
|
|
843
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'PortalShell\' constructor called.', [
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
+
var _this = _super.call(this, portalService) || this;
|
|
850
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'PortalShell\' constructor called.', [_this, title, portalService]);
|
|
851
|
+
_this.portalService = portalService;
|
|
852
|
+
_this.portalService.portalShell = _this;
|
|
853
|
+
_this.portalService.panorama = new angularportalazure.Panorama(title, _this.portalService);
|
|
854
|
+
_this.portalService.bladeArea = new angularportalazure.BladeArea(portalService);
|
|
855
|
+
_this.initialize();
|
|
856
|
+
return _this;
|
|
849
857
|
}
|
|
850
858
|
//#endregion
|
|
851
859
|
//#region Methods
|
|
@@ -877,6 +885,7 @@ var angularportalazure;
|
|
|
877
885
|
angularportalazure.PortalShell = PortalShell;
|
|
878
886
|
})(angularportalazure || (angularportalazure = {}));
|
|
879
887
|
/// <reference types="angular" />
|
|
888
|
+
/// <reference types="angulartics" />
|
|
880
889
|
/// <reference path="bladearea.ts" />
|
|
881
890
|
/// <reference path="debug.ts" />
|
|
882
891
|
/// <reference path="ibladeparameter.ts" />
|
|
@@ -901,10 +910,10 @@ var angularportalazure;
|
|
|
901
910
|
this.ngDialog = $injector.get('ngDialog');
|
|
902
911
|
this.ngDialog.openConfirm;
|
|
903
912
|
}
|
|
904
|
-
//#region Constructor
|
|
905
|
-
PortalService.$inject = ['$injector'];
|
|
906
913
|
return PortalService;
|
|
907
914
|
}());
|
|
915
|
+
//#region Constructor
|
|
916
|
+
PortalService.$inject = ['$injector'];
|
|
908
917
|
angularportalazure.PortalService = PortalService;
|
|
909
918
|
angular.module('angularportalazure').service('angularportalazure.portalService', PortalService);
|
|
910
919
|
})(angularportalazure || (angularportalazure = {}));
|
|
@@ -921,12 +930,13 @@ var angularportalazure;
|
|
|
921
930
|
scope: {},
|
|
922
931
|
bindToController: { vm: '=' },
|
|
923
932
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
924
|
-
link: function (scope, element, attrs, controller) {
|
|
925
|
-
},
|
|
933
|
+
link: function (scope, element, attrs, controller) { },
|
|
926
934
|
controller: function () {
|
|
927
|
-
this
|
|
928
|
-
|
|
929
|
-
|
|
935
|
+
this.$onInit = function () {
|
|
936
|
+
this.vm.close = function () {
|
|
937
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
938
|
+
portalService.bladeArea.clearLastLevel();
|
|
939
|
+
};
|
|
930
940
|
};
|
|
931
941
|
},
|
|
932
942
|
controllerAs: '$ctrl'
|
|
@@ -947,12 +957,13 @@ var angularportalazure;
|
|
|
947
957
|
scope: {},
|
|
948
958
|
bindToController: { vm: '=' },
|
|
949
959
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
950
|
-
link: function (scope, element, attrs, controller) {
|
|
951
|
-
},
|
|
960
|
+
link: function (scope, element, attrs, controller) { },
|
|
952
961
|
controller: function () {
|
|
953
|
-
this
|
|
954
|
-
|
|
955
|
-
|
|
962
|
+
this.$onInit = function () {
|
|
963
|
+
this.vm.close = function () {
|
|
964
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
965
|
+
portalService.bladeArea.clearLastLevel();
|
|
966
|
+
};
|
|
956
967
|
};
|
|
957
968
|
},
|
|
958
969
|
controllerAs: '$ctrl'
|
|
@@ -980,10 +991,12 @@ var angularportalazure;
|
|
|
980
991
|
};
|
|
981
992
|
},
|
|
982
993
|
controller: function () {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
994
|
+
this.$onInit = function () {
|
|
995
|
+
//this.vm.close = function () {
|
|
996
|
+
// angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
997
|
+
// portalService.bladeArea.clearLastLevel();
|
|
998
|
+
//};
|
|
999
|
+
};
|
|
987
1000
|
},
|
|
988
1001
|
controllerAs: '$ctrl'
|
|
989
1002
|
};
|
|
@@ -1043,8 +1056,7 @@ var angularportalazure;
|
|
|
1043
1056
|
// if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
|
|
1044
1057
|
//});
|
|
1045
1058
|
},
|
|
1046
|
-
controller: function () {
|
|
1047
|
-
},
|
|
1059
|
+
controller: function () { },
|
|
1048
1060
|
controllerAs: '$ctrl'
|
|
1049
1061
|
};
|
|
1050
1062
|
}
|
|
@@ -1058,14 +1070,8 @@ var angularportalazure;
|
|
|
1058
1070
|
scope: {},
|
|
1059
1071
|
bindToController: { vm: '=' },
|
|
1060
1072
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
|
|
1061
|
-
link: function (scope, element, attrs, controller) {
|
|
1062
|
-
|
|
1063
|
-
//console.log(this);
|
|
1064
|
-
},
|
|
1065
|
-
controller: function () {
|
|
1066
|
-
//console.log('angularPortalHome.controller()');
|
|
1067
|
-
//console.log(this);
|
|
1068
|
-
},
|
|
1073
|
+
link: function (scope, element, attrs, controller) { },
|
|
1074
|
+
controller: function () { },
|
|
1069
1075
|
controllerAs: '$ctrl'
|
|
1070
1076
|
};
|
|
1071
1077
|
}
|
|
@@ -1080,8 +1086,6 @@ var angularportalazure;
|
|
|
1080
1086
|
bindToController: { vm: '=' },
|
|
1081
1087
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
1082
1088
|
link: function (scope, element, attrs, controller) {
|
|
1083
|
-
//console.log('nav.link()');
|
|
1084
|
-
//console.log(this);
|
|
1085
1089
|
angular.forEach(controller.vm.items, function (item) {
|
|
1086
1090
|
// Set some default values, depending on existing values
|
|
1087
1091
|
if (item.isVisible == undefined) {
|
|
@@ -1095,10 +1099,7 @@ var angularportalazure;
|
|
|
1095
1099
|
}
|
|
1096
1100
|
});
|
|
1097
1101
|
},
|
|
1098
|
-
controller: function () {
|
|
1099
|
-
//console.log('nav.controller()');
|
|
1100
|
-
//console.log(this);
|
|
1101
|
-
},
|
|
1102
|
+
controller: function () { },
|
|
1102
1103
|
controllerAs: '$ctrl'
|
|
1103
1104
|
};
|
|
1104
1105
|
}
|
|
@@ -1116,8 +1117,9 @@ var angularportalazure;
|
|
|
1116
1117
|
function BladeData(portalService, path, title, subtitle, width) {
|
|
1117
1118
|
if (subtitle === void 0) { subtitle = ''; }
|
|
1118
1119
|
if (width === void 0) { width = 300; }
|
|
1119
|
-
_super.call(this, portalService, path, title, subtitle, width);
|
|
1120
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeData\' constructor called.', [
|
|
1120
|
+
var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
|
|
1121
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeData\' constructor called.', [_this, portalService, path, title, subtitle, width]);
|
|
1122
|
+
return _this;
|
|
1121
1123
|
}
|
|
1122
1124
|
//#endregion
|
|
1123
1125
|
//#region Methods
|
|
@@ -1145,18 +1147,19 @@ var angularportalazure;
|
|
|
1145
1147
|
function BladeDetail(portalService, path, title, subtitle, width) {
|
|
1146
1148
|
if (subtitle === void 0) { subtitle = ''; }
|
|
1147
1149
|
if (width === void 0) { width = 200; }
|
|
1148
|
-
_super.call(this, portalService, path, title, subtitle, width);
|
|
1150
|
+
var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
|
|
1149
1151
|
//#region Properties
|
|
1150
|
-
|
|
1151
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeDetail\' constructor called.', [
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1152
|
+
_this.item = null;
|
|
1153
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeDetail\' constructor called.', [_this, portalService, path, title, subtitle, width]);
|
|
1154
|
+
_this.isCommandNew = true;
|
|
1155
|
+
_this.commandNewText = 'neu';
|
|
1156
|
+
_this.isCommandSave = true;
|
|
1157
|
+
_this.commandSaveText = 'speichern';
|
|
1158
|
+
_this.isCommandDelete = true;
|
|
1159
|
+
_this.commandDeleteText = 'löschen';
|
|
1160
|
+
_this.isCommandCancel = true;
|
|
1161
|
+
_this.commandCancelText = 'abbrechen';
|
|
1162
|
+
return _this;
|
|
1160
1163
|
}
|
|
1161
1164
|
//#endregion
|
|
1162
1165
|
//#region Methods
|
|
@@ -1209,12 +1212,13 @@ var angularportalazure;
|
|
|
1209
1212
|
function BladeGrid(portalService, path, title, subtitle, width) {
|
|
1210
1213
|
if (subtitle === void 0) { subtitle = ''; }
|
|
1211
1214
|
if (width === void 0) { width = 200; }
|
|
1212
|
-
_super.call(this, portalService, path, title, subtitle, width);
|
|
1215
|
+
var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
|
|
1213
1216
|
//#region Properties
|
|
1214
|
-
|
|
1215
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid\' constructor called.', [
|
|
1216
|
-
|
|
1217
|
-
|
|
1217
|
+
_this.items = [];
|
|
1218
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeGrid\' constructor called.', [_this, portalService, path, title, subtitle, width]);
|
|
1219
|
+
_this.isCommandNew = true;
|
|
1220
|
+
_this.commandNewText = 'neu';
|
|
1221
|
+
return _this;
|
|
1218
1222
|
}
|
|
1219
1223
|
//#endregion
|
|
1220
1224
|
//#region Methods
|
|
@@ -1392,12 +1396,13 @@ var angularportalazure;
|
|
|
1392
1396
|
if (title === void 0) { title = ''; }
|
|
1393
1397
|
if (subtitle === void 0) { subtitle = ''; }
|
|
1394
1398
|
if (width === void 0) { width = 200; }
|
|
1395
|
-
_super.call(this, portalService, path, title, subtitle, width);
|
|
1399
|
+
var _this = _super.call(this, portalService, path, title, subtitle, width) || this;
|
|
1396
1400
|
//#region Properties
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeNav\' constructor called.', [
|
|
1400
|
-
_super.prototype.navigateTo =
|
|
1401
|
+
_this.items = new Array();
|
|
1402
|
+
_this.isNav = true;
|
|
1403
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'BladeNav\' constructor called.', [_this, portalService, path, title, subtitle, width]);
|
|
1404
|
+
_super.prototype.navigateTo = _this.navigateTo;
|
|
1405
|
+
return _this;
|
|
1401
1406
|
}
|
|
1402
1407
|
return BladeNav;
|
|
1403
1408
|
}(angularportalazure.BladeData));
|
|
@@ -1458,9 +1463,9 @@ var angularportalazure;
|
|
|
1458
1463
|
DataService.prototype.getData = function (url) {
|
|
1459
1464
|
var that = this;
|
|
1460
1465
|
return that.$http({ method: 'GET', url: url })
|
|
1461
|
-
.
|
|
1466
|
+
.then(function (response) {
|
|
1462
1467
|
})
|
|
1463
|
-
.
|
|
1468
|
+
.catch(function (response) {
|
|
1464
1469
|
});
|
|
1465
1470
|
};
|
|
1466
1471
|
return DataService;
|
|
@@ -11,12 +11,13 @@ namespace angularportalazure {
|
|
|
11
11
|
scope: {},
|
|
12
12
|
bindToController: { vm: '=' },
|
|
13
13
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
14
|
-
link: function (scope, element, attrs, controller) {
|
|
15
|
-
},
|
|
14
|
+
link: function (scope, element, attrs, controller) { },
|
|
16
15
|
controller: function () {
|
|
17
|
-
this
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
this.$onInit = function () {
|
|
17
|
+
this.vm.close = function () {
|
|
18
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
19
|
+
portalService.bladeArea.clearLastLevel();
|
|
20
|
+
};
|
|
20
21
|
};
|
|
21
22
|
},
|
|
22
23
|
controllerAs: '$ctrl'
|
|
@@ -11,12 +11,13 @@ namespace angularportalazure {
|
|
|
11
11
|
scope: {},
|
|
12
12
|
bindToController: { vm: '=' },
|
|
13
13
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
|
|
14
|
-
link: function (scope, element, attrs, controller) {
|
|
15
|
-
},
|
|
14
|
+
link: function (scope, element, attrs, controller) { },
|
|
16
15
|
controller: function () {
|
|
17
|
-
this
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
this.$onInit = function () {
|
|
17
|
+
this.vm.close = function () {
|
|
18
|
+
angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
19
|
+
portalService.bladeArea.clearLastLevel();
|
|
20
|
+
};
|
|
20
21
|
};
|
|
21
22
|
},
|
|
22
23
|
controllerAs: '$ctrl'
|
|
@@ -18,10 +18,12 @@ namespace angularportalazure {
|
|
|
18
18
|
};
|
|
19
19
|
},
|
|
20
20
|
controller: function () {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
this.$onInit = function () {
|
|
22
|
+
//this.vm.close = function () {
|
|
23
|
+
// angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
|
|
24
|
+
// portalService.bladeArea.clearLastLevel();
|
|
25
|
+
//};
|
|
26
|
+
};
|
|
25
27
|
},
|
|
26
28
|
controllerAs: '$ctrl'
|
|
27
29
|
};
|
package/directives/grid/grid.ts
CHANGED
package/directives/home/home.ts
CHANGED
|
@@ -5,14 +5,8 @@
|
|
|
5
5
|
scope: {},
|
|
6
6
|
bindToController: { vm: '=' },
|
|
7
7
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
|
|
8
|
-
link: function (scope, element, attrs, controller) {
|
|
9
|
-
|
|
10
|
-
//console.log(this);
|
|
11
|
-
},
|
|
12
|
-
controller: function () {
|
|
13
|
-
//console.log('angularPortalHome.controller()');
|
|
14
|
-
//console.log(this);
|
|
15
|
-
},
|
|
8
|
+
link: function (scope, element, attrs, controller) { },
|
|
9
|
+
controller: function () { },
|
|
16
10
|
controllerAs: '$ctrl'
|
|
17
11
|
};
|
|
18
12
|
}
|
package/directives/nav/nav.ts
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
bindToController: { vm: '=' },
|
|
7
7
|
templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
|
|
8
8
|
link: function (scope, element, attrs, controller) {
|
|
9
|
-
//console.log('nav.link()');
|
|
10
|
-
//console.log(this);
|
|
11
9
|
angular.forEach(controller.vm.items, function (item) {
|
|
12
10
|
// Set some default values, depending on existing values
|
|
13
11
|
if (item.isVisible == undefined) { item.isVisible = true; }
|
|
@@ -15,10 +13,7 @@
|
|
|
15
13
|
if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
|
|
16
14
|
});
|
|
17
15
|
},
|
|
18
|
-
controller: function () {
|
|
19
|
-
//console.log('nav.controller()');
|
|
20
|
-
//console.log(this);
|
|
21
|
-
},
|
|
16
|
+
controller: function () { },
|
|
22
17
|
controllerAs: '$ctrl'
|
|
23
18
|
};
|
|
24
19
|
}
|
package/package.json
CHANGED
|
@@ -2,20 +2,21 @@
|
|
|
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.53",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"@types/ng-dialog": "0.0.31",
|
|
12
|
-
"angular": "^1.5.8",
|
|
13
|
-
"angular-resource": "^1.5.8",
|
|
9
|
+
"angular": "^1.6.0",
|
|
10
|
+
"angular-resource": "^1.6.0",
|
|
14
11
|
"angulartics": "^1.3.0",
|
|
15
12
|
"angulartics-google-analytics": "^0.4.0",
|
|
16
13
|
"ng-dialog": "^0.6.4"
|
|
17
14
|
},
|
|
18
15
|
"devDependencies": {
|
|
19
|
-
"
|
|
16
|
+
"@types/angular": "^1.5.20",
|
|
17
|
+
"@types/angular-resource": "^1.5.8",
|
|
18
|
+
"@types/angulartics": "^1.3.0",
|
|
19
|
+
"@types/ng-dialog": "0.0.33",
|
|
20
|
+
"typescript": "^2.1.4"
|
|
20
21
|
}
|
|
21
22
|
}
|