@truenas/ui-components 0.3.25 → 0.3.26

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.3.25",
3
+ "version": "0.3.26",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -6572,7 +6572,12 @@ declare class TnNestedTreeNodeComponent<T, K = T> extends CdkNestedTreeNode<T, K
6572
6572
  * defaults to the previous hardcoded value.
6573
6573
  */
6574
6574
  readonly toggleAriaLabel: _angular_core.InputSignal<string>;
6575
- /** Semantic test-id base applied to the built-in toggle button (`button-` prefixed). */
6575
+ /**
6576
+ * Semantic test-id base applied to the built-in toggle button (`button-`
6577
+ * prefixed). When unset, derives from the node's own `testId` — a row with
6578
+ * `[testId]="['vdev', guid]"` gets `button-toggle-vdev-<guid>` — so every
6579
+ * identified row has an addressable expand control without repeating the id.
6580
+ */
6576
6581
  readonly toggleTestId: _angular_core.InputSignal<TnTestIdValue>;
6577
6582
  /**
6578
6583
  * Suppresses the built-in toggle button (and its alignment spacer) so the
@@ -6584,7 +6589,10 @@ declare class TnNestedTreeNodeComponent<T, K = T> extends CdkNestedTreeNode<T, K
6584
6589
  */
6585
6590
  readonly hideToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
6586
6591
  private readonly changeDetectorRef;
6592
+ private readonly hostTestId;
6587
6593
  private destroyed;
6594
+ /** Explicit `toggleTestId` wins; otherwise `toggle`-scoped from the node's `testId`. */
6595
+ protected readonly resolvedToggleTestId: _angular_core.Signal<TnTestIdValue>;
6588
6596
  constructor();
6589
6597
  /** The tree node's level in the tree */
6590
6598
  get level(): number;
@@ -6744,8 +6752,6 @@ interface TnTreeNodeHarnessFilters extends BaseHarnessFilters {
6744
6752
  /** Only find nodes at the given 0-based level (root nodes are 0). */
6745
6753
  level?: number;
6746
6754
  }
6747
- /** Filters for finding `TnTreeHarness` instances. */
6748
- type TnTreeHarnessFilters = BaseHarnessFilters;
6749
6755
  /**
6750
6756
  * Harness for interacting with a single `tn-tree-node` or `tn-nested-tree-node`.
6751
6757
  *
@@ -6817,6 +6823,9 @@ declare class TnTreeNodeHarness extends ComponentHarness {
6817
6823
  collapse(): Promise<void>;
6818
6824
  private getToggle;
6819
6825
  }
6826
+
6827
+ /** Filters for finding `TnTreeHarness` instances. */
6828
+ type TnTreeHarnessFilters = BaseHarnessFilters;
6820
6829
  /**
6821
6830
  * Harness for interacting with `tn-tree` in tests.
6822
6831
  *