trotl-table 1.0.84 → 1.0.86

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/Table.esm.js CHANGED
@@ -10782,8 +10782,8 @@ function TableInner({
10782
10782
  const min = String(dateObj.getMinutes()).padStart(2, "0");
10783
10783
  return `${d}-${m}-${y} ${h}:${min}`;
10784
10784
  }
10785
- // Fallback: use toLocaleString with 24-hour option
10786
- return dateObj.toLocaleString(undefined, {
10785
+ // Fallback: use Slovenian locale with 24-hour option
10786
+ return dateObj.toLocaleString("sl-SI", {
10787
10787
  hour12: false
10788
10788
  });
10789
10789
  }
@@ -10795,7 +10795,8 @@ function TableInner({
10795
10795
  month: "2-digit",
10796
10796
  year: "numeric",
10797
10797
  hour: "2-digit",
10798
- minute: "2-digit"
10798
+ minute: "2-digit",
10799
+ hour12: false
10799
10800
  }) : "-";
10800
10801
  }
10801
10802
  if (isUndefinedLike) {
@@ -11248,6 +11249,9 @@ function TableInner({
11248
11249
  const rowHeightGetter = ({
11249
11250
  index
11250
11251
  }) => tableDataFlat[index]?.type === "group" ? groupHeaderHeight : rowHeight;
11252
+ const tableHeight = tableDataFlat.reduce((height, _, index) => height + rowHeightGetter({
11253
+ index
11254
+ }), 0);
11251
11255
 
11252
11256
  // Table-level drop target only when using external DnD context
11253
11257
  const tableContainerRef = useRef(null);
@@ -11345,7 +11349,10 @@ function TableInner({
11345
11349
  title: translate("action")
11346
11350
  }, "\u2699\uFE0F") : translate("action")))), /*#__PURE__*/React__default.createElement("div", {
11347
11351
  className: "main-table",
11348
- ref: listRef
11352
+ ref: listRef,
11353
+ style: tableDataFlat.length > 0 ? {
11354
+ height: tableHeight
11355
+ } : undefined
11349
11356
  }, tableDataFlat.length === 0 && !loadingTimeoutReached ? /*#__PURE__*/React__default.createElement(DotsLoading, null) : tableDataFlat.length === 0 && loadingTimeoutReached ? /*#__PURE__*/React__default.createElement("div", {
11350
11357
  className: "table-empty",
11351
11358
  style: {