@ardimedia/angular-portal-azure 0.2.222 → 0.2.223
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 +2 -1
- package/apn.js +5 -1
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -30,7 +30,8 @@ declare namespace angularportalazure {
|
|
|
30
30
|
ngOnDestroy(): void;
|
|
31
31
|
private removeWindowResizeListener();
|
|
32
32
|
setupWindowResizeListener(callback: () => void): void;
|
|
33
|
-
|
|
33
|
+
isStringNullOrEmpty(value: string): boolean;
|
|
34
|
+
getRandomString(length?: number): string;
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
declare namespace angularportalazure {
|
package/apn.js
CHANGED
|
@@ -121,7 +121,7 @@ var angularportalazure;
|
|
|
121
121
|
id = setTimeout(function () { callback(); }, 50);
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
-
UserControlBase.prototype.
|
|
124
|
+
UserControlBase.prototype.isStringNullOrEmpty = function (value) {
|
|
125
125
|
if (value && value.replace(' ', '').length > 0) {
|
|
126
126
|
return false;
|
|
127
127
|
}
|
|
@@ -129,6 +129,10 @@ var angularportalazure;
|
|
|
129
129
|
return true;
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
|
+
UserControlBase.prototype.getRandomString = function (length) {
|
|
133
|
+
if (length === void 0) { length = 20; }
|
|
134
|
+
return Math.round((Math.pow(36, length + 1) - Math.random() * Math.pow(36, length))).toString(36).slice(1);
|
|
135
|
+
};
|
|
132
136
|
return UserControlBase;
|
|
133
137
|
}());
|
|
134
138
|
angularportalazure.UserControlBase = UserControlBase;
|
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.223",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|