@ardimedia/angular-portal-azure 0.2.296 → 0.2.298
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 +14 -14
- package/apn.js +52 -60
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ declare namespace angularportalazure {
|
|
|
23
23
|
$scope: angular.IScope;
|
|
24
24
|
portalService: angularportalazure.PortalService;
|
|
25
25
|
windowResizeHandler: () => void;
|
|
26
|
+
statusBar: string;
|
|
27
|
+
statusBarClass: string;
|
|
26
28
|
/** angular1: $onInit(), $onChanges(changesObj), $doCheck(), $onDestroy(), $postLink() */
|
|
27
29
|
$onDestroy(): void;
|
|
28
30
|
/** angular2: ngOnChanges(), ngOnInit, ngDoCheck, ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, ngOnDestroy */
|
|
@@ -32,6 +34,17 @@ declare namespace angularportalazure {
|
|
|
32
34
|
isNumberUndefinedNullOr0(value: number): boolean;
|
|
33
35
|
isStringNullOrEmpty(value: string): boolean;
|
|
34
36
|
getRandomString(length?: number): string;
|
|
37
|
+
clearStatusBar(): void;
|
|
38
|
+
setStatusBar(text?: string, style?: string): void;
|
|
39
|
+
setStatusBarCopyData(): void;
|
|
40
|
+
setStatusBarLoadData(): void;
|
|
41
|
+
setStatusBarSaveData(): void;
|
|
42
|
+
setStatusBarDeleteData(): void;
|
|
43
|
+
setStatusBarDeleteDataCanceled(): void;
|
|
44
|
+
setStatusBarInfo(text: string): void;
|
|
45
|
+
setStatusBarError(text: string): void;
|
|
46
|
+
setStatusBarNoDataFound(): void;
|
|
47
|
+
setStatusBarException(exception: angularportalazure.Exception): void;
|
|
35
48
|
}
|
|
36
49
|
}
|
|
37
50
|
declare namespace angularportalazure {
|
|
@@ -61,8 +74,6 @@ declare namespace angularportalazure {
|
|
|
61
74
|
'width': string;
|
|
62
75
|
};
|
|
63
76
|
isInnerHtml: boolean;
|
|
64
|
-
statusBar: string;
|
|
65
|
-
statusBarClass: string;
|
|
66
77
|
formblade: any;
|
|
67
78
|
private _path;
|
|
68
79
|
path: string;
|
|
@@ -136,17 +147,6 @@ declare namespace angularportalazure {
|
|
|
136
147
|
close(): void;
|
|
137
148
|
/** Override */
|
|
138
149
|
onClose(): boolean;
|
|
139
|
-
clearStatusBar(): void;
|
|
140
|
-
setStatusBar(text?: string, style?: string): void;
|
|
141
|
-
setStatusBarCopyData(): void;
|
|
142
|
-
setStatusBarLoadData(): void;
|
|
143
|
-
setStatusBarSaveData(): void;
|
|
144
|
-
setStatusBarDeleteData(): void;
|
|
145
|
-
setStatusBarDeleteDataCanceled(): void;
|
|
146
|
-
setStatusBarInfo(text: string): void;
|
|
147
|
-
setStatusBarError(text: string): void;
|
|
148
|
-
setStatusBarNoDataFound(): void;
|
|
149
|
-
setStatusBarException(exception: angularportalazure.Exception): void;
|
|
150
150
|
onCommandBrowse(): void;
|
|
151
151
|
onCommandCancel(): void;
|
|
152
152
|
onCommandCopy(): void;
|
|
@@ -457,7 +457,7 @@ declare namespace angularportalazure {
|
|
|
457
457
|
Url: string;
|
|
458
458
|
static getOneLineMessage(exception: angularportalazure.Exception): string;
|
|
459
459
|
static prepareException(response: angular.IHttpPromiseCallbackArg<angularportalazure.Exception> | any): angularportalazure.Exception;
|
|
460
|
-
private static
|
|
460
|
+
private static processExceptionData;
|
|
461
461
|
private static processDotNetException2;
|
|
462
462
|
}
|
|
463
463
|
}
|
package/apn.js
CHANGED
|
@@ -94,6 +94,8 @@ var angularportalazure;
|
|
|
94
94
|
var UserControlBase = /** @class */ (function () {
|
|
95
95
|
// #region Constructor
|
|
96
96
|
function UserControlBase($scope, portalService) {
|
|
97
|
+
this.statusBar = '';
|
|
98
|
+
this.statusBarClass = '';
|
|
97
99
|
this.$scope = $scope;
|
|
98
100
|
this.portalService = portalService;
|
|
99
101
|
}
|
|
@@ -121,13 +123,6 @@ var angularportalazure;
|
|
|
121
123
|
});
|
|
122
124
|
};
|
|
123
125
|
UserControlBase.prototype.isNumberUndefinedNullOr0 = function (value) {
|
|
124
|
-
//if ((typeof value == 'undefined')
|
|
125
|
-
// || (value == null)
|
|
126
|
-
// || (value == 0)) {
|
|
127
|
-
// return true;
|
|
128
|
-
//} else {
|
|
129
|
-
// return false;
|
|
130
|
-
//}
|
|
131
126
|
if (value && value > 0) {
|
|
132
127
|
return false;
|
|
133
128
|
}
|
|
@@ -147,6 +142,51 @@ var angularportalazure;
|
|
|
147
142
|
if (length === void 0) { length = 20; }
|
|
148
143
|
return 'a' + Math.round((Math.pow(36, length + 1) - Math.random() * Math.pow(36, length))).toString(36).replace('.', '').replace('(e+', '').replace(')', '').slice(1);
|
|
149
144
|
};
|
|
145
|
+
// #region Set StatusBar
|
|
146
|
+
UserControlBase.prototype.clearStatusBar = function () {
|
|
147
|
+
this.statusBar = '';
|
|
148
|
+
this.statusBarClass = '';
|
|
149
|
+
};
|
|
150
|
+
UserControlBase.prototype.setStatusBar = function (text, style) {
|
|
151
|
+
this.statusBar = text ? text : '';
|
|
152
|
+
this.statusBarClass = style ? style : '';
|
|
153
|
+
};
|
|
154
|
+
UserControlBase.prototype.setStatusBarCopyData = function () {
|
|
155
|
+
this.statusBar = 'Daten kopieren...';
|
|
156
|
+
this.statusBarClass = 'apa-statusbar-info';
|
|
157
|
+
};
|
|
158
|
+
UserControlBase.prototype.setStatusBarLoadData = function () {
|
|
159
|
+
this.statusBar = 'Daten laden...';
|
|
160
|
+
this.statusBarClass = 'apa-statusbar-info';
|
|
161
|
+
};
|
|
162
|
+
UserControlBase.prototype.setStatusBarSaveData = function () {
|
|
163
|
+
this.statusBar = 'Daten speichern...';
|
|
164
|
+
this.statusBarClass = 'apa-statusbar-info';
|
|
165
|
+
};
|
|
166
|
+
UserControlBase.prototype.setStatusBarDeleteData = function () {
|
|
167
|
+
this.statusBar = 'Daten löschen...';
|
|
168
|
+
this.statusBarClass = 'apa-statusbar-info';
|
|
169
|
+
};
|
|
170
|
+
UserControlBase.prototype.setStatusBarDeleteDataCanceled = function () {
|
|
171
|
+
this.statusBar = 'Löschen abgebrochen.';
|
|
172
|
+
this.statusBarClass = 'apa-statusbar-info';
|
|
173
|
+
};
|
|
174
|
+
UserControlBase.prototype.setStatusBarInfo = function (text) {
|
|
175
|
+
this.statusBar = text;
|
|
176
|
+
this.statusBarClass = 'apa-statusbar-info';
|
|
177
|
+
};
|
|
178
|
+
UserControlBase.prototype.setStatusBarError = function (text) {
|
|
179
|
+
this.statusBar = text;
|
|
180
|
+
this.statusBarClass = 'apa-statusbar-error';
|
|
181
|
+
};
|
|
182
|
+
UserControlBase.prototype.setStatusBarNoDataFound = function () {
|
|
183
|
+
this.statusBar = 'Keine Daten gefunden!';
|
|
184
|
+
this.statusBarClass = 'apa-statusbar-error';
|
|
185
|
+
};
|
|
186
|
+
UserControlBase.prototype.setStatusBarException = function (exception) {
|
|
187
|
+
this.statusBar = angularportalazure.Exception.getOneLineMessage(exception);
|
|
188
|
+
this.statusBarClass = 'apa-statusbar-error';
|
|
189
|
+
};
|
|
150
190
|
return UserControlBase;
|
|
151
191
|
}());
|
|
152
192
|
angularportalazure.UserControlBase = UserControlBase;
|
|
@@ -190,8 +230,6 @@ var angularportalazure;
|
|
|
190
230
|
_this.width = { 'width': '0' };
|
|
191
231
|
_this.widthStackLayout = { 'width': '50px' };
|
|
192
232
|
_this.isInnerHtml = true;
|
|
193
|
-
_this.statusBar = '';
|
|
194
|
-
_this.statusBarClass = '';
|
|
195
233
|
// #endregion
|
|
196
234
|
// #endregion
|
|
197
235
|
// #region Commands
|
|
@@ -351,52 +389,6 @@ var angularportalazure;
|
|
|
351
389
|
Blade.prototype.onClose = function () {
|
|
352
390
|
return true;
|
|
353
391
|
};
|
|
354
|
-
// #region Set StatusBar
|
|
355
|
-
Blade.prototype.clearStatusBar = function () {
|
|
356
|
-
this.statusBar = '';
|
|
357
|
-
this.statusBarClass = '';
|
|
358
|
-
};
|
|
359
|
-
Blade.prototype.setStatusBar = function (text, style) {
|
|
360
|
-
this.statusBar = text ? text : '';
|
|
361
|
-
this.statusBarClass = style ? style : '';
|
|
362
|
-
};
|
|
363
|
-
Blade.prototype.setStatusBarCopyData = function () {
|
|
364
|
-
this.statusBar = 'Daten kopieren...';
|
|
365
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
366
|
-
};
|
|
367
|
-
Blade.prototype.setStatusBarLoadData = function () {
|
|
368
|
-
this.statusBar = 'Daten laden...';
|
|
369
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
370
|
-
};
|
|
371
|
-
Blade.prototype.setStatusBarSaveData = function () {
|
|
372
|
-
this.statusBar = 'Daten speichern...';
|
|
373
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
374
|
-
};
|
|
375
|
-
Blade.prototype.setStatusBarDeleteData = function () {
|
|
376
|
-
this.statusBar = 'Daten löschen...';
|
|
377
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
378
|
-
};
|
|
379
|
-
Blade.prototype.setStatusBarDeleteDataCanceled = function () {
|
|
380
|
-
this.statusBar = 'Löschen abgebrochen.';
|
|
381
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
382
|
-
};
|
|
383
|
-
Blade.prototype.setStatusBarInfo = function (text) {
|
|
384
|
-
this.statusBar = text;
|
|
385
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
386
|
-
};
|
|
387
|
-
Blade.prototype.setStatusBarError = function (text) {
|
|
388
|
-
this.statusBar = text;
|
|
389
|
-
this.statusBarClass = 'apa-statusbar-error';
|
|
390
|
-
};
|
|
391
|
-
Blade.prototype.setStatusBarNoDataFound = function () {
|
|
392
|
-
this.statusBar = 'Keine Daten gefunden!';
|
|
393
|
-
this.statusBarClass = 'apa-statusbar-error';
|
|
394
|
-
};
|
|
395
|
-
Blade.prototype.setStatusBarException = function (exception) {
|
|
396
|
-
this.statusBar = angularportalazure.Exception.getOneLineMessage(exception);
|
|
397
|
-
this.statusBarClass = 'apa-statusbar-error';
|
|
398
|
-
};
|
|
399
|
-
// #endregion
|
|
400
392
|
// #region Commands
|
|
401
393
|
Blade.prototype.onCommandBrowse = function () {
|
|
402
394
|
throw new Error('[angularportalazure.Blade] \'onCommandBrowse\' is an abstract function. Define one in the derived class.');
|
|
@@ -1613,14 +1605,14 @@ var angularportalazure;
|
|
|
1613
1605
|
};
|
|
1614
1606
|
// TODO:2017-01-09/hp: [any] will be [Response] in angular2
|
|
1615
1607
|
Exception.prepareException = function (response) {
|
|
1616
|
-
console.log('angularportalazure.Exception.prepareException
|
|
1608
|
+
console.log('angularportalazure.Exception.prepareException');
|
|
1609
|
+
console.log(response.data);
|
|
1610
|
+
console.log(response.data.Data);
|
|
1617
1611
|
var exception = new angularportalazure.Exception();
|
|
1618
1612
|
if (response.headers === undefined) {
|
|
1619
|
-
|
|
1620
|
-
exception = angularportalazure.Exception.processDotNetException1(response);
|
|
1613
|
+
exception = angularportalazure.Exception.processExceptionData(response);
|
|
1621
1614
|
}
|
|
1622
1615
|
else {
|
|
1623
|
-
console.log('> Get information from [processDotNetException2.json()].');
|
|
1624
1616
|
exception = angularportalazure.Exception.processDotNetException2(response);
|
|
1625
1617
|
}
|
|
1626
1618
|
exception.convertResponse(response);
|
|
@@ -1632,7 +1624,7 @@ var angularportalazure;
|
|
|
1632
1624
|
console.log(exception);
|
|
1633
1625
|
return exception;
|
|
1634
1626
|
};
|
|
1635
|
-
Exception.
|
|
1627
|
+
Exception.processExceptionData = function (response) {
|
|
1636
1628
|
var exception = new angularportalazure.Exception();
|
|
1637
1629
|
// #region Convert data to Messages
|
|
1638
1630
|
exception.Messages = [];
|
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.298",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|