@trudb/tru-common-lib 0.0.301 → 0.0.302
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/esm2020/lib/services/tru-util.mjs +9 -5
- package/fesm2015/trudb-tru-common-lib.mjs +8 -4
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +8 -4
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/services/tru-util.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,6 @@ import * as i1$4 from '@angular/material/select';
|
|
|
24
24
|
import { MatSelectModule } from '@angular/material/select';
|
|
25
25
|
import * as i5 from '@angular/material/core';
|
|
26
26
|
import { MatOptionModule } from '@angular/material/core';
|
|
27
|
-
import moment$1 from 'moment';
|
|
28
27
|
import { MatButtonModule } from '@angular/material/button';
|
|
29
28
|
import { MatInputModule } from '@angular/material/input';
|
|
30
29
|
import * as i1$5 from '@angular/platform-browser';
|
|
@@ -1682,9 +1681,14 @@ class TruUtil {
|
|
|
1682
1681
|
}
|
|
1683
1682
|
return null;
|
|
1684
1683
|
};
|
|
1685
|
-
this.
|
|
1686
|
-
if (
|
|
1687
|
-
|
|
1684
|
+
this.isDate = (date) => {
|
|
1685
|
+
if (Object.prototype.toString.call(date) === '[object Date]') {
|
|
1686
|
+
if (isNaN(date.getTime())) {
|
|
1687
|
+
return false;
|
|
1688
|
+
}
|
|
1689
|
+
else {
|
|
1690
|
+
return true;
|
|
1691
|
+
}
|
|
1688
1692
|
}
|
|
1689
1693
|
else {
|
|
1690
1694
|
return false;
|