ywana-core8 0.0.230 → 0.0.231

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
@@ -1043,6 +1043,7 @@ var TYPES = {
1043
1043
  var FORMATS = {
1044
1044
  NONE: '',
1045
1045
  DATE: 'date',
1046
+ TIME: 'time',
1046
1047
  EMAIL: 'email',
1047
1048
  HTML: 'HTML',
1048
1049
  URL: 'URL'
@@ -1629,10 +1630,23 @@ var StringCellViewer = function StringCellViewer(_ref7) {
1629
1630
  return o.value === value;
1630
1631
  }) : null;
1631
1632
  var text = option ? option.label : value;
1633
+ var locale = window.navigator.userLanguage || window.navigator.language;
1632
1634
 
1633
1635
  switch (format) {
1634
1636
  case FORMATS.DATE:
1635
- text = new Date(text).toLocaleString();
1637
+ text = new Date(text).toLocaleString(locale, {
1638
+ year: 'numeric',
1639
+ month: 'numeric',
1640
+ day: 'numeric'
1641
+ });
1642
+ break;
1643
+
1644
+ case FORMATS.TIME:
1645
+ text = new Date(text).toLocaleString(locale, {
1646
+ year: 'hour',
1647
+ month: 'minute',
1648
+ day: 'second'
1649
+ });
1636
1650
  break;
1637
1651
  }
1638
1652