@ai-matrx/design-system 0.49.43 → 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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.49.44
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/design-system/v0.49.43..npm/design-system/v0.49.44 -- apps/shared/design-system`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.49.43
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
@@ -52067,7 +52067,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
52067
52067
|
...visibleActionStrips.map((element) => Math.ceil(element.scrollWidth))
|
|
52068
52068
|
);
|
|
52069
52069
|
const actionsHeader = table?.querySelector("th[data-matrx-table-actions-column]");
|
|
52070
|
-
const actionsLabel = actionsHeader?.querySelector("[data-matrx-table-actions-label]");
|
|
52070
|
+
const actionsLabel = actionsHeader?.querySelector("[data-matrx-table-actions-header]") ?? actionsHeader?.querySelector("[data-matrx-table-actions-label]");
|
|
52071
52071
|
const headerPadding = actionsHeader ? getComputedStyle(actionsHeader) : void 0;
|
|
52072
52072
|
const measuredLabelWidth = actionsLabel?.getBoundingClientRect().width ?? 0;
|
|
52073
52073
|
const labelWidth = measuredLabelWidth > 0 ? Math.ceil(measuredLabelWidth + (Number.parseFloat(headerPadding?.paddingLeft ?? "0") || 0) + (Number.parseFloat(headerPadding?.paddingRight ?? "0") || 0)) : 0;
|
|
@@ -52169,7 +52169,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
52169
52169
|
});
|
|
52170
52170
|
table.style.setProperty("--matrx-resized-table-width", resizedWidth);
|
|
52171
52171
|
setFixedTableGeometry(geometry);
|
|
52172
|
-
}, [resolvedDensity, measureFixedTableGeometry, usesMeasuredFixedLayout]);
|
|
52172
|
+
}, [resolvedDensity, measureFixedTableGeometry, usesMeasuredFixedLayout, isLoading, data.length > 0]);
|
|
52173
52173
|
const fixedLayoutActive = usesMeasuredFixedLayout && fixedTableGeometry !== null;
|
|
52174
52174
|
const freezeWanted = visibleColumns.some((column) => column.frozen);
|
|
52175
52175
|
const selectionColumnWidth = fixedTableGeometry?.selectionWidth ?? (selection && (freezeWanted || fitToWidth) ? SELECTION_COLUMN_PX : void 0);
|
|
@@ -56208,7 +56208,7 @@ function fixedUtilityWidth(width) {
|
|
|
56208
56208
|
function normalizeColumnWidthsForColumns(widths, columns) {
|
|
56209
56209
|
const byId = new Map(columns.map((column) => [columnId(column), column]));
|
|
56210
56210
|
const normalized = normalizeColumnWidthMap(widths, new Set(byId.keys()));
|
|
56211
|
-
|
|
56211
|
+
const out = Object.fromEntries(
|
|
56212
56212
|
Object.entries(normalized).map(([id, width]) => {
|
|
56213
56213
|
const column = byId.get(id);
|
|
56214
56214
|
const marker = column ? resolveColumnMarker(column) : void 0;
|
|
@@ -56219,6 +56219,13 @@ function normalizeColumnWidthsForColumns(widths, columns) {
|
|
|
56219
56219
|
return [id, clampColumnWidth(width, bounds)];
|
|
56220
56220
|
})
|
|
56221
56221
|
);
|
|
56222
|
+
if (Object.keys(out).length > 0) {
|
|
56223
|
+
for (const [id, column] of byId) {
|
|
56224
|
+
const own = column.resizable === false ? pixelWidth(column.width) : void 0;
|
|
56225
|
+
if (own !== void 0) out[id] = own;
|
|
56226
|
+
}
|
|
56227
|
+
}
|
|
56228
|
+
return out;
|
|
56222
56229
|
}
|
|
56223
56230
|
function TableGroupHeaderRow({
|
|
56224
56231
|
group,
|