ywana-core8 0.0.861 → 0.0.863

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.861",
3
+ "version": "0.0.863",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -18,6 +18,7 @@ export const FORMATS = {
18
18
  DATE: 'date',
19
19
  DATERANGE: 'DATERANGE',
20
20
  TIME: 'time',
21
+ DATETIME: 'datetime',
21
22
  EMAIL: 'email',
22
23
  HTML: 'HTML',
23
24
  URL: 'URL',
package/src/html/table.js CHANGED
@@ -357,6 +357,9 @@ const StringCellViewer = ({ id, value, format, options, action }) => {
357
357
  case FORMATS.TIME:
358
358
  text = new Date(text).toLocaleString(locale, { year: 'hour', month: 'minute', day: 'second' });
359
359
  break;
360
+ case FORMATS.DATETIME:
361
+ text = new Date(text).toLocaleString(locale, { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric' });
362
+ break;
360
363
  }
361
364
  return (<div className={`field-editor string-viewer ${className}`} title={text}>{text}</div>)
362
365
  }