@truenas/ui-components 0.1.67 → 0.1.68
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
|
@@ -1526,16 +1526,20 @@ declare class TnMenuItemComponent {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
|
|
1528
1528
|
/**
|
|
1529
|
-
* Activates CDK menu hover-to-open behavior
|
|
1529
|
+
* Activates CDK menu hover-to-open behavior — and keyboard focus entry — for a
|
|
1530
|
+
* root menu opened via a custom overlay instead of CDK's own `CdkMenuTrigger`.
|
|
1530
1531
|
*
|
|
1531
1532
|
* CDK's hover-to-open for submenu triggers is guarded by `!menuStack.isEmpty()`.
|
|
1532
|
-
* When a CdkMenu is opened via TnMenuTriggerDirective (custom overlay)
|
|
1533
|
-
*
|
|
1534
|
-
* with the stack, disabling hover for its submenu triggers
|
|
1535
|
-
*
|
|
1536
|
-
*
|
|
1537
|
-
*
|
|
1538
|
-
*
|
|
1533
|
+
* When a `CdkMenu` is opened via `TnMenuTriggerDirective` (custom overlay)
|
|
1534
|
+
* rather than `CdkMenuTrigger`, the menu is considered "inline" and doesn't
|
|
1535
|
+
* register with the stack, disabling hover for its submenu triggers and leaving
|
|
1536
|
+
* keyboard focus outside the panel.
|
|
1537
|
+
*
|
|
1538
|
+
* This directive pushes that root menu onto its own stack and moves focus to
|
|
1539
|
+
* the first (or selected) item so arrow-key navigation works immediately.
|
|
1540
|
+
* Submenus — opened by `CdkMenuTrigger` — already push themselves and are
|
|
1541
|
+
* focused by CDK, so for them this directive only installs the skip-disabled
|
|
1542
|
+
* predicate and otherwise stays out of the way.
|
|
1539
1543
|
*/
|
|
1540
1544
|
declare class TnMenuActivateHoverDirective implements AfterContentInit {
|
|
1541
1545
|
private cdkMenu;
|
|
@@ -1544,6 +1548,7 @@ declare class TnMenuActivateHoverDirective implements AfterContentInit {
|
|
|
1544
1548
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TnMenuActivateHoverDirective, never>;
|
|
1545
1549
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TnMenuActivateHoverDirective, "[tnMenuActivateHover]", never, {}, {}, never, never, true, never>;
|
|
1546
1550
|
}
|
|
1551
|
+
|
|
1547
1552
|
interface TnMenuItem {
|
|
1548
1553
|
id: string;
|
|
1549
1554
|
label: string;
|
|
@@ -1593,7 +1598,6 @@ declare class TnMenuComponent implements OnDestroy {
|
|
|
1593
1598
|
private closeContextMenu;
|
|
1594
1599
|
ngOnDestroy(): void;
|
|
1595
1600
|
onContextMenu(event: MouseEvent): void;
|
|
1596
|
-
trackByItemId(index: number, item: TnMenuItem): string;
|
|
1597
1601
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TnMenuComponent, never>;
|
|
1598
1602
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnMenuComponent, "tn-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "contextMenu": { "alias": "contextMenu"; "required": false; "isSignal": true; }; }, { "menuItemClick": "menuItemClick"; "menuOpen": "menuOpen"; "menuClose": "menuClose"; }, ["contentItems"], ["*"], true, never>;
|
|
1599
1603
|
}
|