@ai-matrx/design-system 0.49.42 → 0.49.44

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.
@@ -51955,7 +51955,7 @@ function MatrxDataTableCore(coreProps) {
51955
51955
  ...visibleActionStrips.map((element) => Math.ceil(element.scrollWidth))
51956
51956
  );
51957
51957
  const actionsHeader = table?.querySelector("th[data-matrx-table-actions-column]");
51958
- const actionsLabel = actionsHeader?.querySelector("[data-matrx-table-actions-label]");
51958
+ const actionsLabel = actionsHeader?.querySelector("[data-matrx-table-actions-header]") ?? actionsHeader?.querySelector("[data-matrx-table-actions-label]");
51959
51959
  const headerPadding = actionsHeader ? getComputedStyle(actionsHeader) : void 0;
51960
51960
  const measuredLabelWidth = actionsLabel?.getBoundingClientRect().width ?? 0;
51961
51961
  const labelWidth = measuredLabelWidth > 0 ? Math.ceil(measuredLabelWidth + (Number.parseFloat(headerPadding?.paddingLeft ?? "0") || 0) + (Number.parseFloat(headerPadding?.paddingRight ?? "0") || 0)) : 0;
@@ -52057,7 +52057,7 @@ function MatrxDataTableCore(coreProps) {
52057
52057
  });
52058
52058
  table.style.setProperty("--matrx-resized-table-width", resizedWidth);
52059
52059
  setFixedTableGeometry(geometry);
52060
- }, [resolvedDensity, measureFixedTableGeometry, usesMeasuredFixedLayout]);
52060
+ }, [resolvedDensity, measureFixedTableGeometry, usesMeasuredFixedLayout, isLoading, data.length > 0]);
52061
52061
  const fixedLayoutActive = usesMeasuredFixedLayout && fixedTableGeometry !== null;
52062
52062
  const freezeWanted = visibleColumns.some((column) => column.frozen);
52063
52063
  const selectionColumnWidth = fixedTableGeometry?.selectionWidth ?? (selection && (freezeWanted || fitToWidth) ? SELECTION_COLUMN_PX : void 0);
@@ -56096,7 +56096,7 @@ function fixedUtilityWidth(width) {
56096
56096
  function normalizeColumnWidthsForColumns(widths, columns) {
56097
56097
  const byId = new Map(columns.map((column) => [columnId(column), column]));
56098
56098
  const normalized = normalizeColumnWidthMap(widths, new Set(byId.keys()));
56099
- return Object.fromEntries(
56099
+ const out = Object.fromEntries(
56100
56100
  Object.entries(normalized).map(([id, width]) => {
56101
56101
  const column = byId.get(id);
56102
56102
  const marker = column ? resolveColumnMarker(column) : void 0;
@@ -56107,6 +56107,13 @@ function normalizeColumnWidthsForColumns(widths, columns) {
56107
56107
  return [id, clampColumnWidth(width, bounds)];
56108
56108
  })
56109
56109
  );
56110
+ if (Object.keys(out).length > 0) {
56111
+ for (const [id, column] of byId) {
56112
+ const own = column.resizable === false ? pixelWidth(column.width) : void 0;
56113
+ if (own !== void 0) out[id] = own;
56114
+ }
56115
+ }
56116
+ return out;
56110
56117
  }
56111
56118
  function TableGroupHeaderRow({
56112
56119
  group,