@truenas/ui-components 0.1.69 → 0.1.70
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
|
@@ -1632,6 +1632,13 @@ declare class TnMenuItemComponent {
|
|
|
1632
1632
|
itemClick: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
1633
1633
|
/** Template capturing whatever the consumer projected as item content. */
|
|
1634
1634
|
content: _angular_core.Signal<TemplateRef<unknown>>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Semantic *base* for the test id — either the explicit `testId` or the `id`.
|
|
1637
|
+
* The owning `<tn-menu-panel>` button declares `tnTestIdType="button"`, so
|
|
1638
|
+
* `TnTestIdDirective` composes the final `button-…` id (and is idempotent, so
|
|
1639
|
+
* an already-`button-`-prefixed value is not doubled). Returns `undefined`
|
|
1640
|
+
* when neither is set, which composes to no attribute.
|
|
1641
|
+
*/
|
|
1635
1642
|
resolvedTestId: _angular_core.Signal<string | undefined>;
|
|
1636
1643
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TnMenuItemComponent, never>;
|
|
1637
1644
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnMenuItemComponent, "tn-menu-item", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconLibrary": { "alias": "iconLibrary"; "required": false; "isSignal": true; }; "shortcut": { "alias": "shortcut"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, ["*"], true, never>;
|
|
@@ -1684,10 +1691,12 @@ declare class TnMenuComponent implements OnDestroy {
|
|
|
1684
1691
|
contextMenu: _angular_core.InputSignal<boolean>;
|
|
1685
1692
|
/**
|
|
1686
1693
|
* Semantic base that scopes the test ids of this menu's items. Each item
|
|
1687
|
-
* resolves to `
|
|
1688
|
-
* + item `id="edit"` → `
|
|
1694
|
+
* resolves to `button-${testId}-${item.id}` (e.g. menu `testId="actions"`
|
|
1695
|
+
* + item `id="edit"` → `button-actions-edit`), which keeps ids unique when
|
|
1689
1696
|
* several menus render on one page. Omit it and items fall back to the
|
|
1690
|
-
* unscoped `
|
|
1697
|
+
* unscoped `button-${item.id}`. A per-item `testId` overrides the base and is
|
|
1698
|
+
* composed with the same `button-` prefix (idempotently, so an already
|
|
1699
|
+
* `button-`-prefixed value is not doubled).
|
|
1691
1700
|
*/
|
|
1692
1701
|
testId: _angular_core.InputSignal<string | undefined>;
|
|
1693
1702
|
menuItemClick: _angular_core.OutputEmitterRef<TnMenuItem>;
|