@ardimedia/angular-portal-azure 0.2.346 → 0.3.1

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