@ardimedia/angular-portal-azure 0.2.3 → 0.2.5
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 +379 -0
- package/apn.js +1342 -0
- package/directives/blade/blade.ts +1 -1
- package/directives/home/home.html +1 -1
- package/directives/home/home.ts +1 -1
- package/directives/nav/nav.ts +1 -1
- package/directives/navgrid/navgrid.ts +1 -1
- package/package.json +1 -1
package/apn.d.ts
ADDED
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
/// <reference types="angular-resource" />
|
|
2
|
+
/// <reference types="angular" />
|
|
3
|
+
declare namespace angularportalazure {
|
|
4
|
+
}
|
|
5
|
+
declare namespace angularportalazure {
|
|
6
|
+
class Debug {
|
|
7
|
+
constructor();
|
|
8
|
+
static isEnabled: boolean;
|
|
9
|
+
static isWithObjects: boolean;
|
|
10
|
+
static keys: Array<string>;
|
|
11
|
+
static enable(key?: string): void;
|
|
12
|
+
static disable(key?: string): void;
|
|
13
|
+
static write(debugLine: string, objects?: Array<any>): boolean;
|
|
14
|
+
/** Extract the key (e.g. [azureportal] from a string */
|
|
15
|
+
static extractKey(text: string): string;
|
|
16
|
+
/** Extract the key (e.g. [azureportal] from a string */
|
|
17
|
+
static isInKeys(debugLine: string): boolean;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
declare namespace angularportalazure {
|
|
21
|
+
class UserAccount {
|
|
22
|
+
constructor(username: string, firstName?: string, lastName?: string);
|
|
23
|
+
private _firstName;
|
|
24
|
+
firstName: string;
|
|
25
|
+
private _lastName;
|
|
26
|
+
lastName: string;
|
|
27
|
+
private _name;
|
|
28
|
+
name: string;
|
|
29
|
+
userName: string;
|
|
30
|
+
emailAddress: string;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
declare namespace angularportalazure {
|
|
34
|
+
class UserControlBase {
|
|
35
|
+
constructor(portalService: angularportalazure.PortalService);
|
|
36
|
+
portalService: angularportalazure.PortalService;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
declare namespace angularportalazure {
|
|
40
|
+
interface IAddBladeEventArgs {
|
|
41
|
+
path: string;
|
|
42
|
+
pathSender: string;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
declare namespace angularportalazure {
|
|
46
|
+
class Blade extends angularportalazure.UserControlBase {
|
|
47
|
+
constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
48
|
+
listener1: Function;
|
|
49
|
+
path: string;
|
|
50
|
+
title: string;
|
|
51
|
+
subTitle: string;
|
|
52
|
+
width: {
|
|
53
|
+
'width': string;
|
|
54
|
+
};
|
|
55
|
+
widthStackLayout: {
|
|
56
|
+
'width': string;
|
|
57
|
+
};
|
|
58
|
+
isInnerHtml: boolean;
|
|
59
|
+
statusbar: string;
|
|
60
|
+
statusbarClass: string;
|
|
61
|
+
isCommandBrowse: boolean;
|
|
62
|
+
commandBrowse: () => void;
|
|
63
|
+
commandBrowseText: string;
|
|
64
|
+
isCommandCancel: boolean;
|
|
65
|
+
commandCancel: () => void;
|
|
66
|
+
commandCancelText: string;
|
|
67
|
+
isCommandCopy: boolean;
|
|
68
|
+
commandCopy: () => void;
|
|
69
|
+
commandCopyText: string;
|
|
70
|
+
isCommandDelete: boolean;
|
|
71
|
+
commandDelete: () => void;
|
|
72
|
+
commandDeleteText: string;
|
|
73
|
+
isCommandDocument: boolean;
|
|
74
|
+
commandDocument: () => void;
|
|
75
|
+
commandDocumentText: string;
|
|
76
|
+
isCommandDocument2: boolean;
|
|
77
|
+
commandDocument2: () => void;
|
|
78
|
+
commandDocument2Text: string;
|
|
79
|
+
isCommandDocument3: boolean;
|
|
80
|
+
commandDocument3: () => void;
|
|
81
|
+
commandDocument3Text: string;
|
|
82
|
+
isCommandDocument4: boolean;
|
|
83
|
+
commandDocument4: () => void;
|
|
84
|
+
commandDocument4Text: string;
|
|
85
|
+
isCommandDocument5: boolean;
|
|
86
|
+
commandDocument5: () => void;
|
|
87
|
+
commandDocument5Text: string;
|
|
88
|
+
isCommandNew: boolean;
|
|
89
|
+
commandNew: () => void;
|
|
90
|
+
commandNewText: string;
|
|
91
|
+
isCommandOrder: boolean;
|
|
92
|
+
commandOrder: () => void;
|
|
93
|
+
commandOrderText: string;
|
|
94
|
+
isCommandRestart: boolean;
|
|
95
|
+
commandRestart: () => void;
|
|
96
|
+
commandRestartText: string;
|
|
97
|
+
isCommandSave: boolean;
|
|
98
|
+
commandSave: () => void;
|
|
99
|
+
commandSaveText: string;
|
|
100
|
+
isCommandSearch: boolean;
|
|
101
|
+
commandSearch: () => void;
|
|
102
|
+
commandSearchText: string;
|
|
103
|
+
isCommandStart: boolean;
|
|
104
|
+
commandStart: () => void;
|
|
105
|
+
commandStartText: string;
|
|
106
|
+
isCommandStop: boolean;
|
|
107
|
+
commandStop: () => void;
|
|
108
|
+
commandStopText: string;
|
|
109
|
+
isCommandSwap: boolean;
|
|
110
|
+
commandSwap: () => void;
|
|
111
|
+
commandSwapText: string;
|
|
112
|
+
/** Obsolete */
|
|
113
|
+
blade: Blade;
|
|
114
|
+
/** Obsolete */
|
|
115
|
+
isNavGrid: boolean;
|
|
116
|
+
/** Obsolete */
|
|
117
|
+
navGrid: {
|
|
118
|
+
portalService: any;
|
|
119
|
+
items: any[];
|
|
120
|
+
navigateTo: (path: string) => void;
|
|
121
|
+
};
|
|
122
|
+
activate(): void;
|
|
123
|
+
onActivate(): void;
|
|
124
|
+
navigateTo(arg: any): void;
|
|
125
|
+
onNavigateTo(arg: any): void;
|
|
126
|
+
/** close blade. */
|
|
127
|
+
close(): void;
|
|
128
|
+
onCommandBrowse(): void;
|
|
129
|
+
onCommandCancel(): void;
|
|
130
|
+
onCommandCopy(): void;
|
|
131
|
+
onCommandDelete(): void;
|
|
132
|
+
onCommandDocument(): void;
|
|
133
|
+
onCommandDocument2(): void;
|
|
134
|
+
onCommandDocument3(): void;
|
|
135
|
+
onCommandDocument4(): void;
|
|
136
|
+
onCommandDocument5(): void;
|
|
137
|
+
onCommandNew(): void;
|
|
138
|
+
onCommandOrder(): void;
|
|
139
|
+
onCommandRestart(): void;
|
|
140
|
+
onCommandSave(): void;
|
|
141
|
+
onCommandSearch(): void;
|
|
142
|
+
onCommandStart(): void;
|
|
143
|
+
onCommandStop(): void;
|
|
144
|
+
onCommandSwap(): void;
|
|
145
|
+
/** Obsolete */
|
|
146
|
+
setObsoleteLayoutProperites(): void;
|
|
147
|
+
/** Obsolete */
|
|
148
|
+
bladeClose(): void;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
declare namespace angularportalazure {
|
|
152
|
+
class BladeArea extends angularportalazure.UserControlBase {
|
|
153
|
+
constructor(portalService: angularportalazure.PortalService);
|
|
154
|
+
private listener1;
|
|
155
|
+
blades: Array<angularportalazure.Blade>;
|
|
156
|
+
raiseAddBladeEvent(args: angularportalazure.IAddBladeEventArgs): void;
|
|
157
|
+
setFirstBlade(path: string): angularportalazure.Blade;
|
|
158
|
+
/** obsolete */
|
|
159
|
+
addBlade(path: string, senderPath?: string): angularportalazure.Blade;
|
|
160
|
+
clearAll(): void;
|
|
161
|
+
clearPath(path: string): void;
|
|
162
|
+
clearLevel(level: number): void;
|
|
163
|
+
clearLastLevel(): void;
|
|
164
|
+
clearChild(path: string): void;
|
|
165
|
+
showPanoramaIfNoBlades(): void;
|
|
166
|
+
hidePanorama(): void;
|
|
167
|
+
/** You need to call this when BladeArea is no longer used, otherwise the listener does not get removed. */
|
|
168
|
+
close(): void;
|
|
169
|
+
addBladePath(path: string): void;
|
|
170
|
+
addBladeOld(path: string): void;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
declare namespace angularportalazure {
|
|
174
|
+
interface IBladeParameter {
|
|
175
|
+
action: string;
|
|
176
|
+
item?: any;
|
|
177
|
+
itemId: number;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
declare namespace angularportalazure {
|
|
181
|
+
class AvatarMenu extends angularportalazure.UserControlBase {
|
|
182
|
+
constructor(portalService: angularportalazure.PortalService);
|
|
183
|
+
userAccount: angularportalazure.UserAccount;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
declare namespace angularportalazure {
|
|
187
|
+
/** The names are used in CSS for layouting, e.g. style='mini' */
|
|
188
|
+
enum TileSizes {
|
|
189
|
+
small = 0,
|
|
190
|
+
mini = 1,
|
|
191
|
+
normal = 2,
|
|
192
|
+
herowide = 3,
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
declare namespace angularportalazure {
|
|
196
|
+
class TileSize {
|
|
197
|
+
tileSizes: angularportalazure.TileSizes;
|
|
198
|
+
width: number;
|
|
199
|
+
height: number;
|
|
200
|
+
constructor(tileSizes: angularportalazure.TileSizes, width: number, height: number);
|
|
201
|
+
static getTileSizes(): Array<TileSize>;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
declare namespace angularportalazure {
|
|
205
|
+
class Tile {
|
|
206
|
+
portalService: angularportalazure.PortalService;
|
|
207
|
+
title: string;
|
|
208
|
+
subTitle: string;
|
|
209
|
+
bladePath: string;
|
|
210
|
+
tileSize: angularportalazure.TileSizes;
|
|
211
|
+
size: string;
|
|
212
|
+
left: string;
|
|
213
|
+
top: string;
|
|
214
|
+
leftN: string;
|
|
215
|
+
topN: string;
|
|
216
|
+
constructor(title: string, bladePath: string, portalService: angularportalazure.PortalService);
|
|
217
|
+
clicked(): void;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
declare namespace angularportalazure {
|
|
221
|
+
class Tiles {
|
|
222
|
+
showTiles: boolean;
|
|
223
|
+
tiles: Array<any>;
|
|
224
|
+
hideTileIfOnlyOne: boolean;
|
|
225
|
+
private tileSizes;
|
|
226
|
+
private nextLeft;
|
|
227
|
+
private nextTop;
|
|
228
|
+
private columnHeightMax;
|
|
229
|
+
addTile(tile: Tile): Tile;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
declare namespace angularportalazure {
|
|
233
|
+
class Startboard extends angularportalazure.UserControlBase {
|
|
234
|
+
tiles: angularportalazure.Tiles;
|
|
235
|
+
constructor(portalService: angularportalazure.PortalService);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
declare namespace angularportalazure {
|
|
239
|
+
class Panorama extends angularportalazure.UserControlBase {
|
|
240
|
+
title: string;
|
|
241
|
+
isVisible: boolean;
|
|
242
|
+
avatarMenu: angularportalazure.AvatarMenu;
|
|
243
|
+
startboard: angularportalazure.Startboard;
|
|
244
|
+
constructor(title: string, portalService: angularportalazure.PortalService);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
declare namespace angularportalazure {
|
|
248
|
+
class PortalShell extends angularportalazure.UserControlBase {
|
|
249
|
+
/** Obsolete
|
|
250
|
+
* start using this.panorama.title */
|
|
251
|
+
title: string;
|
|
252
|
+
/** Obsolete
|
|
253
|
+
* start using this.panorama.avatarMenu.userAccount */
|
|
254
|
+
user: {};
|
|
255
|
+
/** Obsolete
|
|
256
|
+
* start using this.panorama.startboard.tiles */
|
|
257
|
+
tiles: angularportalazure.Tiles[];
|
|
258
|
+
/** Obsolete
|
|
259
|
+
* start using this.bladesNew.blades. */
|
|
260
|
+
blades: any[];
|
|
261
|
+
constructor(title: string, portalService: angularportalazure.PortalService);
|
|
262
|
+
initialize(): void;
|
|
263
|
+
setObsoleteLayoutProperites(): void;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
declare namespace angularportalazure {
|
|
267
|
+
class PortalService {
|
|
268
|
+
constructor($injector: any);
|
|
269
|
+
parameter: angularportalazure.IBladeParameter;
|
|
270
|
+
animate: any;
|
|
271
|
+
animation: any;
|
|
272
|
+
component: any;
|
|
273
|
+
config: any;
|
|
274
|
+
constant: any;
|
|
275
|
+
controller: any;
|
|
276
|
+
directive: any;
|
|
277
|
+
factory: any;
|
|
278
|
+
filter: any;
|
|
279
|
+
provider: any;
|
|
280
|
+
run: any;
|
|
281
|
+
service: any;
|
|
282
|
+
value: any;
|
|
283
|
+
decorator: any;
|
|
284
|
+
name: any;
|
|
285
|
+
requires: any;
|
|
286
|
+
portalShell: angularportalazure.PortalShell;
|
|
287
|
+
panorama: angularportalazure.Panorama;
|
|
288
|
+
bladeArea: angularportalazure.BladeArea;
|
|
289
|
+
ngDialog: any;
|
|
290
|
+
$http: any;
|
|
291
|
+
$httpBackend: any;
|
|
292
|
+
$injector: any;
|
|
293
|
+
$q: any;
|
|
294
|
+
$rootScope: any;
|
|
295
|
+
$window: any;
|
|
296
|
+
$scope: any;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
declare namespace angularportalazure {
|
|
300
|
+
}
|
|
301
|
+
declare namespace angularportalazure {
|
|
302
|
+
}
|
|
303
|
+
declare namespace angularportalazure {
|
|
304
|
+
}
|
|
305
|
+
declare namespace angularportalazure {
|
|
306
|
+
}
|
|
307
|
+
declare namespace angularportalazure {
|
|
308
|
+
/** If a Web API through an exception, the following interface should be available. */
|
|
309
|
+
interface IException {
|
|
310
|
+
ExceptionType: string;
|
|
311
|
+
ClassName: string;
|
|
312
|
+
Message: string;
|
|
313
|
+
Data: Object;
|
|
314
|
+
Type: string;
|
|
315
|
+
Messages?: string[];
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
declare namespace angularportalazure {
|
|
319
|
+
class BladeData extends angularportalazure.Blade {
|
|
320
|
+
constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
321
|
+
processException(data: angularportalazure.IException): void;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
declare namespace angularportalazure {
|
|
325
|
+
class BladeDetail extends angularportalazure.BladeData {
|
|
326
|
+
item: any;
|
|
327
|
+
constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
328
|
+
activate(): void;
|
|
329
|
+
onActivate(): any;
|
|
330
|
+
onActivated(): void;
|
|
331
|
+
onCommandCancel(): void;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
declare namespace angularportalazure {
|
|
335
|
+
class BladeList extends angularportalazure.BladeData {
|
|
336
|
+
items: any[];
|
|
337
|
+
constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
338
|
+
activate(): void;
|
|
339
|
+
onActivate(): any;
|
|
340
|
+
loadItems(f: any): void;
|
|
341
|
+
onFilter(actual: Object, expected: string): boolean;
|
|
342
|
+
/** Obsolete */
|
|
343
|
+
setObsoleteLayoutProperites(): void;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
declare namespace angularportalazure {
|
|
347
|
+
class BladeNavItem {
|
|
348
|
+
title: string;
|
|
349
|
+
bladePath: string;
|
|
350
|
+
hrefPath: string;
|
|
351
|
+
roles: string;
|
|
352
|
+
isVisible: boolean;
|
|
353
|
+
callback: () => any;
|
|
354
|
+
bladeNav: angularportalazure.BladeNav;
|
|
355
|
+
constructor(title?: string, bladePath?: string, hrefPath?: string, roles?: string, isVisible?: boolean, callback?: () => any, bladeNav?: angularportalazure.BladeNav);
|
|
356
|
+
onNavItemClick(): void;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
declare namespace angularportalazure {
|
|
360
|
+
class BladeNav extends angularportalazure.BladeData {
|
|
361
|
+
navItems: Array<angularportalazure.BladeNavItem>;
|
|
362
|
+
isNav: boolean;
|
|
363
|
+
constructor(portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
declare namespace angularportalazure {
|
|
367
|
+
class Exception {
|
|
368
|
+
static convertFromWebApiException(ex: angularportalazure.IException): void;
|
|
369
|
+
static onConvertFromWebApiException(ex: angularportalazure.IException): void;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
declare namespace angularportalazure {
|
|
373
|
+
class DataService {
|
|
374
|
+
$http: any;
|
|
375
|
+
$q: any;
|
|
376
|
+
constructor($http: any, $q: any);
|
|
377
|
+
getData(url: string): any;
|
|
378
|
+
}
|
|
379
|
+
}
|