@ardimedia/angular-portal-azure 0.2.263 → 0.2.265
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 +444 -0
- package/apn.js +108 -108
- package/package.json +1 -1
package/apn.d.ts
ADDED
|
@@ -0,0 +1,444 @@
|
|
|
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
|
+
/** Change title, as soon as watchExpression changes. watchExpression is either a variable ore an expression, e.g. [name1 + name2] */
|
|
162
|
+
setTitle(watchExpression: string, func: () => void): void;
|
|
163
|
+
private setBladeHeights();
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
declare namespace angularportalazure {
|
|
167
|
+
class AreaBlades extends angularportalazure.UserControlBase {
|
|
168
|
+
static $inject: string[];
|
|
169
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
|
|
170
|
+
private portalScroll;
|
|
171
|
+
private addBladeListener;
|
|
172
|
+
private areaNotificationShowListener;
|
|
173
|
+
private areaNotificationHideListener;
|
|
174
|
+
blades: Array<angularportalazure.Blade>;
|
|
175
|
+
raiseAddBladeEvent(args: angularportalazure.IAddBladeEventArgs): void;
|
|
176
|
+
setFirstBlade(path: string): angularportalazure.Blade | void;
|
|
177
|
+
addBlade(path: string, senderPath?: string): angularportalazure.Blade | void;
|
|
178
|
+
clearAll(): void;
|
|
179
|
+
clearPath(path: string): void;
|
|
180
|
+
clearLevel(level: number): void;
|
|
181
|
+
clearLastLevel(): void;
|
|
182
|
+
clearChild(path: string): void;
|
|
183
|
+
showPanoramaIfNoBlades(): void;
|
|
184
|
+
hidePanorama(): void;
|
|
185
|
+
/** We need to call this when AreaBlades is no longer used, otherwise the listener does not get removed. */
|
|
186
|
+
close(): void;
|
|
187
|
+
private setPortalScrollCss();
|
|
188
|
+
private setupShowHideNotificationAreaListener();
|
|
189
|
+
private setupAddBladeListener();
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
declare namespace angularportalazure {
|
|
193
|
+
class BladeData extends angularportalazure.Blade {
|
|
194
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
195
|
+
onLoadItem(): void;
|
|
196
|
+
onLoadItems(): void;
|
|
197
|
+
onLoadedItem(): void;
|
|
198
|
+
onLoadedItems(): void;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
declare namespace angularportalazure {
|
|
202
|
+
class BladeNav extends angularportalazure.BladeData {
|
|
203
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
|
|
204
|
+
items: Array<angularportalazure.BladeNavItem>;
|
|
205
|
+
isNav: boolean;
|
|
206
|
+
onNavigateTo(path: string): void;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
declare namespace angularportalazure {
|
|
210
|
+
class BladeNavItem {
|
|
211
|
+
title: string;
|
|
212
|
+
cssClass: string;
|
|
213
|
+
bladePath: string;
|
|
214
|
+
hrefPath: string;
|
|
215
|
+
roles: string;
|
|
216
|
+
isVisible: boolean;
|
|
217
|
+
callback: () => any;
|
|
218
|
+
bladeNav: angularportalazure.BladeNav | null;
|
|
219
|
+
constructor(title?: string, cssClass?: string, bladePath?: string, hrefPath?: string, roles?: string, isVisible?: boolean, callback?: () => any, bladeNav?: angularportalazure.BladeNav | null);
|
|
220
|
+
onNavItemClick(): void;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
declare namespace angularportalazure {
|
|
224
|
+
class AreaNotification extends angularportalazure.UserControlBase {
|
|
225
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
|
|
226
|
+
path: string;
|
|
227
|
+
widthAreaUsed: number;
|
|
228
|
+
private areaNotification;
|
|
229
|
+
private _width;
|
|
230
|
+
width: number;
|
|
231
|
+
private _backgroundColor;
|
|
232
|
+
backgroundColor: string;
|
|
233
|
+
hide(): void;
|
|
234
|
+
show(width?: number): void;
|
|
235
|
+
private calcualteCssStyles();
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
declare namespace angularportalazure {
|
|
239
|
+
interface BladeParameter {
|
|
240
|
+
action: string;
|
|
241
|
+
item?: any;
|
|
242
|
+
itemId: number;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
declare namespace angularportalazure {
|
|
246
|
+
class AvatarMenu extends angularportalazure.UserControlBase {
|
|
247
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
|
|
248
|
+
userAccount: angularportalazure.UserAccount | null;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
declare namespace angularportalazure {
|
|
252
|
+
/** The names are used in CSS for layouting, e.g. style='mini' */
|
|
253
|
+
enum TileSizes {
|
|
254
|
+
small = 0,
|
|
255
|
+
mini = 1,
|
|
256
|
+
normal = 2,
|
|
257
|
+
herowide = 3,
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
declare namespace angularportalazure {
|
|
261
|
+
class TileSize {
|
|
262
|
+
tileSizes: angularportalazure.TileSizes;
|
|
263
|
+
width: number;
|
|
264
|
+
height: number;
|
|
265
|
+
constructor(tileSizes: angularportalazure.TileSizes, width: number, height: number);
|
|
266
|
+
static getTileSizes(): Array<TileSize>;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
declare namespace angularportalazure {
|
|
270
|
+
class Tile {
|
|
271
|
+
constructor(title: string, bladePath: string, portalService: angularportalazure.PortalService);
|
|
272
|
+
portalService: angularportalazure.PortalService;
|
|
273
|
+
title: string;
|
|
274
|
+
subTitle: string;
|
|
275
|
+
bladePath: string;
|
|
276
|
+
private _bladePath;
|
|
277
|
+
tileSize: angularportalazure.TileSizes;
|
|
278
|
+
size: string;
|
|
279
|
+
left: string;
|
|
280
|
+
top: string;
|
|
281
|
+
leftN: string;
|
|
282
|
+
topN: string;
|
|
283
|
+
clicked(): void;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
declare namespace angularportalazure {
|
|
287
|
+
class Tiles {
|
|
288
|
+
showTiles: boolean;
|
|
289
|
+
tiles: Array<any>;
|
|
290
|
+
isTilesLoaded: boolean;
|
|
291
|
+
hideTileIfOnlyOne: boolean;
|
|
292
|
+
private tileSizes;
|
|
293
|
+
private nextLeft;
|
|
294
|
+
private nextTop;
|
|
295
|
+
private columnHeightMax;
|
|
296
|
+
addTile(tile: Tile): Tile;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
declare namespace angularportalazure {
|
|
300
|
+
class Startboard extends angularportalazure.UserControlBase {
|
|
301
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService);
|
|
302
|
+
tiles: angularportalazure.Tiles;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
declare namespace angularportalazure {
|
|
306
|
+
class Panorama extends angularportalazure.UserControlBase {
|
|
307
|
+
title: string;
|
|
308
|
+
isVisible: boolean;
|
|
309
|
+
avatarMenu: angularportalazure.AvatarMenu;
|
|
310
|
+
startboard: angularportalazure.Startboard;
|
|
311
|
+
constructor($scope: angular.IScope, title: string, portalService: angularportalazure.PortalService);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
declare namespace angularportalazure {
|
|
315
|
+
class PortalShell {
|
|
316
|
+
portalService: angularportalazure.PortalService;
|
|
317
|
+
constructor(portalService: angularportalazure.PortalService, title?: string);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
declare namespace angularportalazure {
|
|
321
|
+
class PortalService {
|
|
322
|
+
static $inject: string[];
|
|
323
|
+
constructor($injector: angular.auto.IInjectorService);
|
|
324
|
+
parameter: angularportalazure.BladeParameter;
|
|
325
|
+
$analytics: angulartics.IAnalyticsService;
|
|
326
|
+
animate: any;
|
|
327
|
+
animation: any;
|
|
328
|
+
component: any;
|
|
329
|
+
config: any;
|
|
330
|
+
constant: any;
|
|
331
|
+
controller: any;
|
|
332
|
+
directive: any;
|
|
333
|
+
factory: any;
|
|
334
|
+
filter: any;
|
|
335
|
+
provider: any;
|
|
336
|
+
run: any;
|
|
337
|
+
service: any;
|
|
338
|
+
value: any;
|
|
339
|
+
decorator: any;
|
|
340
|
+
name: any;
|
|
341
|
+
requires: any;
|
|
342
|
+
portalShell: angularportalazure.PortalShell;
|
|
343
|
+
panorama: angularportalazure.Panorama;
|
|
344
|
+
areaBlades: angularportalazure.AreaBlades;
|
|
345
|
+
areaNotification: angularportalazure.AreaNotification;
|
|
346
|
+
ngDialog: any;
|
|
347
|
+
$injector: angular.auto.IInjectorService;
|
|
348
|
+
$http: angular.IHttpService;
|
|
349
|
+
$httpBackend: angular.IHttpBackendService;
|
|
350
|
+
$q: angular.IQService;
|
|
351
|
+
$rootScope: angular.IRootScopeService;
|
|
352
|
+
$window: angular.IWindowService;
|
|
353
|
+
$timeout: angular.ITimeoutService;
|
|
354
|
+
$translate: angular.translate.ITranslateService;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
declare namespace angularportalazure {
|
|
358
|
+
}
|
|
359
|
+
declare namespace angularportalazure {
|
|
360
|
+
}
|
|
361
|
+
declare namespace angularportalazure {
|
|
362
|
+
}
|
|
363
|
+
declare namespace angularportalazure {
|
|
364
|
+
}
|
|
365
|
+
declare namespace angularportalazure {
|
|
366
|
+
class BladeDetail<T> extends angularportalazure.BladeData {
|
|
367
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
368
|
+
item: T;
|
|
369
|
+
loadItem(func: () => any | angular.IPromise<any> | Promise<any>): void;
|
|
370
|
+
saveItem(func: () => any): void;
|
|
371
|
+
onSaveItem(): void;
|
|
372
|
+
onSavedItem(): void;
|
|
373
|
+
onCommandCancel(): void;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
declare namespace angularportalazure {
|
|
377
|
+
class BladeGrid extends angularportalazure.BladeData {
|
|
378
|
+
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
379
|
+
items: any[];
|
|
380
|
+
loadItems(func: () => any | angular.IPromise<any> | Promise<any>): void;
|
|
381
|
+
onFilter(actual: Object, expected: string): boolean;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
declare namespace angularportalazure {
|
|
385
|
+
class Debug {
|
|
386
|
+
constructor();
|
|
387
|
+
static isEnabled: boolean;
|
|
388
|
+
static isWithObjects: boolean;
|
|
389
|
+
static keys: Array<string>;
|
|
390
|
+
static enable(key?: string): void;
|
|
391
|
+
static disable(key?: string): void;
|
|
392
|
+
static write(debugLine: string, objects?: Array<any>): boolean;
|
|
393
|
+
/** Extract the key (e.g. [azureportal] from a string */
|
|
394
|
+
static extractKey(text: string): string;
|
|
395
|
+
/** Extract the key (e.g. [azureportal] from a string */
|
|
396
|
+
static isInKeys(debugLine: string): boolean;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
declare namespace angularportalazure {
|
|
400
|
+
class ExceptionDotNet {
|
|
401
|
+
ExceptionMessage: string;
|
|
402
|
+
ExceptionType: string;
|
|
403
|
+
InnerException: ExceptionDotNet;
|
|
404
|
+
Message: string;
|
|
405
|
+
StackTrace: string;
|
|
406
|
+
}
|
|
407
|
+
class ValidationResultDotNet {
|
|
408
|
+
ErrorMessage: string;
|
|
409
|
+
MemberNames: string[];
|
|
410
|
+
}
|
|
411
|
+
class ValidationsExceptionDotNet extends ExceptionDotNet {
|
|
412
|
+
ClassName: string;
|
|
413
|
+
Data: {
|
|
414
|
+
key: number;
|
|
415
|
+
value: string;
|
|
416
|
+
}[];
|
|
417
|
+
ValidationResults: ValidationResultDotNet[];
|
|
418
|
+
convertResponse(response: any): void;
|
|
419
|
+
private static convertResponse(exception, responseData);
|
|
420
|
+
private static convertExceptionType(exception, responseData);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
declare namespace angularportalazure {
|
|
424
|
+
class Exception extends angularportalazure.ValidationsExceptionDotNet {
|
|
425
|
+
Type: string;
|
|
426
|
+
MessageDetail: string;
|
|
427
|
+
Messages: string[];
|
|
428
|
+
Status: number | undefined;
|
|
429
|
+
StatusText: string | undefined;
|
|
430
|
+
Url: string;
|
|
431
|
+
static getOneLineMessage(exception: angularportalazure.Exception): string;
|
|
432
|
+
static prepareException(response: angular.IHttpPromiseCallbackArg<angularportalazure.Exception> | any): angularportalazure.Exception;
|
|
433
|
+
private static processDotNetException1(response);
|
|
434
|
+
private static processDotNetException2(response);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
declare namespace angularportalazure {
|
|
438
|
+
class DataService {
|
|
439
|
+
$http: angular.IHttpService;
|
|
440
|
+
$q: angular.IQService;
|
|
441
|
+
constructor($http: angular.IHttpService, $q: angular.IQService);
|
|
442
|
+
getData(url: string): any;
|
|
443
|
+
}
|
|
444
|
+
}
|
package/apn.js
CHANGED
|
@@ -44,7 +44,7 @@ var angularportalazure;
|
|
|
44
44
|
var angularportalazure;
|
|
45
45
|
(function (angularportalazure) {
|
|
46
46
|
var UserAccount = (function () {
|
|
47
|
-
|
|
47
|
+
// #region Constructor
|
|
48
48
|
function UserAccount(username, firstName, lastName) {
|
|
49
49
|
if (firstName === void 0) { firstName = ''; }
|
|
50
50
|
if (lastName === void 0) { lastName = ''; }
|
|
@@ -93,13 +93,13 @@ var angularportalazure;
|
|
|
93
93
|
var angularportalazure;
|
|
94
94
|
(function (angularportalazure) {
|
|
95
95
|
var UserControlBase = (function () {
|
|
96
|
-
|
|
96
|
+
// #region Constructor
|
|
97
97
|
function UserControlBase($scope, portalService) {
|
|
98
98
|
this.$scope = $scope;
|
|
99
99
|
this.portalService = portalService;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
// #endregion
|
|
102
|
+
// #region Methods
|
|
103
103
|
/** angular1: $onInit(), $onChanges(changesObj), $doCheck(), $onDestroy(), $postLink() */
|
|
104
104
|
UserControlBase.prototype.$onDestroy = function () {
|
|
105
105
|
this.removeWindowResizeListener();
|
|
@@ -157,13 +157,13 @@ var angularportalazure;
|
|
|
157
157
|
(function (angularportalazure) {
|
|
158
158
|
var Blade = (function (_super) {
|
|
159
159
|
__extends(Blade, _super);
|
|
160
|
-
|
|
160
|
+
// #region Constructor
|
|
161
161
|
function Blade($scope, portalService, path, title, subtitle, width) {
|
|
162
162
|
if (subtitle === void 0) { subtitle = ''; }
|
|
163
163
|
if (width === void 0) { width = 200; }
|
|
164
164
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
// #endregion
|
|
166
|
+
// #region Properties
|
|
167
167
|
/** HACK: 2016-11-06/hp
|
|
168
168
|
[angular-portal-blade] needs [this] as the controller.
|
|
169
169
|
We don't know how to provide [this] to the directive.
|
|
@@ -177,9 +177,9 @@ var angularportalazure;
|
|
|
177
177
|
_this.isInnerHtml = true;
|
|
178
178
|
_this.statusBar = '';
|
|
179
179
|
_this.statusBarClass = '';
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
// #endregion
|
|
181
|
+
// #endregion
|
|
182
|
+
// #region Commands
|
|
183
183
|
_this.isCommandBrowse = false;
|
|
184
184
|
_this.commandBrowse = function () { _this.onCommandBrowse(); };
|
|
185
185
|
_this.commandBrowseText = '';
|
|
@@ -283,9 +283,9 @@ var angularportalazure;
|
|
|
283
283
|
enumerable: true,
|
|
284
284
|
configurable: true
|
|
285
285
|
});
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
// #endregion
|
|
287
|
+
// #region Methods
|
|
288
|
+
// #region Methods
|
|
289
289
|
Blade.prototype.activate = function () {
|
|
290
290
|
this.onActivate();
|
|
291
291
|
this.onActivated();
|
|
@@ -326,7 +326,7 @@ var angularportalazure;
|
|
|
326
326
|
throw new Error('[angularportalazure.Blade] path: \'' + this.path + '\' could not be removed, since no \'this.portalService.areaBlades\' available.');
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
|
-
|
|
329
|
+
// #region Set StatusBar
|
|
330
330
|
Blade.prototype.clearStatusBar = function () {
|
|
331
331
|
this.statusBar = '';
|
|
332
332
|
this.statusBarClass = '';
|
|
@@ -363,9 +363,9 @@ var angularportalazure;
|
|
|
363
363
|
this.statusBar = angularportalazure.Exception.getOneLineMessage(exception);
|
|
364
364
|
this.statusBarClass = 'apa-statusbar-error';
|
|
365
365
|
};
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
// #endregion
|
|
367
|
+
// #endregion
|
|
368
|
+
// #region Commands
|
|
369
369
|
Blade.prototype.onCommandBrowse = function () {
|
|
370
370
|
throw new Error('[angularportalazure.Blade] \'onCommandBrowse\' is an abstract function. Define one in the derived class.');
|
|
371
371
|
};
|
|
@@ -420,8 +420,8 @@ var angularportalazure;
|
|
|
420
420
|
Blade.prototype.onCommandExcel = function () {
|
|
421
421
|
throw new Error('[angularportalazure.Blade] \'onCommandExcel\' is an abstract function. Define one in the derived class.');
|
|
422
422
|
};
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
// #endregion
|
|
424
|
+
/** Change title, as soon as watchExpression changes. watchExpression is either a variable ore an expression, e.g. [name1 + name2] */
|
|
425
425
|
Blade.prototype.setTitle = function (watchExpression, func) {
|
|
426
426
|
var _this = this;
|
|
427
427
|
if (this.watcherTitle === undefined) {
|
|
@@ -439,8 +439,8 @@ var angularportalazure;
|
|
|
439
439
|
Blade.prototype.setBladeHeights = function () {
|
|
440
440
|
this.bladeContentHeight = this.portalService.$window.innerHeight - 40 - 125; // 40 = topbar, 125 = blade header
|
|
441
441
|
this.bladeContentHeightInner = this.bladeContentHeight - 50 - 3; // 50 = padding (top and bottom), somehow we miss 3px
|
|
442
|
-
//this.portalService.$timeout(() => {
|
|
443
|
-
//}, 50);
|
|
442
|
+
// this.portalService.$timeout(() => {
|
|
443
|
+
// }, 50);
|
|
444
444
|
};
|
|
445
445
|
return Blade;
|
|
446
446
|
}(angularportalazure.UserControlBase));
|
|
@@ -459,15 +459,15 @@ var angularportalazure;
|
|
|
459
459
|
function AreaBlades($scope, portalService) {
|
|
460
460
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
461
461
|
_this.blades = new Array();
|
|
462
|
-
//this.areaBlades = this.portalService.$window.document.getElementById('apa-blade-area');
|
|
462
|
+
// this.areaBlades = this.portalService.$window.document.getElementById('apa-blade-area');
|
|
463
463
|
_this.portalScroll = _this.portalService.$window.document.getElementById('apa-portal-scroll');
|
|
464
464
|
_this.setupAddBladeListener();
|
|
465
465
|
_this.setupShowHideNotificationAreaListener();
|
|
466
466
|
_this.setupWindowResizeListener(function () { _this.setPortalScrollCss(); });
|
|
467
467
|
return _this;
|
|
468
468
|
}
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
// #endregion
|
|
470
|
+
// #region Methods
|
|
471
471
|
AreaBlades.prototype.raiseAddBladeEvent = function (args) {
|
|
472
472
|
var isBladeAlreadyShown = false;
|
|
473
473
|
this.blades.forEach(function (blade) {
|
|
@@ -501,7 +501,7 @@ var angularportalazure;
|
|
|
501
501
|
this.portalService.$analytics.pageTrack(path);
|
|
502
502
|
path = path.toLowerCase();
|
|
503
503
|
senderPath = senderPath.toLowerCase();
|
|
504
|
-
|
|
504
|
+
// #region Verify
|
|
505
505
|
if (path === undefined || path === '') {
|
|
506
506
|
return;
|
|
507
507
|
}
|
|
@@ -514,11 +514,11 @@ var angularportalazure;
|
|
|
514
514
|
throw new Error('[angularportalazure.AreaBlades] HTML element with ID [apa-portal-scroll] not found. Maybe it is to early to call function \'BladeArea.addBlade\'.');
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
|
|
518
|
-
|
|
517
|
+
// #endregion
|
|
518
|
+
// #region Clear all children of the parent path
|
|
519
519
|
this.clearChild(senderPath);
|
|
520
|
-
|
|
521
|
-
|
|
520
|
+
// #endregion
|
|
521
|
+
// #region Make sure the blade is not yet show
|
|
522
522
|
this.blades.forEach(function (blade) {
|
|
523
523
|
// we do not distinguish between lower and upper case path name
|
|
524
524
|
if (blade.comparePaths(blade.path, path)) {
|
|
@@ -526,12 +526,12 @@ var angularportalazure;
|
|
|
526
526
|
}
|
|
527
527
|
;
|
|
528
528
|
});
|
|
529
|
-
|
|
530
|
-
|
|
529
|
+
// #endregion
|
|
530
|
+
// #region Show the blade
|
|
531
531
|
var blade = new angularportalazure.Blade(this.$scope, this.portalService, path, '');
|
|
532
532
|
this.blades.push(blade);
|
|
533
|
-
|
|
534
|
-
|
|
533
|
+
// #endregion
|
|
534
|
+
// #region Position the blade
|
|
535
535
|
if (this.portalService.$window !== undefined) {
|
|
536
536
|
this.portalService.$window.setTimeout(function () {
|
|
537
537
|
var azureportalblades = _this.portalService.$window.document.getElementsByClassName('azureportalblade');
|
|
@@ -544,7 +544,7 @@ var angularportalazure;
|
|
|
544
544
|
}
|
|
545
545
|
}, 250);
|
|
546
546
|
}
|
|
547
|
-
|
|
547
|
+
// #endregion
|
|
548
548
|
return blade;
|
|
549
549
|
};
|
|
550
550
|
AreaBlades.prototype.clearAll = function () {
|
|
@@ -622,7 +622,7 @@ var angularportalazure;
|
|
|
622
622
|
this.areaNotificationShowListener();
|
|
623
623
|
this.areaNotificationHideListener();
|
|
624
624
|
};
|
|
625
|
-
|
|
625
|
+
// #endregion
|
|
626
626
|
AreaBlades.prototype.setPortalScrollCss = function () {
|
|
627
627
|
this.portalScroll.style.marginRight = this.portalService.areaNotification.widthAreaUsed + 'px';
|
|
628
628
|
};
|
|
@@ -643,7 +643,7 @@ var angularportalazure;
|
|
|
643
643
|
};
|
|
644
644
|
return AreaBlades;
|
|
645
645
|
}(angularportalazure.UserControlBase));
|
|
646
|
-
|
|
646
|
+
// #region Constructor
|
|
647
647
|
AreaBlades.$inject = ['$scope', 'angularportalazure.portalService'];
|
|
648
648
|
angularportalazure.AreaBlades = AreaBlades;
|
|
649
649
|
angular.module('angularportalazure').service('angularportalazure.areaBlades', AreaBlades);
|
|
@@ -655,13 +655,13 @@ var angularportalazure;
|
|
|
655
655
|
(function (angularportalazure) {
|
|
656
656
|
var BladeData = (function (_super) {
|
|
657
657
|
__extends(BladeData, _super);
|
|
658
|
-
|
|
658
|
+
// #region Constructor
|
|
659
659
|
function BladeData($scope, portalService, path, title, subtitle, width) {
|
|
660
660
|
if (subtitle === void 0) { subtitle = ''; }
|
|
661
661
|
if (width === void 0) { width = 300; }
|
|
662
662
|
return _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
663
663
|
}
|
|
664
|
-
|
|
664
|
+
// #endregion
|
|
665
665
|
BladeData.prototype.onLoadItem = function () {
|
|
666
666
|
this.visibility = 'collapse';
|
|
667
667
|
this.setStatusBarLoadData();
|
|
@@ -690,21 +690,21 @@ var angularportalazure;
|
|
|
690
690
|
(function (angularportalazure) {
|
|
691
691
|
var BladeNav = (function (_super) {
|
|
692
692
|
__extends(BladeNav, _super);
|
|
693
|
-
|
|
693
|
+
// #region Constructor
|
|
694
694
|
function BladeNav($scope, portalService, path, title, subtitle, width) {
|
|
695
695
|
if (title === void 0) { title = ''; }
|
|
696
696
|
if (subtitle === void 0) { subtitle = ''; }
|
|
697
697
|
if (width === void 0) { width = 315; }
|
|
698
698
|
var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
699
|
-
|
|
700
|
-
|
|
699
|
+
// #endregion
|
|
700
|
+
// #region Properties
|
|
701
701
|
_this.items = new Array();
|
|
702
702
|
_this.isNav = true;
|
|
703
703
|
_this.isInnerHtml = false;
|
|
704
704
|
return _this;
|
|
705
705
|
}
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
// #endregion
|
|
707
|
+
// #region Methods
|
|
708
708
|
BladeNav.prototype.onNavigateTo = function (path) {
|
|
709
709
|
if (path === '') {
|
|
710
710
|
return;
|
|
@@ -720,7 +720,7 @@ var angularportalazure;
|
|
|
720
720
|
var angularportalazure;
|
|
721
721
|
(function (angularportalazure) {
|
|
722
722
|
var BladeNavItem = (function () {
|
|
723
|
-
|
|
723
|
+
// #region Constructor
|
|
724
724
|
function BladeNavItem(title, cssClass, bladePath, hrefPath, roles, isVisible, callback, bladeNav) {
|
|
725
725
|
if (title === void 0) { title = ''; }
|
|
726
726
|
if (cssClass === void 0) { cssClass = ''; }
|
|
@@ -739,8 +739,8 @@ var angularportalazure;
|
|
|
739
739
|
this.callback = callback;
|
|
740
740
|
this.bladeNav = bladeNav;
|
|
741
741
|
}
|
|
742
|
-
|
|
743
|
-
|
|
742
|
+
// #endregion
|
|
743
|
+
// #region Methods
|
|
744
744
|
BladeNavItem.prototype.onNavItemClick = function () {
|
|
745
745
|
if (this.callback != null) {
|
|
746
746
|
this.callback();
|
|
@@ -758,11 +758,11 @@ var angularportalazure;
|
|
|
758
758
|
(function (angularportalazure) {
|
|
759
759
|
var AreaNotification = (function (_super) {
|
|
760
760
|
__extends(AreaNotification, _super);
|
|
761
|
-
|
|
761
|
+
// #region Constructor
|
|
762
762
|
function AreaNotification($scope, portalService) {
|
|
763
763
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
764
|
-
|
|
765
|
-
|
|
764
|
+
// #endregion
|
|
765
|
+
// #region Properties
|
|
766
766
|
_this.path = '';
|
|
767
767
|
_this.widthAreaUsed = 0;
|
|
768
768
|
_this._width = 250;
|
|
@@ -794,8 +794,8 @@ var angularportalazure;
|
|
|
794
794
|
enumerable: true,
|
|
795
795
|
configurable: true
|
|
796
796
|
});
|
|
797
|
-
|
|
798
|
-
|
|
797
|
+
// #endregion
|
|
798
|
+
// #region Methods
|
|
799
799
|
AreaNotification.prototype.hide = function () {
|
|
800
800
|
this.path = '';
|
|
801
801
|
this.widthAreaUsed = 0;
|
|
@@ -835,7 +835,7 @@ var angularportalazure;
|
|
|
835
835
|
(function (angularportalazure) {
|
|
836
836
|
var AvatarMenu = (function (_super) {
|
|
837
837
|
__extends(AvatarMenu, _super);
|
|
838
|
-
|
|
838
|
+
// #region Constructor
|
|
839
839
|
function AvatarMenu($scope, portalService) {
|
|
840
840
|
return _super.call(this, $scope, portalService) || this;
|
|
841
841
|
}
|
|
@@ -860,14 +860,14 @@ var angularportalazure;
|
|
|
860
860
|
var angularportalazure;
|
|
861
861
|
(function (angularportalazure) {
|
|
862
862
|
var TileSize = (function () {
|
|
863
|
-
|
|
863
|
+
// #region Constructor
|
|
864
864
|
function TileSize(tileSizes, width, height) {
|
|
865
865
|
this.tileSizes = tileSizes;
|
|
866
866
|
this.width = width;
|
|
867
867
|
this.height = height;
|
|
868
868
|
}
|
|
869
|
-
|
|
870
|
-
|
|
869
|
+
// #endregion
|
|
870
|
+
// #region Methods
|
|
871
871
|
TileSize.getTileSizes = function () {
|
|
872
872
|
var tileSizes = Array();
|
|
873
873
|
tileSizes.push(new TileSize(angularportalazure.TileSizes.small, 90, 90));
|
|
@@ -887,7 +887,7 @@ var angularportalazure;
|
|
|
887
887
|
var angularportalazure;
|
|
888
888
|
(function (angularportalazure) {
|
|
889
889
|
var Tile = (function () {
|
|
890
|
-
|
|
890
|
+
// #region Constructor
|
|
891
891
|
function Tile(title, bladePath, portalService) {
|
|
892
892
|
this.portalService = portalService;
|
|
893
893
|
this.title = title;
|
|
@@ -895,7 +895,7 @@ var angularportalazure;
|
|
|
895
895
|
this.tileSize = angularportalazure.TileSizes.normal;
|
|
896
896
|
}
|
|
897
897
|
Object.defineProperty(Tile.prototype, "bladePath", {
|
|
898
|
-
|
|
898
|
+
// #region bladePath
|
|
899
899
|
get: function () {
|
|
900
900
|
return this._bladePath;
|
|
901
901
|
},
|
|
@@ -906,8 +906,8 @@ var angularportalazure;
|
|
|
906
906
|
enumerable: true,
|
|
907
907
|
configurable: true
|
|
908
908
|
});
|
|
909
|
-
|
|
910
|
-
|
|
909
|
+
// #endregion
|
|
910
|
+
// #region Methods
|
|
911
911
|
Tile.prototype.clicked = function () {
|
|
912
912
|
this.portalService.areaBlades.setFirstBlade(this.bladePath);
|
|
913
913
|
};
|
|
@@ -923,7 +923,7 @@ var angularportalazure;
|
|
|
923
923
|
(function (angularportalazure) {
|
|
924
924
|
var Tiles = (function () {
|
|
925
925
|
function Tiles() {
|
|
926
|
-
|
|
926
|
+
// #region Properties
|
|
927
927
|
this.showTiles = true;
|
|
928
928
|
this.tiles = new Array();
|
|
929
929
|
this.isTilesLoaded = false;
|
|
@@ -932,10 +932,10 @@ var angularportalazure;
|
|
|
932
932
|
this.nextLeft = 0;
|
|
933
933
|
this.nextTop = 0;
|
|
934
934
|
this.columnHeightMax = 0;
|
|
935
|
-
|
|
935
|
+
// #endregion
|
|
936
936
|
}
|
|
937
|
-
|
|
938
|
-
|
|
937
|
+
// #endregion
|
|
938
|
+
// #region Methods
|
|
939
939
|
Tiles.prototype.addTile = function (tile) {
|
|
940
940
|
this.isTilesLoaded = true;
|
|
941
941
|
var tileSize = this.tileSizes[tile.tileSize];
|
|
@@ -966,7 +966,7 @@ var angularportalazure;
|
|
|
966
966
|
(function (angularportalazure) {
|
|
967
967
|
var Startboard = (function (_super) {
|
|
968
968
|
__extends(Startboard, _super);
|
|
969
|
-
|
|
969
|
+
// #region Constructor
|
|
970
970
|
function Startboard($scope, portalService) {
|
|
971
971
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
972
972
|
_this.tiles = new angularportalazure.Tiles();
|
|
@@ -985,8 +985,8 @@ var angularportalazure;
|
|
|
985
985
|
(function (angularportalazure) {
|
|
986
986
|
var Panorama = (function (_super) {
|
|
987
987
|
__extends(Panorama, _super);
|
|
988
|
-
|
|
989
|
-
|
|
988
|
+
// #endregion
|
|
989
|
+
// #region Constructor
|
|
990
990
|
function Panorama($scope, title, portalService) {
|
|
991
991
|
var _this = _super.call(this, $scope, portalService) || this;
|
|
992
992
|
_this.isVisible = true;
|
|
@@ -1009,7 +1009,7 @@ var angularportalazure;
|
|
|
1009
1009
|
var angularportalazure;
|
|
1010
1010
|
(function (angularportalazure) {
|
|
1011
1011
|
var PortalShell = (function () {
|
|
1012
|
-
|
|
1012
|
+
// #region Constructor
|
|
1013
1013
|
function PortalShell(portalService, title) {
|
|
1014
1014
|
if (title === void 0) { title = null; }
|
|
1015
1015
|
this.portalService = portalService;
|
|
@@ -1038,8 +1038,8 @@ var angularportalazure;
|
|
|
1038
1038
|
(function (angularportalazure) {
|
|
1039
1039
|
var PortalService = (function () {
|
|
1040
1040
|
function PortalService($injector) {
|
|
1041
|
-
|
|
1042
|
-
|
|
1041
|
+
// #endregion
|
|
1042
|
+
// #region Properties
|
|
1043
1043
|
this.parameter = { action: 'none', itemId: 0 };
|
|
1044
1044
|
this.$injector = $injector;
|
|
1045
1045
|
this.$http = $injector.get('$http');
|
|
@@ -1054,7 +1054,7 @@ var angularportalazure;
|
|
|
1054
1054
|
}
|
|
1055
1055
|
return PortalService;
|
|
1056
1056
|
}());
|
|
1057
|
-
|
|
1057
|
+
// #region Constructor
|
|
1058
1058
|
PortalService.$inject = ['$injector'];
|
|
1059
1059
|
angularportalazure.PortalService = PortalService;
|
|
1060
1060
|
angular.module('angularportalazure').service('angularportalazure.portalService', PortalService);
|
|
@@ -1133,13 +1133,13 @@ var angularportalazure;
|
|
|
1133
1133
|
(function (angularportalazure) {
|
|
1134
1134
|
var BladeDetail = (function (_super) {
|
|
1135
1135
|
__extends(BladeDetail, _super);
|
|
1136
|
-
|
|
1136
|
+
// #region Constructor
|
|
1137
1137
|
function BladeDetail($scope, portalService, path, title, subtitle, width) {
|
|
1138
1138
|
if (subtitle === void 0) { subtitle = ''; }
|
|
1139
1139
|
if (width === void 0) { width = 200; }
|
|
1140
1140
|
var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
1141
|
-
|
|
1142
|
-
|
|
1141
|
+
// #endregion
|
|
1142
|
+
// #region Properties
|
|
1143
1143
|
_this.item = {};
|
|
1144
1144
|
_this.commandNewText = 'neu';
|
|
1145
1145
|
_this.commandSaveText = 'speichern';
|
|
@@ -1147,8 +1147,8 @@ var angularportalazure;
|
|
|
1147
1147
|
_this.commandCancelText = 'abbrechen';
|
|
1148
1148
|
return _this;
|
|
1149
1149
|
}
|
|
1150
|
-
|
|
1151
|
-
|
|
1150
|
+
// #endregion
|
|
1151
|
+
// #region Methods
|
|
1152
1152
|
BladeDetail.prototype.loadItem = function (func) {
|
|
1153
1153
|
var _this = this;
|
|
1154
1154
|
this.onLoadItem();
|
|
@@ -1196,18 +1196,18 @@ var angularportalazure;
|
|
|
1196
1196
|
(function (angularportalazure) {
|
|
1197
1197
|
var BladeGrid = (function (_super) {
|
|
1198
1198
|
__extends(BladeGrid, _super);
|
|
1199
|
-
|
|
1199
|
+
// #region Constructor
|
|
1200
1200
|
function BladeGrid($scope, portalService, path, title, subtitle, width) {
|
|
1201
1201
|
if (subtitle === void 0) { subtitle = ''; }
|
|
1202
1202
|
if (width === void 0) { width = 200; }
|
|
1203
1203
|
var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
1204
|
-
|
|
1205
|
-
|
|
1204
|
+
// #endregion
|
|
1205
|
+
// #region Properties
|
|
1206
1206
|
_this.items = [];
|
|
1207
1207
|
return _this;
|
|
1208
1208
|
}
|
|
1209
|
-
|
|
1210
|
-
|
|
1209
|
+
// #endregion
|
|
1210
|
+
// #region Methods
|
|
1211
1211
|
BladeGrid.prototype.loadItems = function (func) {
|
|
1212
1212
|
var _this = this;
|
|
1213
1213
|
this.onLoadItems();
|
|
@@ -1218,15 +1218,15 @@ var angularportalazure;
|
|
|
1218
1218
|
_this.setStatusBarException(exception);
|
|
1219
1219
|
});
|
|
1220
1220
|
};
|
|
1221
|
-
|
|
1221
|
+
// #region Filter
|
|
1222
1222
|
BladeGrid.prototype.onFilter = function (actual, expected) {
|
|
1223
|
-
|
|
1223
|
+
// #region Documentation
|
|
1224
1224
|
// > onFilter will be called for each item in an array
|
|
1225
1225
|
// > If the item is an native type (string, number), the filter will be called with the native type in the parameter 'actual'
|
|
1226
1226
|
// > If the item is an object, the filter will be called with each property of the object in the parameter 'actual'
|
|
1227
1227
|
// > If the item is an object, the filter will also be called with the object in the parameter 'actual'
|
|
1228
|
-
|
|
1229
|
-
|
|
1228
|
+
// #endregion
|
|
1229
|
+
// #region Helper functions
|
|
1230
1230
|
// Implemenation detail:
|
|
1231
1231
|
// > We implemented the following functions with in-line-functions, since onFilter is not called within the scope of a class (this. not working).
|
|
1232
1232
|
// Function to convert 'number' to 'string'
|
|
@@ -1262,14 +1262,14 @@ var angularportalazure;
|
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
1264
|
};
|
|
1265
|
-
|
|
1266
|
-
|
|
1265
|
+
// #endregion
|
|
1266
|
+
// #region Initialize
|
|
1267
1267
|
// Prepare 'expected' value
|
|
1268
1268
|
expected = expected.toLowerCase();
|
|
1269
1269
|
// Split the search string into its parts if separated by blanks
|
|
1270
1270
|
var expectedSplitted = expected.split(' ');
|
|
1271
|
-
|
|
1272
|
-
|
|
1271
|
+
// #endregion
|
|
1272
|
+
// #region Process depending on type
|
|
1273
1273
|
// Process property, typeof 'object'
|
|
1274
1274
|
if (typeof actual === 'object') {
|
|
1275
1275
|
processObject(actual);
|
|
@@ -1282,16 +1282,16 @@ var angularportalazure;
|
|
|
1282
1282
|
if (typeof actual === 'string') {
|
|
1283
1283
|
valueFound(actual, expected);
|
|
1284
1284
|
}
|
|
1285
|
-
|
|
1286
|
-
|
|
1285
|
+
// #endregion
|
|
1286
|
+
// #region Verify if all expected has been found
|
|
1287
1287
|
var foundCount = 0;
|
|
1288
1288
|
expectedSplitted.forEach(function (expectedItem) {
|
|
1289
1289
|
if (expectedItem === '') {
|
|
1290
1290
|
foundCount++;
|
|
1291
1291
|
}
|
|
1292
1292
|
});
|
|
1293
|
-
|
|
1294
|
-
|
|
1293
|
+
// #endregion
|
|
1294
|
+
// #region Return result
|
|
1295
1295
|
if (foundCount === expectedSplitted.length) {
|
|
1296
1296
|
return true;
|
|
1297
1297
|
}
|
|
@@ -1299,7 +1299,7 @@ var angularportalazure;
|
|
|
1299
1299
|
return false;
|
|
1300
1300
|
}
|
|
1301
1301
|
;
|
|
1302
|
-
|
|
1302
|
+
// #endregion
|
|
1303
1303
|
};
|
|
1304
1304
|
return BladeGrid;
|
|
1305
1305
|
}(angularportalazure.BladeData));
|
|
@@ -1309,11 +1309,11 @@ var angularportalazure;
|
|
|
1309
1309
|
var angularportalazure;
|
|
1310
1310
|
(function (angularportalazure) {
|
|
1311
1311
|
var Debug = (function () {
|
|
1312
|
-
|
|
1312
|
+
// #region Constructor
|
|
1313
1313
|
function Debug() {
|
|
1314
1314
|
}
|
|
1315
|
-
|
|
1316
|
-
|
|
1315
|
+
// #endregion
|
|
1316
|
+
// #region Methods
|
|
1317
1317
|
Debug.enable = function (key) {
|
|
1318
1318
|
Debug.isEnabled = true;
|
|
1319
1319
|
if (key) {
|
|
@@ -1365,8 +1365,8 @@ var angularportalazure;
|
|
|
1365
1365
|
};
|
|
1366
1366
|
return Debug;
|
|
1367
1367
|
}());
|
|
1368
|
-
|
|
1369
|
-
|
|
1368
|
+
// #endregion
|
|
1369
|
+
// #region Properties
|
|
1370
1370
|
Debug.isEnabled = false;
|
|
1371
1371
|
Debug.isWithObjects = false;
|
|
1372
1372
|
Debug.keys = new Array();
|
|
@@ -1409,10 +1409,10 @@ var angularportalazure;
|
|
|
1409
1409
|
exception.StackTrace = responseData.StackTrace;
|
|
1410
1410
|
exception.InnerException = responseData.InnerException;
|
|
1411
1411
|
// ValidationsExceptionDotNet
|
|
1412
|
-
//exception.ClassName = 'Not yet implemented';
|
|
1413
|
-
//exception.Data = [{ key: 0, value: 'Not yet implemented' }];
|
|
1412
|
+
// exception.ClassName = 'Not yet implemented';
|
|
1413
|
+
// exception.Data = [{ key: 0, value: 'Not yet implemented' }];
|
|
1414
1414
|
// ValidationResultDotNet
|
|
1415
|
-
//exception.ValidationResults = [{ ErrorMessage: 'Not yet implemented', MemberNames: [] }];
|
|
1415
|
+
// exception.ValidationResults = [{ ErrorMessage: 'Not yet implemented', MemberNames: [] }];
|
|
1416
1416
|
};
|
|
1417
1417
|
ValidationsExceptionDotNet.convertExceptionType = function (exception, responseData) {
|
|
1418
1418
|
if (responseData.ExceptionType === undefined) {
|
|
@@ -1447,8 +1447,8 @@ var angularportalazure;
|
|
|
1447
1447
|
function Exception() {
|
|
1448
1448
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1449
1449
|
}
|
|
1450
|
-
|
|
1451
|
-
|
|
1450
|
+
// #endregion
|
|
1451
|
+
// #region Static Methods
|
|
1452
1452
|
Exception.getOneLineMessage = function (exception) {
|
|
1453
1453
|
var message = 'FEHLER ';
|
|
1454
1454
|
if (exception.Message !== undefined) {
|
|
@@ -1501,7 +1501,7 @@ var angularportalazure;
|
|
|
1501
1501
|
};
|
|
1502
1502
|
Exception.processDotNetException1 = function (response) {
|
|
1503
1503
|
var exception = new angularportalazure.Exception();
|
|
1504
|
-
|
|
1504
|
+
// #region Convert data to Messages
|
|
1505
1505
|
exception.Messages = [];
|
|
1506
1506
|
if (response.data.Data === undefined) {
|
|
1507
1507
|
exception.Messages.push('No further information found in [response.data.Data].');
|
|
@@ -1513,7 +1513,7 @@ var angularportalazure;
|
|
|
1513
1513
|
i++;
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
|
|
1516
|
+
// #endregion
|
|
1517
1517
|
return exception;
|
|
1518
1518
|
};
|
|
1519
1519
|
// TODO:2017-01-09/hp: Implement this function for angular2
|
|
@@ -1533,13 +1533,13 @@ var angularportalazure;
|
|
|
1533
1533
|
var angularportalazure;
|
|
1534
1534
|
(function (angularportalazure) {
|
|
1535
1535
|
var DataService = (function () {
|
|
1536
|
-
|
|
1536
|
+
// #region Constructor
|
|
1537
1537
|
function DataService($http, $q) {
|
|
1538
1538
|
this.$http = $http;
|
|
1539
1539
|
this.$q = $q;
|
|
1540
1540
|
}
|
|
1541
|
-
|
|
1542
|
-
|
|
1541
|
+
// #endregion
|
|
1542
|
+
// #region Methods
|
|
1543
1543
|
DataService.prototype.getData = function (url) {
|
|
1544
1544
|
return this.$http({ method: 'GET', url: url })
|
|
1545
1545
|
.then(function (response) { })
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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.265",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|