@ardimedia/angular-portal-azure 0.2.345 → 0.3.0

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 DELETED
@@ -1,571 +0,0 @@
1
- /// <reference types="angular" />
2
- /// <reference types="angular-resource" />
3
- /// <reference types="angulartics" />
4
- /// <reference types="angular-translate" />
5
- declare namespace angularportalazure {
6
- }
7
- declare namespace angularportalazure {
8
- class UserAccount {
9
- constructor(username: string, firstName?: string, lastName?: string);
10
- private _firstName;
11
- firstName: string;
12
- private _lastName;
13
- lastName: string;
14
- private _name;
15
- name: string;
16
- userName: string;
17
- emailAddress: string;
18
- }
19
- }
20
- declare namespace angularportalazure {
21
- class UserControlBase {
22
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
23
- $scope: angular.IScope;
24
- portalService: angularportalazure.PortalService;
25
- windowResizeHandler: () => void;
26
- statusBar: string;
27
- statusBarClass: string;
28
- /** angular1: $onInit(), $onChanges(changesObj), $doCheck(), $onDestroy(), $postLink() */
29
- $onDestroy(): void;
30
- /** angular2: ngOnChanges(), ngOnInit, ngDoCheck, ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, ngOnDestroy */
31
- ngOnDestroy(): void;
32
- /** Override */
33
- onActivate(): void;
34
- /** Override */
35
- onActivated(): void;
36
- private removeWindowResizeListener;
37
- setupWindowResizeListener(callback: () => void): void;
38
- isNumberUndefinedNullOr0(value: number): boolean;
39
- isObjectNullUndefinedOrEmpty(value: object): boolean;
40
- isStringNullOrEmpty(value: string): boolean;
41
- getRandomString(length?: number): string;
42
- clearStatusBar(): void;
43
- setStatusBar(text?: string, style?: string): void;
44
- setStatusBarCopyData(): void;
45
- setStatusBarLoadData(): void;
46
- setStatusBarSaveData(): void;
47
- setStatusBarDeleteData(): void;
48
- setStatusBarDeleteDataCanceled(): void;
49
- setStatusBarInfo(text: string): void;
50
- setStatusBarError(text: string): void;
51
- setStatusBarNoDataFound(): void;
52
- setStatusBarException(exception: angularportalazure.Exception): void;
53
- }
54
- }
55
- declare namespace angularportalazure {
56
- interface IAddBladeEventArgs {
57
- path: string;
58
- pathSender: string;
59
- }
60
- }
61
- declare namespace angularportalazure {
62
- class Blade extends angularportalazure.UserControlBase {
63
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
64
- /** HACK: 2016-11-06/hp
65
- [angular-portal-blade] needs [this] as the controller.
66
- We don't know how to provide [this] to the directive.
67
- So we came up with this [vm] property.*/
68
- vm: any;
69
- visibility: string;
70
- private watcherTitle;
71
- bladeContentHeight: number;
72
- bladeContentHeightInner: number;
73
- title: string;
74
- subTitle: string;
75
- width: {
76
- 'width': string;
77
- };
78
- widthStackLayout: {
79
- 'width': string;
80
- };
81
- isInnerHtml: boolean;
82
- formblade: any;
83
- private _path;
84
- path: string;
85
- isCommandBrowse: boolean;
86
- isCommandBrowseEnabled: boolean;
87
- commandBrowse: () => void;
88
- commandBrowseText: string;
89
- isCommandCancel: boolean;
90
- isCommandCancelEnabled: boolean;
91
- commandCancel: () => void;
92
- commandCancelText: string;
93
- isCommandCopy: boolean;
94
- isCommandCopyEnabled: boolean;
95
- commandCopy: () => void;
96
- commandCopyText: string;
97
- isCommandDelete: boolean;
98
- isCommandDeleteEnabled: boolean;
99
- commandDelete: () => void;
100
- commandDeleteText: string;
101
- isCommandDocument: boolean;
102
- isCommandDocumentEnabled: boolean;
103
- commandDocument: () => void;
104
- commandDocumentText: string;
105
- isCommandDocument2: boolean;
106
- isCommandDocument2Enabled: boolean;
107
- commandDocument2: () => void;
108
- commandDocument2Text: string;
109
- isCommandDocument3: boolean;
110
- isCommandDocument3Enabled: boolean;
111
- commandDocument3: () => void;
112
- commandDocument3Text: string;
113
- isCommandDocument4: boolean;
114
- isCommandDocument4Enabled: boolean;
115
- commandDocument4: () => void;
116
- commandDocument4Text: string;
117
- isCommandDocument5: boolean;
118
- isCommandDocument5Enabled: boolean;
119
- commandDocument5: () => void;
120
- commandDocument5Text: string;
121
- isCommandNew: boolean;
122
- isCommandNewEnabled: boolean;
123
- commandNew: () => void;
124
- commandNewText: string;
125
- isCommandOrder: boolean;
126
- isCommandOrderEnabled: boolean;
127
- commandOrder: () => void;
128
- commandOrderText: string;
129
- isCommandRestart: boolean;
130
- isCommandRestartEnabled: boolean;
131
- commandRestart: () => void;
132
- commandRestartText: string;
133
- isCommandSave: boolean;
134
- isCommandSaveEnabled: boolean;
135
- commandSave: () => void;
136
- commandSaveText: string;
137
- isCommandSearch: boolean;
138
- isCommandSearchEnabled: boolean;
139
- commandSearch: () => void;
140
- commandSearchText: string;
141
- isCommandStart: boolean;
142
- isCommandStartEnabled: boolean;
143
- commandStart: () => void;
144
- commandStartText: string;
145
- isCommandStop: boolean;
146
- isCommandStopEnabled: boolean;
147
- commandStop: () => void;
148
- commandStopText: string;
149
- isCommandSwap: boolean;
150
- isCommandSwapEnabled: boolean;
151
- commandSwap: () => void;
152
- commandSwapText: string;
153
- isCommandExcel: boolean;
154
- isCommandExcelEnabled: boolean;
155
- commandExcel: () => void;
156
- commandExcelText: string;
157
- activate(): void;
158
- navigateTo(path: any): void;
159
- /** Must be overridden. */
160
- onNavigateTo(value: any): void;
161
- comparePaths(path1: string, path2: string): boolean;
162
- /** close blade. */
163
- close(): void;
164
- /** Override */
165
- onClose(): boolean;
166
- onCommandBrowse(): void;
167
- onCommandCancel(): void;
168
- onCommandCopy(): void;
169
- onCommandDelete(): void;
170
- onCommandDocument(): void;
171
- onCommandDocument2(): void;
172
- onCommandDocument3(): void;
173
- onCommandDocument4(): void;
174
- onCommandDocument5(): void;
175
- onCommandNew(): void;
176
- onCommandOrder(): void;
177
- onCommandRestart(): void;
178
- onCommandSave(): void;
179
- onCommandSearch(): void;
180
- onCommandStart(): void;
181
- onCommandStop(): void;
182
- onCommandSwap(): void;
183
- onCommandExcel(): void;
184
- /** Change title, as soon as watchExpression changes. watchExpression is either a variable ore an expression, e.g. [name1 + name2] */
185
- setTitle(watchExpression: string, func: () => void): void;
186
- private setBladeHeights;
187
- }
188
- }
189
- declare namespace angularportalazure {
190
- class AreaBlades extends angularportalazure.UserControlBase {
191
- static $inject: string[];
192
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
193
- private portalScroll;
194
- private addBladeListener;
195
- private areaNotificationShowListener;
196
- private areaNotificationHideListener;
197
- blades: Array<angularportalazure.Blade>;
198
- raiseBladeOnActivateEvent(args: angularportalazure.IAddBladeEventArgs): void;
199
- raiseAddBladeEvent(args: angularportalazure.IAddBladeEventArgs): void;
200
- setFirstBlade(path: string): angularportalazure.Blade | void;
201
- addBlade(path: string, senderPath?: string): angularportalazure.Blade | void;
202
- clearAll(): void;
203
- clearPath(path: string): void;
204
- clearLevel(level: number): void;
205
- clearLastLevel(): void;
206
- clearChild(path: string): void;
207
- showPanoramaIfNoBlades(): void;
208
- hidePanorama(): void;
209
- /** We need to call this when AreaBlades is no longer used, otherwise the listener does not get removed. */
210
- close(): void;
211
- private setPortalScrollCss;
212
- private setupShowHideNotificationAreaListener;
213
- private setupAddBladeListener;
214
- }
215
- }
216
- declare namespace angularportalazure {
217
- class BladeData<T> extends angularportalazure.Blade {
218
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
219
- item: T;
220
- items: T[];
221
- newItem(func: () => Promise<any | angularportalazure.Exception>): void;
222
- /** Extension point */
223
- onNewItem(): void;
224
- /** Extension point */
225
- onNewedItem(): void;
226
- /** Extension point */
227
- onNewItemException(ex: angularportalazure.Exception): void;
228
- loadItem(func: () => Promise<any | angularportalazure.Exception>): void;
229
- /** Extension point */
230
- onLoadItem(): void;
231
- /** Extension point */
232
- onLoadedItem(): void;
233
- /** Extension point */
234
- onLoadItemException(ex: angularportalazure.Exception): void;
235
- loadItems(func: () => Promise<any | angularportalazure.Exception>): void;
236
- /** Extension point */
237
- onLoadItems(): void;
238
- /** Extension point */
239
- onLoadedItems(): void;
240
- /** Extension point */
241
- onLoadItemsException(ex: angularportalazure.Exception): void;
242
- /**
243
- * Default behavior for saving an entity.
244
- * - validates this.ngForm. if not valid, returns without saving
245
- * - call this.setStatusBarSaveData();
246
- * - set this.isCommandSaveEnabled = false
247
- * - call this.onSaveItem()
248
- * - call the provided function
249
- * THEN
250
- * - call this.clearStatusBar()
251
- * - set this.isCommandSaveEnabled = true
252
- * - set this.item to the saved data
253
- * - call this.onSavedItem()
254
- * - returns the saved data
255
- * CATCH
256
- * - set this.isCommandSaveEnabled = true
257
- * - call this.setStatusBarException
258
- * - call this.onLoadItemsException
259
- */
260
- saveItem(func: () => Promise<T | angularportalazure.Exception> | angular.IPromise<T | angularportalazure.Exception>, ngForm?: any): (Promise<T | void> | angular.IPromise<T | void>);
261
- /** Extension point */
262
- onSaveItem(): void;
263
- /** Extension point */
264
- onSavedItem(): void;
265
- /** Extension point */
266
- onSaveItemException(ex: angularportalazure.Exception): void;
267
- /**
268
- * Default behavior for saving any object.
269
- * - validates this.ngForm. if not valid, returns without saving
270
- * - call this.setStatusBarSaveData();
271
- * - set this.isCommandSaveEnabled = false
272
- * - call this.onSaveObject()
273
- * - call the provided function
274
- * THEN
275
- * - call this.clearStatusBar()
276
- * - set this.isCommandSaveEnabled = true
277
- * - call this.onSavedObject()
278
- * - returns the saved data
279
- * CATCH
280
- * - set this.isCommandSaveEnabled = true
281
- * - call this.setStatusBarException
282
- * - call this.onLoadItemsException
283
- */
284
- saveObject(func: () => Promise<any | angularportalazure.Exception> | angular.IPromise<any | angularportalazure.Exception>, ngForm?: any): (Promise<any | void> | angular.IPromise<any | void>);
285
- /** Extension point */
286
- onSaveObject(): void;
287
- /** Extension point */
288
- onSavedObject(): void;
289
- /** Extension point */
290
- onSaveObjectException(ex: angularportalazure.Exception): void;
291
- deleteItem(func: () => Promise<T | number | void | angularportalazure.Exception> | angular.IPromise<T | number | void | angularportalazure.Exception>, ngForm?: any): (Promise<T | number | void> | angular.IPromise<T | number | void>);
292
- /** Extension point */
293
- onDeleteItem(): void;
294
- /** Extension point
295
- * return value indicates if the current blade should be closed or not.
296
- */
297
- onDeletedItem(): boolean;
298
- /** Extension point */
299
- onDeletedObjectException(ex: angularportalazure.Exception): void;
300
- /**
301
- * Default behavior for executing
302
- * - validates ngForm. if not valid, returns without executing
303
- * - call this.setStatusBarInfo();
304
- * - set this.isCommandStartEnabled = false
305
- * - call this.onExecute()
306
- * - call the provided function
307
- * THEN
308
- * - call this.clearStatusBar()
309
- * - set this.isCommandStartEnabled = true
310
- * - call this.onExecuted()
311
- * - returns the data
312
- * CATCH
313
- * - set this.isCommandStartEnabled = true
314
- * - call this.setStatusBarException
315
- * - call this.onExecuteException
316
- */
317
- execute(message: string, func: () => Promise<T | angularportalazure.Exception> | angular.IPromise<T | angularportalazure.Exception>, ngForm?: any): (Promise<T | void> | angular.IPromise<T | void>);
318
- /** Extension point */
319
- onExecute(): void;
320
- /** Extension point */
321
- onExecuted(): void;
322
- /** Extension point */
323
- onExecuteException(ex: angularportalazure.Exception): void;
324
- isFormValid(ngForm?: any): boolean;
325
- /** Extension point */
326
- onSaveItemFormValidation(): boolean;
327
- /** Extension point */
328
- onSaveObjectFormValidation(): boolean;
329
- /** Extension point */
330
- onDeleteItemFormValidation(): boolean;
331
- }
332
- }
333
- declare namespace angularportalazure {
334
- class BladeNav extends angularportalazure.BladeData<BladeNavItem> {
335
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
336
- isNav: boolean;
337
- onNavigateTo(path: string): void;
338
- }
339
- }
340
- declare namespace angularportalazure {
341
- class BladeNavItem {
342
- title: string;
343
- cssClass: string;
344
- bladePath: string;
345
- hrefPath: string;
346
- roles: string;
347
- isVisible: boolean;
348
- callback: () => any;
349
- bladeNav: angularportalazure.BladeNav | null;
350
- constructor(title?: string, cssClass?: string, bladePath?: string, hrefPath?: string, roles?: string, isVisible?: boolean, callback?: () => any, bladeNav?: angularportalazure.BladeNav | null);
351
- onNavItemClick(): void;
352
- }
353
- }
354
- declare namespace angularportalazure {
355
- class AreaNotification extends angularportalazure.UserControlBase {
356
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
357
- path: string;
358
- widthAreaUsed: number;
359
- private areaNotification;
360
- private _width;
361
- width: number;
362
- private _backgroundColor;
363
- backgroundColor: string;
364
- hide(): void;
365
- show(width?: number): void;
366
- onHide(): boolean;
367
- onShow(): void;
368
- onShowed(): void;
369
- private calcualteCssStyles;
370
- }
371
- }
372
- declare namespace angularportalazure {
373
- interface BladeParameter {
374
- action: string;
375
- item?: any;
376
- itemId: number;
377
- }
378
- }
379
- declare namespace angularportalazure {
380
- class AvatarMenu extends angularportalazure.UserControlBase {
381
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
382
- userAccount: angularportalazure.UserAccount | null;
383
- }
384
- }
385
- declare namespace angularportalazure {
386
- /** The names are used in CSS for layouting, e.g. style='mini' */
387
- enum TileSizes {
388
- small = 0,
389
- mini = 1,
390
- normal = 2,
391
- herowide = 3
392
- }
393
- }
394
- declare namespace angularportalazure {
395
- class TileSize {
396
- tileSizes: angularportalazure.TileSizes;
397
- width: number;
398
- height: number;
399
- constructor(tileSizes: angularportalazure.TileSizes, width: number, height: number);
400
- static getTileSizes(): Array<TileSize>;
401
- }
402
- }
403
- declare namespace angularportalazure {
404
- class Tile {
405
- constructor(title: string, bladePath: string, portalService: angularportalazure.PortalService);
406
- portalService: angularportalazure.PortalService;
407
- title: string;
408
- subTitle: string;
409
- bladePath: string;
410
- private _bladePath;
411
- tileSize: angularportalazure.TileSizes;
412
- size: string;
413
- left: string;
414
- top: string;
415
- leftN: string;
416
- topN: string;
417
- clicked(): void;
418
- }
419
- }
420
- declare namespace angularportalazure {
421
- class Tiles {
422
- showTiles: boolean;
423
- tiles: Array<any>;
424
- isTilesLoaded: boolean;
425
- hideTileIfOnlyOne: boolean;
426
- private tileSizes;
427
- private nextLeft;
428
- private nextTop;
429
- private columnHeightMax;
430
- addTile(tile: Tile): Tile;
431
- }
432
- }
433
- declare namespace angularportalazure {
434
- class Startboard extends angularportalazure.UserControlBase {
435
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
436
- tiles: angularportalazure.Tiles;
437
- }
438
- }
439
- declare namespace angularportalazure {
440
- class Panorama extends angularportalazure.UserControlBase {
441
- title: string;
442
- isVisible: boolean;
443
- avatarMenu: angularportalazure.AvatarMenu;
444
- startboard: angularportalazure.Startboard;
445
- constructor($scope: angular.IScope, title: string, portalService: angularportalazure.PortalService);
446
- }
447
- }
448
- declare namespace angularportalazure {
449
- class PortalShell {
450
- portalService: angularportalazure.PortalService;
451
- constructor(portalService: angularportalazure.PortalService, title?: string);
452
- }
453
- }
454
- declare namespace angularportalazure {
455
- class PortalService {
456
- static $inject: string[];
457
- constructor($injector: angular.auto.IInjectorService);
458
- parameter: angularportalazure.BladeParameter;
459
- $analytics: angulartics.IAnalyticsService;
460
- portalShell: angularportalazure.PortalShell;
461
- panorama: angularportalazure.Panorama;
462
- areaBlades: angularportalazure.AreaBlades;
463
- areaNotification: angularportalazure.AreaNotification;
464
- ngDialog: any;
465
- $injector: angular.auto.IInjectorService;
466
- $http: angular.IHttpService;
467
- $httpBackend: angular.IHttpBackendService;
468
- $q: angular.IQService;
469
- $rootScope: angular.IRootScopeService;
470
- $window: angular.IWindowService;
471
- $timeout: angular.ITimeoutService;
472
- $translate: angular.translate.ITranslateService;
473
- }
474
- }
475
- declare namespace angularportalazure {
476
- }
477
- declare namespace angularportalazure {
478
- }
479
- declare namespace angularportalazure {
480
- }
481
- declare namespace angularportalazure {
482
- }
483
- declare namespace angularportalazure {
484
- class BladeDetail<T> extends angularportalazure.BladeData<T> {
485
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
486
- item: T;
487
- onCommandCancel(): void;
488
- }
489
- }
490
- declare namespace angularportalazure {
491
- class BladeGrid extends angularportalazure.BladeData<any> {
492
- constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
493
- onFilter(actual: Object, expected: string): boolean;
494
- }
495
- }
496
- declare namespace angularportalazure {
497
- class Debug {
498
- constructor();
499
- static isEnabled: boolean;
500
- static isWithObjects: boolean;
501
- static keys: Array<string>;
502
- static enable(key?: string): void;
503
- static disable(key?: string): void;
504
- static write(debugLine: string, objects?: Array<any>): boolean;
505
- /** Extract the key (e.g. [azureportal] from a string */
506
- static extractKey(text: string): string;
507
- /** Extract the key (e.g. [azureportal] from a string */
508
- static isInKeys(debugLine: string): boolean;
509
- }
510
- }
511
- declare namespace angularportalazure {
512
- class ValidationResultDotNet {
513
- ErrorMessage: string;
514
- MemberNames: string[];
515
- }
516
- class ExceptionDotNet {
517
- ClassName: string | void;
518
- Data: {
519
- key: number;
520
- value: string;
521
- }[] | null;
522
- ExceptionMethod: string | void;
523
- HelpURL: string | null | void;
524
- HelpLink: string | null | void;
525
- HResult: number;
526
- InnerException: ExceptionDotNet | null;
527
- Message: string | null;
528
- RemoteStackIndex: number | void;
529
- RemoteStackTraceString: string | null | void;
530
- Source: string;
531
- StackTrace: string;
532
- WatsonBuckets: string | null | void;
533
- /**
534
- * @deprecated ExceptionMessage is obsolete
535
- */
536
- ExceptionMessage: string | void;
537
- /**
538
- * @deprecated ExceptionType is obsolete
539
- */
540
- ExceptionType: string | void;
541
- }
542
- class ArgumentNullException extends ExceptionDotNet {
543
- ParamName: string;
544
- }
545
- class EntityValidationException extends ExceptionDotNet {
546
- Data: {
547
- key: number;
548
- value: string;
549
- }[];
550
- ValidationResults: ValidationResultDotNet[];
551
- }
552
- /**
553
- * @deprecated ValidationsExceptionDotNet should be replaced by EntityValidationException
554
- */
555
- class ValidationsExceptionDotNet extends EntityValidationException {
556
- }
557
- }
558
- declare namespace angularportalazure {
559
- class Exception extends angularportalazure.ValidationsExceptionDotNet {
560
- Type: string;
561
- MessageDetail: string;
562
- Messages: string[];
563
- Status: number | undefined;
564
- StatusText: string | undefined;
565
- Url: string;
566
- static getOneLineMessage(exception: angularportalazure.Exception): string;
567
- static prepareException(response: angular.IHttpPromiseCallbackArg<angularportalazure.Exception> | any): angularportalazure.Exception;
568
- private static createException;
569
- private static processResponseData;
570
- }
571
- }