aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts
diff options
context:
space:
mode:
authorvempo <vitaliy.emporopulo@amdocs.com>2018-07-24 17:34:04 +0300
committervempo <vitaliy.emporopulo@amdocs.com>2018-07-25 11:39:10 +0300
commita52d50e788792a63e97a9176ab319d53db7a2853 (patch)
treeb1c2222cacf4b8192aea16d1e0315b1f005c5347 /sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts
parent3c2665debb400aef7f0ed9e235698d2ff9f859db (diff)
Replaced old implementation at root
Old project files and directories has been moved under 'deprecated-workflow-designer'. The old project is not built by the CI anymore, but can be still built manually. New modules/directories have been moved up and integrated with the CI system. Change-Id: I1528c792bcbcce9e50bfc294a1328a20e72c91cf Issue-ID: SDC-1559 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts')
-rw-r--r--sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts39
1 files changed, 0 insertions, 39 deletions
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts b/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts
deleted file mode 100644
index fcabe960..00000000
--- a/sdc-workflow-designer-ui/src/app/paletx/plx-datepicker/util/util.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-export function toInteger(value: any): number {
- return parseInt(`${value}`, 10);
-}
-
-export function toString(value: any): string {
- return (value !== undefined && value !== null) ? `${value}` : '';
-}
-
-export function getValueInRange(value: number, max: number, min = 0): number {
- return Math.max(Math.min(value, max), min);
-}
-
-export function isString(value: any): boolean {
- return typeof value === 'string';
-}
-
-export function isNumber(value: any): boolean {
- return !isNaN(toInteger(value));
-}
-
-export function isInteger(value: any): boolean {
- return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
-}
-
-export function isDefined(value: any): boolean {
- return value !== undefined && value !== null;
-}
-
-export function padNumber(value: number) {
- if (isNumber(value)) {
- return value > 9? `${value}`.slice(-2):'0' + `${value}`.slice(-2);
- } else {
- return '';
- }
-}
-
-export function regExpEscape(text) {
- return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
-}