@cqa-lib/cqa-ui 1.1.513 → 1.1.514
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/esm2020/lib/table/dynamic-table/dynamic-table.component.mjs +33 -5
- package/fesm2015/cqa-lib-cqa-ui.mjs +32 -4
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +32 -4
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/table/dynamic-table/dynamic-table.component.d.ts +11 -0
- package/package.json +1 -1
|
@@ -20,6 +20,8 @@ export interface DynamicTableColumn {
|
|
|
20
20
|
isShow?: boolean;
|
|
21
21
|
weight?: number;
|
|
22
22
|
fixedPx?: number;
|
|
23
|
+
/** Minimum width in px — applied to both the header cell and every body cell of this column. */
|
|
24
|
+
minWidth?: number;
|
|
23
25
|
responsive?: {
|
|
24
26
|
xs?: boolean;
|
|
25
27
|
sm?: boolean;
|
|
@@ -66,6 +68,15 @@ export declare class DynamicTableComponent implements OnDestroy, OnChanges {
|
|
|
66
68
|
computedData: any[];
|
|
67
69
|
computedGridTemplate: string;
|
|
68
70
|
computedColumnWidths: string[];
|
|
71
|
+
/**
|
|
72
|
+
* Hard floor on the `<table>` width = sum of every visible column's minimum (fixed
|
|
73
|
+
* widths + dynamic columns' `minWidth`). With `table-layout: fixed; width: 100%;` set
|
|
74
|
+
* by consumers, `<col>` widths become advisory once the container is narrower than
|
|
75
|
+
* the column-width sum — the browser silently shrinks them. Pinning `min-width` on
|
|
76
|
+
* the table itself prevents that compaction; the consumer's `overflow-x: auto`
|
|
77
|
+
* wrapper then scrolls horizontally instead of squishing columns to zero width.
|
|
78
|
+
*/
|
|
79
|
+
computedTableMinWidth: number;
|
|
69
80
|
private htmlCache;
|
|
70
81
|
constructor(sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
|
|
71
82
|
ngOnChanges(changes: SimpleChanges): void;
|