@ardimedia/angular-portal-azure 0.2.261 → 0.2.263

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.
Files changed (3) hide show
  1. package/apn.js +10 -5
  2. package/package.json +26 -23
  3. package/apn.d.ts +0 -443
package/apn.js CHANGED
@@ -139,11 +139,16 @@ var angularportalazure;
139
139
  })(angularportalazure || (angularportalazure = {}));
140
140
  "use strict";
141
141
  "use strict";
142
- var __extends = (this && this.__extends) || function (d, b) {
143
- for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
144
- function __() { this.constructor = d; }
145
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
146
- };
142
+ var __extends = (this && this.__extends) || (function () {
143
+ var extendStatics = Object.setPrototypeOf ||
144
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
145
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
146
+ return function (d, b) {
147
+ extendStatics(d, b);
148
+ function __() { this.constructor = d; }
149
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
150
+ };
151
+ })();
147
152
  /// <reference path="useraccount.ts" />
148
153
  /// <reference path="portalservice.ts" />
149
154
  /// <reference path="usercontrolbase.ts" />
package/package.json CHANGED
@@ -2,38 +2,41 @@
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.261",
5
+ "version": "0.2.263",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {
9
- "@angular/common": "^2.4.4",
10
- "@angular/compiler": "^2.4.5",
11
- "@angular/compiler-cli": "^2.4.5",
12
- "@angular/core": "^2.4.5",
13
- "@angular/forms": "^2.4.5",
14
- "@angular/http": "^2.4.5",
15
- "@angular/platform-browser": "^2.4.5",
16
- "@angular/platform-browser-dynamic": "^2.4.5",
17
- "@angular/platform-server": "^2.4.5",
18
- "@angular/router": "^3.4.5",
19
- "@angular/upgrade": "^2.4.5",
20
- "angular": "^1.6.1",
21
- "angular-resource": "^1.6.1",
22
- "angular-translate": "^2.13.1",
23
- "angular-translate-storage-cookie": "^2.13.1",
24
- "angulartics": "^1.3.0",
9
+ "@angular/animations": "^4.0.0",
10
+ "@angular/common": "^4.0.0",
11
+ "@angular/compiler": "^4.0.0",
12
+ "@angular/core": "^4.0.0",
13
+ "@angular/forms": "^4.0.0",
14
+ "@angular/http": "^4.0.0",
15
+ "@angular/platform-browser": "^4.0.0",
16
+ "@angular/platform-browser-dynamic": "^4.0.0",
17
+ "@angular/platform-server": "^4.0.0",
18
+ "@angular/router": "^4.0.0",
19
+ "@angular/upgrade": "^4.0.0",
20
+ "angular": "^1.6.3",
21
+ "angular-resource": "^1.6.3",
22
+ "angular-translate": "^2.15.1",
23
+ "angular-translate-storage-cookie": "^2.15.1",
24
+ "angulartics": "^1.4.0",
25
25
  "angulartics-google-analytics": "^0.4.0",
26
26
  "bootstrap": "^4.0.0-alpha.6",
27
- "ng-dialog": "^0.6.6"
27
+ "ng-dialog": "^1.0.1",
28
+ "rxjs": "^5.0.1",
29
+ "zone.js": "^0.8.4"
28
30
  },
29
31
  "devDependencies": {
30
- "@types/angular": "^1.6.2",
32
+ "@angular/compiler-cli": "^4.0.0",
33
+ "@types/angular": "^1.6.10",
31
34
  "@types/angular-resource": "^1.5.8",
32
- "@types/angular-translate": "^2.4.34",
35
+ "@types/angular-translate": "^2.4.35",
33
36
  "@types/angulartics": "^1.3.1",
34
37
  "@types/ng-dialog": "^0.6.0",
35
- "@types/node": "^7.0.4",
36
- "tslint": "^4.4.1",
37
- "typescript": "^2.1.5"
38
+ "@types/node": "^7.0.11",
39
+ "tslint": "^4.5.1",
40
+ "typescript": "^2.2.1"
38
41
  }
39
42
  }
package/apn.d.ts DELETED
@@ -1,443 +0,0 @@
1
- /// <reference types="angular" />
2
- /// <reference types="jquery" />
3
- /// <reference types="angular-resource" />
4
- /// <reference types="angulartics" />
5
- /// <reference types="angular-translate" />
6
- declare namespace angularportalazure {
7
- }
8
- declare namespace angularportalazure {
9
- class UserAccount {
10
- constructor(username: string, firstName?: string, lastName?: string);
11
- private _firstName;
12
- firstName: string;
13
- private _lastName;
14
- lastName: string;
15
- private _name;
16
- name: string;
17
- userName: string;
18
- emailAddress: string;
19
- }
20
- }
21
- declare namespace angularportalazure {
22
- class UserControlBase {
23
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
24
- $scope: angular.IScope;
25
- portalService: angularportalazure.PortalService;
26
- windowResizeHandler: () => void;
27
- /** angular1: $onInit(), $onChanges(changesObj), $doCheck(), $onDestroy(), $postLink() */
28
- $onDestroy(): void;
29
- /** angular2: ngOnChanges(), ngOnInit, ngDoCheck, ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, ngOnDestroy */
30
- ngOnDestroy(): void;
31
- private removeWindowResizeListener();
32
- setupWindowResizeListener(callback: () => void): void;
33
- isStringNullOrEmpty(value: string): boolean;
34
- getRandomString(length?: number): string;
35
- }
36
- }
37
- declare namespace angularportalazure {
38
- interface IAddBladeEventArgs {
39
- path: string;
40
- pathSender: string;
41
- }
42
- }
43
- declare var $: JQueryStatic;
44
- declare namespace angularportalazure {
45
- class Blade extends angularportalazure.UserControlBase {
46
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
47
- /** HACK: 2016-11-06/hp
48
- [angular-portal-blade] needs [this] as the controller.
49
- We don't know how to provide [this] to the directive.
50
- So we came up with this [vm] property.*/
51
- vm: any;
52
- visibility: string;
53
- private watcherTitle;
54
- bladeContentHeight: number;
55
- bladeContentHeightInner: number;
56
- title: string;
57
- subTitle: string;
58
- width: {
59
- 'width': string;
60
- };
61
- widthStackLayout: {
62
- 'width': string;
63
- };
64
- isInnerHtml: boolean;
65
- statusBar: string;
66
- statusBarClass: string;
67
- formblade: any;
68
- private _path;
69
- path: string;
70
- isCommandBrowse: boolean;
71
- commandBrowse: () => void;
72
- commandBrowseText: string;
73
- isCommandCancel: boolean;
74
- commandCancel: () => void;
75
- commandCancelText: string;
76
- isCommandCopy: boolean;
77
- commandCopy: () => void;
78
- commandCopyText: string;
79
- isCommandDelete: boolean;
80
- commandDelete: () => void;
81
- commandDeleteText: string;
82
- isCommandDocument: boolean;
83
- commandDocument: () => void;
84
- commandDocumentText: string;
85
- isCommandDocument2: boolean;
86
- commandDocument2: () => void;
87
- commandDocument2Text: string;
88
- isCommandDocument3: boolean;
89
- commandDocument3: () => void;
90
- commandDocument3Text: string;
91
- isCommandDocument4: boolean;
92
- commandDocument4: () => void;
93
- commandDocument4Text: string;
94
- isCommandDocument5: boolean;
95
- commandDocument5: () => void;
96
- commandDocument5Text: string;
97
- isCommandNew: boolean;
98
- commandNew: () => void;
99
- commandNewText: string;
100
- isCommandOrder: boolean;
101
- commandOrder: () => void;
102
- commandOrderText: string;
103
- isCommandRestart: boolean;
104
- commandRestart: () => void;
105
- commandRestartText: string;
106
- isCommandSave: boolean;
107
- commandSave: () => void;
108
- commandSaveText: string;
109
- isCommandSearch: boolean;
110
- commandSearch: () => void;
111
- commandSearchText: string;
112
- isCommandStart: boolean;
113
- commandStart: () => void;
114
- commandStartText: string;
115
- isCommandStop: boolean;
116
- commandStop: () => void;
117
- commandStopText: string;
118
- isCommandSwap: boolean;
119
- commandSwap: () => void;
120
- commandSwapText: string;
121
- isCommandExcel: boolean;
122
- commandExcel: () => void;
123
- commandExcelText: string;
124
- activate(): void;
125
- /** Override */
126
- onActivate(): void;
127
- onActivated(): void;
128
- navigateTo(path: any): void;
129
- /** Must be overridden. */
130
- onNavigateTo(value: any): void;
131
- comparePaths(path1: string, path2: string): boolean;
132
- /** close blade. */
133
- close(): void;
134
- clearStatusBar(): void;
135
- setStatusBarLoadData(): void;
136
- setStatusBarSaveData(): void;
137
- setStatusBarDeleteData(): void;
138
- setStatusBarDeleteDataCanceled(): void;
139
- setStatusBarInfo(text: string): void;
140
- setStatusBarError(text: string): void;
141
- setStatusBarNoDataFound(): void;
142
- setStatusBarException(exception: angularportalazure.Exception): void;
143
- onCommandBrowse(): void;
144
- onCommandCancel(): void;
145
- onCommandCopy(): void;
146
- onCommandDelete(): void;
147
- onCommandDocument(): void;
148
- onCommandDocument2(): void;
149
- onCommandDocument3(): void;
150
- onCommandDocument4(): void;
151
- onCommandDocument5(): void;
152
- onCommandNew(): void;
153
- onCommandOrder(): void;
154
- onCommandRestart(): void;
155
- onCommandSave(): void;
156
- onCommandSearch(): void;
157
- onCommandStart(): void;
158
- onCommandStop(): void;
159
- onCommandSwap(): void;
160
- onCommandExcel(): void;
161
- setTitle(watchExpression: string, func: () => void): void;
162
- private setBladeHeights();
163
- }
164
- }
165
- declare namespace angularportalazure {
166
- class AreaBlades extends angularportalazure.UserControlBase {
167
- static $inject: string[];
168
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
169
- private portalScroll;
170
- private addBladeListener;
171
- private areaNotificationShowListener;
172
- private areaNotificationHideListener;
173
- blades: Array<angularportalazure.Blade>;
174
- raiseAddBladeEvent(args: angularportalazure.IAddBladeEventArgs): void;
175
- setFirstBlade(path: string): angularportalazure.Blade | void;
176
- addBlade(path: string, senderPath?: string): angularportalazure.Blade | void;
177
- clearAll(): void;
178
- clearPath(path: string): void;
179
- clearLevel(level: number): void;
180
- clearLastLevel(): void;
181
- clearChild(path: string): void;
182
- showPanoramaIfNoBlades(): void;
183
- hidePanorama(): void;
184
- /** We need to call this when AreaBlades is no longer used, otherwise the listener does not get removed. */
185
- close(): void;
186
- private setPortalScrollCss();
187
- private setupShowHideNotificationAreaListener();
188
- private setupAddBladeListener();
189
- }
190
- }
191
- declare namespace angularportalazure {
192
- class BladeData extends angularportalazure.Blade {
193
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
194
- onLoadItem(): void;
195
- onLoadItems(): void;
196
- onLoadedItem(): void;
197
- onLoadedItems(): void;
198
- }
199
- }
200
- declare namespace angularportalazure {
201
- class BladeNav extends angularportalazure.BladeData {
202
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
203
- items: Array<angularportalazure.BladeNavItem>;
204
- isNav: boolean;
205
- onNavigateTo(path: string): void;
206
- }
207
- }
208
- declare namespace angularportalazure {
209
- class BladeNavItem {
210
- title: string;
211
- cssClass: string;
212
- bladePath: string;
213
- hrefPath: string;
214
- roles: string;
215
- isVisible: boolean;
216
- callback: () => any;
217
- bladeNav: angularportalazure.BladeNav | null;
218
- constructor(title?: string, cssClass?: string, bladePath?: string, hrefPath?: string, roles?: string, isVisible?: boolean, callback?: () => any, bladeNav?: angularportalazure.BladeNav | null);
219
- onNavItemClick(): void;
220
- }
221
- }
222
- declare namespace angularportalazure {
223
- class AreaNotification extends angularportalazure.UserControlBase {
224
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
225
- path: string;
226
- widthAreaUsed: number;
227
- private areaNotification;
228
- private _width;
229
- width: number;
230
- private _backgroundColor;
231
- backgroundColor: string;
232
- hide(): void;
233
- show(width?: number): void;
234
- private calcualteCssStyles();
235
- }
236
- }
237
- declare namespace angularportalazure {
238
- interface BladeParameter {
239
- action: string;
240
- item?: any;
241
- itemId: number;
242
- }
243
- }
244
- declare namespace angularportalazure {
245
- class AvatarMenu extends angularportalazure.UserControlBase {
246
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
247
- userAccount: angularportalazure.UserAccount | null;
248
- }
249
- }
250
- declare namespace angularportalazure {
251
- /** The names are used in CSS for layouting, e.g. style='mini' */
252
- enum TileSizes {
253
- small = 0,
254
- mini = 1,
255
- normal = 2,
256
- herowide = 3,
257
- }
258
- }
259
- declare namespace angularportalazure {
260
- class TileSize {
261
- tileSizes: angularportalazure.TileSizes;
262
- width: number;
263
- height: number;
264
- constructor(tileSizes: angularportalazure.TileSizes, width: number, height: number);
265
- static getTileSizes(): Array<TileSize>;
266
- }
267
- }
268
- declare namespace angularportalazure {
269
- class Tile {
270
- constructor(title: string, bladePath: string, portalService: angularportalazure.PortalService);
271
- portalService: angularportalazure.PortalService;
272
- title: string;
273
- subTitle: string;
274
- bladePath: string;
275
- private _bladePath;
276
- tileSize: angularportalazure.TileSizes;
277
- size: string;
278
- left: string;
279
- top: string;
280
- leftN: string;
281
- topN: string;
282
- clicked(): void;
283
- }
284
- }
285
- declare namespace angularportalazure {
286
- class Tiles {
287
- showTiles: boolean;
288
- tiles: Array<any>;
289
- isTilesLoaded: boolean;
290
- hideTileIfOnlyOne: boolean;
291
- private tileSizes;
292
- private nextLeft;
293
- private nextTop;
294
- private columnHeightMax;
295
- addTile(tile: Tile): Tile;
296
- }
297
- }
298
- declare namespace angularportalazure {
299
- class Startboard extends angularportalazure.UserControlBase {
300
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
301
- tiles: angularportalazure.Tiles;
302
- }
303
- }
304
- declare namespace angularportalazure {
305
- class Panorama extends angularportalazure.UserControlBase {
306
- title: string;
307
- isVisible: boolean;
308
- avatarMenu: angularportalazure.AvatarMenu;
309
- startboard: angularportalazure.Startboard;
310
- constructor($scope: angular.IScope, title: string, portalService: angularportalazure.PortalService);
311
- }
312
- }
313
- declare namespace angularportalazure {
314
- class PortalShell {
315
- portalService: angularportalazure.PortalService;
316
- constructor(portalService: angularportalazure.PortalService, title?: string);
317
- }
318
- }
319
- declare namespace angularportalazure {
320
- class PortalService {
321
- static $inject: string[];
322
- constructor($injector: angular.auto.IInjectorService);
323
- parameter: angularportalazure.BladeParameter;
324
- $analytics: angulartics.IAnalyticsService;
325
- animate: any;
326
- animation: any;
327
- component: any;
328
- config: any;
329
- constant: any;
330
- controller: any;
331
- directive: any;
332
- factory: any;
333
- filter: any;
334
- provider: any;
335
- run: any;
336
- service: any;
337
- value: any;
338
- decorator: any;
339
- name: any;
340
- requires: any;
341
- portalShell: angularportalazure.PortalShell;
342
- panorama: angularportalazure.Panorama;
343
- areaBlades: angularportalazure.AreaBlades;
344
- areaNotification: angularportalazure.AreaNotification;
345
- ngDialog: any;
346
- $injector: angular.auto.IInjectorService;
347
- $http: angular.IHttpService;
348
- $httpBackend: angular.IHttpBackendService;
349
- $q: angular.IQService;
350
- $rootScope: angular.IRootScopeService;
351
- $window: angular.IWindowService;
352
- $timeout: angular.ITimeoutService;
353
- $translate: angular.translate.ITranslateService;
354
- }
355
- }
356
- declare namespace angularportalazure {
357
- }
358
- declare namespace angularportalazure {
359
- }
360
- declare namespace angularportalazure {
361
- }
362
- declare namespace angularportalazure {
363
- }
364
- declare namespace angularportalazure {
365
- class BladeDetail<T> extends angularportalazure.BladeData {
366
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
367
- item: T;
368
- loadItem(func: () => any | angular.IPromise<any> | Promise<any>): void;
369
- saveItem(func: () => any): void;
370
- onSaveItem(): void;
371
- onSavedItem(): void;
372
- onCommandCancel(): void;
373
- }
374
- }
375
- declare namespace angularportalazure {
376
- class BladeGrid extends angularportalazure.BladeData {
377
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
378
- items: any[];
379
- loadItems(func: () => any | angular.IPromise<any> | Promise<any>): void;
380
- onFilter(actual: Object, expected: string): boolean;
381
- }
382
- }
383
- declare namespace angularportalazure {
384
- class Debug {
385
- constructor();
386
- static isEnabled: boolean;
387
- static isWithObjects: boolean;
388
- static keys: Array<string>;
389
- static enable(key?: string): void;
390
- static disable(key?: string): void;
391
- static write(debugLine: string, objects?: Array<any>): boolean;
392
- /** Extract the key (e.g. [azureportal] from a string */
393
- static extractKey(text: string): string;
394
- /** Extract the key (e.g. [azureportal] from a string */
395
- static isInKeys(debugLine: string): boolean;
396
- }
397
- }
398
- declare namespace angularportalazure {
399
- class ExceptionDotNet {
400
- ExceptionMessage: string;
401
- ExceptionType: string;
402
- InnerException: ExceptionDotNet;
403
- Message: string;
404
- StackTrace: string;
405
- }
406
- class ValidationResultDotNet {
407
- ErrorMessage: string;
408
- MemberNames: string[];
409
- }
410
- class ValidationsExceptionDotNet extends ExceptionDotNet {
411
- ClassName: string;
412
- Data: {
413
- key: number;
414
- value: string;
415
- }[];
416
- ValidationResults: ValidationResultDotNet[];
417
- convertResponse(response: any): void;
418
- private static convertResponse(exception, responseData);
419
- private static convertExceptionType(exception, responseData);
420
- }
421
- }
422
- declare namespace angularportalazure {
423
- class Exception extends angularportalazure.ValidationsExceptionDotNet {
424
- Type: string;
425
- MessageDetail: string;
426
- Messages: string[];
427
- Status: number | undefined;
428
- StatusText: string | undefined;
429
- Url: string;
430
- static getOneLineMessage(exception: angularportalazure.Exception): string;
431
- static prepareException(response: angular.IHttpPromiseCallbackArg<angularportalazure.Exception> | any): angularportalazure.Exception;
432
- private static processDotNetException1(response);
433
- private static processDotNetException2(response);
434
- }
435
- }
436
- declare namespace angularportalazure {
437
- class DataService {
438
- $http: angular.IHttpService;
439
- $q: angular.IQService;
440
- constructor($http: angular.IHttpService, $q: angular.IQService);
441
- getData(url: string): any;
442
- }
443
- }