ywana-core8 0.1.73 → 0.1.74
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/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +12 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +12 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +5 -4
package/dist/index.modern.js
CHANGED
@@ -1993,10 +1993,6 @@ var DataTable = function DataTable(props) {
|
|
1993
1993
|
a = Number(a);
|
1994
1994
|
b = Number(b);
|
1995
1995
|
}
|
1996
|
-
if (a === b) {
|
1997
|
-
// If the values are the same, do not switch positions.
|
1998
|
-
return 0;
|
1999
|
-
}
|
2000
1996
|
|
2001
1997
|
// If b > a, multiply by -1 to get the reverse direction.
|
2002
1998
|
return a > b ? direction : -1 * direction;
|
@@ -2360,6 +2356,18 @@ var DataTableCell = function DataTableCell(_ref6) {
|
|
2360
2356
|
return /*#__PURE__*/React.createElement("img", {
|
2361
2357
|
src: cell
|
2362
2358
|
});
|
2359
|
+
case "DATETIME":
|
2360
|
+
var locale = window.navigator.userLanguage || window.navigator.language;
|
2361
|
+
var date = new Date(cell);
|
2362
|
+
date.setMinutes(date.getMinutes() + date.getTimezoneOffset() + 1);
|
2363
|
+
return /*#__PURE__*/React.createElement("span", null, date.toLocaleString(locale, {
|
2364
|
+
year: 'numeric',
|
2365
|
+
month: 'numeric',
|
2366
|
+
day: 'numeric',
|
2367
|
+
hour: 'numeric',
|
2368
|
+
minute: 'numeric',
|
2369
|
+
second: 'numeric'
|
2370
|
+
}));
|
2363
2371
|
default:
|
2364
2372
|
return cell;
|
2365
2373
|
}
|