@truenas/ui-components 0.4.9 → 0.4.11

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truenas/ui-components",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -6419,16 +6419,26 @@ declare class TnTableComponent<T = unknown> implements OnInit {
6419
6419
  * Cells wrap regardless of this (that is the table's default), so reach for it only when equal
6420
6420
  * columns are actually wanted: it gives up the `auto` layout's content-proportional sizing,
6421
6421
  * which a table with one long text column among short ones usually wants to keep.
6422
+ *
6423
+ * Changes the layout algorithm only — the table still shrinks with its container, with no floor
6424
+ * unless {@link minColumnWidth} or {@link minWidth} sets one.
6422
6425
  */
6423
6426
  fixedLayout: _angular_core.InputSignal<boolean>;
6424
6427
  /**
6425
6428
  * Smallest width a column is allowed to shrink to before the host scrolls horizontally instead.
6426
- * Any CSS length.
6429
+ * Any CSS length. Empty (the default) applies no floor.
6430
+ *
6431
+ * `fixedLayout` makes the table fit its container exactly, so past a certain width the columns
6432
+ * keep shrinking and wrap every cell to a couple of characters per line: technically visible,
6433
+ * unreadable, and never scrollable. Set this to scroll instead once a column would go below it.
6434
+ * The floor is derived as this times the column count, so it scales with the table rather than
6435
+ * needing a hand-picked number per page.
6427
6436
  *
6428
- * `fixedLayout` makes the table fit its container exactly — so without a floor a narrow viewport
6429
- * just keeps shrinking the columns, wrapping every cell to a couple of characters per line:
6430
- * technically visible, unreadable, and never scrollable. The floor is derived as this times the
6431
- * column count, so it scales with the table rather than needing a hand-picked number per page.
6437
+ * Opt-in rather than on by default, because a derived floor cannot know the table's container: a
6438
+ * full-width page table has room for one, while the same table in a dashboard card or beside a
6439
+ * details pane would just scroll at every ordinary window size. Only the consumer knows which it
6440
+ * is — reach for it when the table can actually get narrow enough to matter, typically a
6441
+ * full-width table on a phone.
6432
6442
  *
6433
6443
  * Only applies with `fixedLayout`. Without it the table lays out `auto`, sizing to its content
6434
6444
  * and overflowing the host — which scrolls on its own.
@@ -6439,7 +6449,7 @@ declare class TnTableComponent<T = unknown> implements OnInit {
6439
6449
  * for this only when a specific table needs a floor its column count doesn't imply.
6440
6450
  */
6441
6451
  minWidth: _angular_core.InputSignal<string>;
6442
- /** The floor actually applied to the table — explicit if given, else derived. */
6452
+ /** The floor actually applied to the table — explicit if given, else derived, else none. */
6443
6453
  protected readonly resolvedMinWidth: _angular_core.Signal<string | null>;
6444
6454
  sortChange: _angular_core.OutputEmitterRef<TnSortEvent>;
6445
6455
  selectionChange: _angular_core.OutputEmitterRef<T[]>;