namirasoft-site-react 1.3.398 → 1.3.400
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/dist/components/NSTable.module.css +1 -1
- package/dist/formatter/DateFormatter.js +1 -1
- package/dist/formatter/DateFormatter.js.map +1 -1
- package/dist/formatter/DateTimeFormatter.d.ts +0 -3
- package/dist/formatter/DateTimeFormatter.js +7 -10
- package/dist/formatter/DateTimeFormatter.js.map +1 -1
- package/dist/formatter/TimeFormatter.js +1 -1
- package/dist/formatter/TimeFormatter.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NSTable.module.css +1 -1
- package/src/formatter/DateFormatter.ts +1 -2
- package/src/formatter/DateTimeFormatter.ts +8 -13
- package/src/formatter/TimeFormatter.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateFormatter.js","sourceRoot":"","sources":["../../src/formatter/DateFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,OAAO,aAAc,SAAQ,mBAAmB;IAEzC,MAAM,CAAC,KAAU;QAEtB,IACA;YACI,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"DateFormatter.js","sourceRoot":"","sources":["../../src/formatter/DateFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,OAAO,aAAc,SAAQ,mBAAmB;IAEzC,MAAM,CAAC,KAAU;QAEtB,IACA;YACI,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC;SAC9B;QAAC,OAAO,CAAC,EACV;SACC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { BaseColumnFormatter } from "./BaseColumnFormatter";
|
|
2
|
-
import { DateFormatter } from "./DateFormatter";
|
|
3
|
-
import { TimeFormatter } from "./TimeFormatter";
|
|
4
2
|
export class DateTimeFormatter extends BaseColumnFormatter {
|
|
5
|
-
constructor() {
|
|
6
|
-
super();
|
|
7
|
-
this.date = new DateFormatter();
|
|
8
|
-
this.time = new TimeFormatter();
|
|
9
|
-
}
|
|
10
3
|
format(value) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
try {
|
|
5
|
+
let date = new Date(value);
|
|
6
|
+
return date.toString();
|
|
7
|
+
}
|
|
8
|
+
catch (e) {
|
|
9
|
+
}
|
|
10
|
+
return value;
|
|
14
11
|
}
|
|
15
12
|
}
|
|
16
13
|
//# sourceMappingURL=DateTimeFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeFormatter.js","sourceRoot":"","sources":["../../src/formatter/DateTimeFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"DateTimeFormatter.js","sourceRoot":"","sources":["../../src/formatter/DateTimeFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,OAAO,iBAAkB,SAAQ,mBAAmB;IAE7C,MAAM,CAAC,KAAU;QAEtB,IACA;YACI,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;SAC1B;QAAC,OAAO,CAAC,EACV;SACC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeFormatter.js","sourceRoot":"","sources":["../../src/formatter/TimeFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,OAAO,aAAc,SAAQ,mBAAmB;IAEzC,MAAM,CAAC,KAAU;QAEtB,IACA;YACI,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"TimeFormatter.js","sourceRoot":"","sources":["../../src/formatter/TimeFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,OAAO,aAAc,SAAQ,mBAAmB;IAEzC,MAAM,CAAC,KAAU;QAEtB,IACA;YACI,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC;SAC9B;QAAC,OAAO,CAAC,EACV;SAEC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
11
|
+
"version": "1.3.400",
|
|
12
12
|
"author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh, Mehrab Bahramian",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { BaseColumnFormatter } from "./BaseColumnFormatter";
|
|
2
|
-
import { DateFormatter } from "./DateFormatter";
|
|
3
|
-
import { TimeFormatter } from "./TimeFormatter";
|
|
4
2
|
|
|
5
3
|
export class DateTimeFormatter extends BaseColumnFormatter
|
|
6
4
|
{
|
|
7
|
-
private date: DateFormatter;
|
|
8
|
-
private time: TimeFormatter;
|
|
9
|
-
constructor()
|
|
10
|
-
{
|
|
11
|
-
super();
|
|
12
|
-
this.date = new DateFormatter();
|
|
13
|
-
this.time = new TimeFormatter();
|
|
14
|
-
}
|
|
15
5
|
override format(value: any): any
|
|
16
6
|
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
try
|
|
8
|
+
{
|
|
9
|
+
let date = new Date(value);
|
|
10
|
+
return date.toString();
|
|
11
|
+
} catch (e)
|
|
12
|
+
{
|
|
13
|
+
}
|
|
14
|
+
return value;
|
|
20
15
|
}
|
|
21
16
|
}
|