ywana-core8 0.1.73 → 0.1.75

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
@@ -1622,7 +1622,7 @@ var DropDown = function DropDown(props) {
1622
1622
  size: "small"
1623
1623
  })) : props.label;
1624
1624
  return /*#__PURE__*/React__default["default"].createElement("div", {
1625
- className: "dropdown " + className
1625
+ className: "dropdown " + className + " " + id
1626
1626
  }, /*#__PURE__*/React__default["default"].createElement(TextField, _extends({}, props, {
1627
1627
  label: title,
1628
1628
  onClick: onFocus,
@@ -2002,10 +2002,6 @@ var DataTable = function DataTable(props) {
2002
2002
  a = Number(a);
2003
2003
  b = Number(b);
2004
2004
  }
2005
- if (a === b) {
2006
- // If the values are the same, do not switch positions.
2007
- return 0;
2008
- }
2009
2005
 
2010
2006
  // If b > a, multiply by -1 to get the reverse direction.
2011
2007
  return a > b ? direction : -1 * direction;
@@ -2369,6 +2365,18 @@ var DataTableCell = function DataTableCell(_ref6) {
2369
2365
  return /*#__PURE__*/React__default["default"].createElement("img", {
2370
2366
  src: cell
2371
2367
  });
2368
+ case "DATETIME":
2369
+ var locale = window.navigator.userLanguage || window.navigator.language;
2370
+ var date = new Date(cell);
2371
+ date.setMinutes(date.getMinutes() + date.getTimezoneOffset() + 1);
2372
+ return /*#__PURE__*/React__default["default"].createElement("span", null, date.toLocaleString(locale, {
2373
+ year: 'numeric',
2374
+ month: 'numeric',
2375
+ day: 'numeric',
2376
+ hour: 'numeric',
2377
+ minute: 'numeric',
2378
+ second: 'numeric'
2379
+ }));
2372
2380
  default:
2373
2381
  return cell;
2374
2382
  }