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.cjs.js CHANGED
@@ -10804,8 +10804,8 @@ function TableInner({
10804
10804
  const min = String(dateObj.getMinutes()).padStart(2, "0");
10805
10805
  return `${d}-${m}-${y} ${h}:${min}`;
10806
10806
  }
10807
- // Fallback: use toLocaleString with 24-hour option
10808
- return dateObj.toLocaleString(undefined, {
10807
+ // Fallback: use Slovenian locale with 24-hour option
10808
+ return dateObj.toLocaleString("sl-SI", {
10809
10809
  hour12: false
10810
10810
  });
10811
10811
  }
@@ -10817,7 +10817,8 @@ function TableInner({
10817
10817
  month: "2-digit",
10818
10818
  year: "numeric",
10819
10819
  hour: "2-digit",
10820
- minute: "2-digit"
10820
+ minute: "2-digit",
10821
+ hour12: false
10821
10822
  }) : "-";
10822
10823
  }
10823
10824
  if (isUndefinedLike) {
@@ -11270,6 +11271,9 @@ function TableInner({
11270
11271
  const rowHeightGetter = ({
11271
11272
  index
11272
11273
  }) => tableDataFlat[index]?.type === "group" ? groupHeaderHeight : rowHeight;
11274
+ const tableHeight = tableDataFlat.reduce((height, _, index) => height + rowHeightGetter({
11275
+ index
11276
+ }), 0);
11273
11277
 
11274
11278
  // Table-level drop target only when using external DnD context
11275
11279
  const tableContainerRef = React.useRef(null);
@@ -11367,7 +11371,10 @@ function TableInner({
11367
11371
  title: translate("action")
11368
11372
  }, "\u2699\uFE0F") : translate("action")))), /*#__PURE__*/React.createElement("div", {
11369
11373
  className: "main-table",
11370
- ref: listRef
11374
+ ref: listRef,
11375
+ style: tableDataFlat.length > 0 ? {
11376
+ height: tableHeight
11377
+ } : undefined
11371
11378
  }, tableDataFlat.length === 0 && !loadingTimeoutReached ? /*#__PURE__*/React.createElement(DotsLoading.default, null) : tableDataFlat.length === 0 && loadingTimeoutReached ? /*#__PURE__*/React.createElement("div", {
11372
11379
  className: "table-empty",
11373
11380
  style: {