@ardimedia/angular-portal-azure 0.2.295 → 0.2.297
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 -13
- package/apn.js +55 -48
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -23,14 +23,28 @@ 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 */
|
|
29
31
|
ngOnDestroy(): void;
|
|
30
32
|
private removeWindowResizeListener;
|
|
31
33
|
setupWindowResizeListener(callback: () => void): void;
|
|
34
|
+
isNumberUndefinedNullOr0(value: number): boolean;
|
|
32
35
|
isStringNullOrEmpty(value: string): boolean;
|
|
33
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;
|
|
34
48
|
}
|
|
35
49
|
}
|
|
36
50
|
declare namespace angularportalazure {
|
|
@@ -60,8 +74,6 @@ declare namespace angularportalazure {
|
|
|
60
74
|
'width': string;
|
|
61
75
|
};
|
|
62
76
|
isInnerHtml: boolean;
|
|
63
|
-
statusBar: string;
|
|
64
|
-
statusBarClass: string;
|
|
65
77
|
formblade: any;
|
|
66
78
|
private _path;
|
|
67
79
|
path: string;
|
|
@@ -135,17 +147,6 @@ declare namespace angularportalazure {
|
|
|
135
147
|
close(): void;
|
|
136
148
|
/** Override */
|
|
137
149
|
onClose(): boolean;
|
|
138
|
-
clearStatusBar(): void;
|
|
139
|
-
setStatusBar(text?: string, style?: string): void;
|
|
140
|
-
setStatusBarCopyData(): void;
|
|
141
|
-
setStatusBarLoadData(): void;
|
|
142
|
-
setStatusBarSaveData(): void;
|
|
143
|
-
setStatusBarDeleteData(): void;
|
|
144
|
-
setStatusBarDeleteDataCanceled(): void;
|
|
145
|
-
setStatusBarInfo(text: string): void;
|
|
146
|
-
setStatusBarError(text: string): void;
|
|
147
|
-
setStatusBarNoDataFound(): void;
|
|
148
|
-
setStatusBarException(exception: angularportalazure.Exception): void;
|
|
149
150
|
onCommandBrowse(): void;
|
|
150
151
|
onCommandCancel(): void;
|
|
151
152
|
onCommandCopy(): void;
|
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
|
}
|
|
@@ -120,6 +122,14 @@ var angularportalazure;
|
|
|
120
122
|
id = setTimeout(function () { callback(); }, 50);
|
|
121
123
|
});
|
|
122
124
|
};
|
|
125
|
+
UserControlBase.prototype.isNumberUndefinedNullOr0 = function (value) {
|
|
126
|
+
if (value && value > 0) {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
};
|
|
123
133
|
UserControlBase.prototype.isStringNullOrEmpty = function (value) {
|
|
124
134
|
if (value && value.replace(' ', '').length > 0) {
|
|
125
135
|
return false;
|
|
@@ -132,6 +142,51 @@ var angularportalazure;
|
|
|
132
142
|
if (length === void 0) { length = 20; }
|
|
133
143
|
return 'a' + Math.round((Math.pow(36, length + 1) - Math.random() * Math.pow(36, length))).toString(36).replace('.', '').replace('(e+', '').replace(')', '').slice(1);
|
|
134
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
|
+
};
|
|
135
190
|
return UserControlBase;
|
|
136
191
|
}());
|
|
137
192
|
angularportalazure.UserControlBase = UserControlBase;
|
|
@@ -175,8 +230,6 @@ var angularportalazure;
|
|
|
175
230
|
_this.width = { 'width': '0' };
|
|
176
231
|
_this.widthStackLayout = { 'width': '50px' };
|
|
177
232
|
_this.isInnerHtml = true;
|
|
178
|
-
_this.statusBar = '';
|
|
179
|
-
_this.statusBarClass = '';
|
|
180
233
|
// #endregion
|
|
181
234
|
// #endregion
|
|
182
235
|
// #region Commands
|
|
@@ -336,52 +389,6 @@ var angularportalazure;
|
|
|
336
389
|
Blade.prototype.onClose = function () {
|
|
337
390
|
return true;
|
|
338
391
|
};
|
|
339
|
-
// #region Set StatusBar
|
|
340
|
-
Blade.prototype.clearStatusBar = function () {
|
|
341
|
-
this.statusBar = '';
|
|
342
|
-
this.statusBarClass = '';
|
|
343
|
-
};
|
|
344
|
-
Blade.prototype.setStatusBar = function (text, style) {
|
|
345
|
-
this.statusBar = text ? text : '';
|
|
346
|
-
this.statusBarClass = style ? style : '';
|
|
347
|
-
};
|
|
348
|
-
Blade.prototype.setStatusBarCopyData = function () {
|
|
349
|
-
this.statusBar = 'Daten kopieren...';
|
|
350
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
351
|
-
};
|
|
352
|
-
Blade.prototype.setStatusBarLoadData = function () {
|
|
353
|
-
this.statusBar = 'Daten laden...';
|
|
354
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
355
|
-
};
|
|
356
|
-
Blade.prototype.setStatusBarSaveData = function () {
|
|
357
|
-
this.statusBar = 'Daten speichern...';
|
|
358
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
359
|
-
};
|
|
360
|
-
Blade.prototype.setStatusBarDeleteData = function () {
|
|
361
|
-
this.statusBar = 'Daten löschen...';
|
|
362
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
363
|
-
};
|
|
364
|
-
Blade.prototype.setStatusBarDeleteDataCanceled = function () {
|
|
365
|
-
this.statusBar = 'Löschen abgebrochen.';
|
|
366
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
367
|
-
};
|
|
368
|
-
Blade.prototype.setStatusBarInfo = function (text) {
|
|
369
|
-
this.statusBar = text;
|
|
370
|
-
this.statusBarClass = 'apa-statusbar-info';
|
|
371
|
-
};
|
|
372
|
-
Blade.prototype.setStatusBarError = function (text) {
|
|
373
|
-
this.statusBar = text;
|
|
374
|
-
this.statusBarClass = 'apa-statusbar-error';
|
|
375
|
-
};
|
|
376
|
-
Blade.prototype.setStatusBarNoDataFound = function () {
|
|
377
|
-
this.statusBar = 'Keine Daten gefunden!';
|
|
378
|
-
this.statusBarClass = 'apa-statusbar-error';
|
|
379
|
-
};
|
|
380
|
-
Blade.prototype.setStatusBarException = function (exception) {
|
|
381
|
-
this.statusBar = angularportalazure.Exception.getOneLineMessage(exception);
|
|
382
|
-
this.statusBarClass = 'apa-statusbar-error';
|
|
383
|
-
};
|
|
384
|
-
// #endregion
|
|
385
392
|
// #region Commands
|
|
386
393
|
Blade.prototype.onCommandBrowse = function () {
|
|
387
394
|
throw new Error('[angularportalazure.Blade] \'onCommandBrowse\' is an abstract function. Define one in the derived class.');
|
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.297",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|