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/dist/index.cjs CHANGED
@@ -1078,6 +1078,7 @@ var FORMATS$1 = {
1078
1078
  DATE: 'date',
1079
1079
  DATERANGE: 'DATERANGE',
1080
1080
  TIME: 'time',
1081
+ DATETIME: 'datetime',
1081
1082
  EMAIL: 'email',
1082
1083
  HTML: 'HTML',
1083
1084
  URL: 'URL',
@@ -2172,6 +2173,16 @@ var StringCellViewer = function StringCellViewer(_ref8) {
2172
2173
  day: 'second'
2173
2174
  });
2174
2175
  break;
2176
+ case FORMATS$1.DATETIME:
2177
+ text = new Date(text).toLocaleString(locale, {
2178
+ year: 'numeric',
2179
+ month: 'numeric',
2180
+ day: 'numeric',
2181
+ hour: 'numeric',
2182
+ minute: 'numeric',
2183
+ second: 'numeric'
2184
+ });
2185
+ break;
2175
2186
  }
2176
2187
  return /*#__PURE__*/React__default["default"].createElement("div", {
2177
2188
  className: "field-editor string-viewer " + className,