@mmlogic/components 0.5.9 → 0.5.10
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/cjs/mrd-boolean-field_25.cjs.entry.js +41 -7
- package/dist/collection/components/table/mrd-table/mrd-table.js +41 -7
- package/dist/components/mrd-table2.js +1 -1
- package/dist/esm/mrd-boolean-field_25.entry.js +41 -7
- package/dist/mosterdcomponents/mosterdcomponents.esm.js +1 -1
- package/dist/mosterdcomponents/{p-986a68d6.entry.js → p-7da6790e.entry.js} +2 -2
- package/dist/types/components/table/mrd-table/mrd-table.d.ts +13 -0
- package/package.json +1 -1
|
@@ -162,6 +162,19 @@ export declare class MrdTable {
|
|
|
162
162
|
componentDidRender(): void;
|
|
163
163
|
/** Current rendered header widths, or null when they can't be trusted (header not laid out yet). */
|
|
164
164
|
private measureColWidths;
|
|
165
|
+
/** Width one cell needs to show its content in full, borders included.
|
|
166
|
+
* Read from scrollWidth rather than the laid-out box: cells clip with `overflow: hidden`,
|
|
167
|
+
* so a squeezed cell reports the width it *was given*, not the width it needs. */
|
|
168
|
+
private neededWidth;
|
|
169
|
+
/** Width each column needs for its header and its rendered page-0 cells — what the columns
|
|
170
|
+
* are locked to, so they never end up narrower than their content.
|
|
171
|
+
*
|
|
172
|
+
* Deliberately not the laid-out widths: with many columns the browser squeezes them to fit
|
|
173
|
+
* the container instead of overflowing (the cells clip, so they no longer resist), which
|
|
174
|
+
* cost the horizontal scrollbar. Locking the needed widths makes the summed table width
|
|
175
|
+
* exceed the container again, and `.mrd-table__scroll` scrolls. Capped per column at
|
|
176
|
+
* MAX_AUTOFIT_WIDTH so one outlier value can't blow up the layout — same cap as auto-fit. */
|
|
177
|
+
private measureContentWidths;
|
|
165
178
|
/** Re-reads the rendered header widths into colWidths so a drag starts from what is
|
|
166
179
|
* actually on screen — and locks the columns if they weren't locked yet.
|
|
167
180
|
*
|