@truenas/ui-components 0.8.11 → 0.8.13
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/package.json
CHANGED
|
@@ -11591,6 +11591,11 @@ export declare class TnTableComponent<T = unknown> implements OnInit {
|
|
|
11591
11591
|
* <!-- <tr data-testid="row-jane-doe"> -->
|
|
11592
11592
|
* ```
|
|
11593
11593
|
*
|
|
11594
|
+
* The controls the table draws for the row are derived from the same base, in both layouts:
|
|
11595
|
+
* `checkbox-select-<base>` on its selection checkbox and `button-expand-<base>` on its expand
|
|
11596
|
+
* chevron or Details toggle. The select-all is `checkbox-all-rows` with or without this input —
|
|
11597
|
+
* deliberately outside `checkbox-select-*`, so no row base (not even `all`) can produce it.
|
|
11598
|
+
*
|
|
11594
11599
|
* Cells are not covered by this: a suite that has to read one cell of a row still needs an id
|
|
11595
11600
|
* on the element that cell renders. Tagging the row is what makes the row itself reachable —
|
|
11596
11601
|
* which is the part a consumer cannot add from the outside.
|
|
@@ -11881,6 +11886,18 @@ export declare class TnTableComponent<T = unknown> implements OnInit {
|
|
|
11881
11886
|
* identical between passes, and correct after a reload hands back new row objects.
|
|
11882
11887
|
*/
|
|
11883
11888
|
protected readonly rowTestIds: Signal<TnTestIdValue[]>;
|
|
11889
|
+
/**
|
|
11890
|
+
* Base for each row's selection checkbox, `['select', ...row base]` — so a row tagged
|
|
11891
|
+
* `row-job-42` gets `checkbox-select-job-42`. Role leads, as in `tn-dialog-shell`'s chrome.
|
|
11892
|
+
*
|
|
11893
|
+
* The same array serves table and card mode, so a narrow viewport does not rename a row's
|
|
11894
|
+
* controls any more than it renames the row. Without a usable row base the entry is
|
|
11895
|
+
* `undefined` rather than `['select']`, which would give every row the same `checkbox-select`.
|
|
11896
|
+
*/
|
|
11897
|
+
protected readonly rowSelectTestIds: Signal<TnTestIdValue[]>;
|
|
11898
|
+
/** Base for each row's expand control — the table-mode chevron and the card's Details toggle. */
|
|
11899
|
+
protected readonly rowExpandTestIds: Signal<TnTestIdValue[]>;
|
|
11900
|
+
private rowControlTestIds;
|
|
11884
11901
|
effectiveDisplayedColumns: Signal<string[]>;
|
|
11885
11902
|
/**
|
|
11886
11903
|
* Every column the table actually renders, including the trailing actions column, which
|