@radix-ng/primitives 0.50.0 → 1.0.0-beta.0
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/collection/README.md +1 -0
- package/fesm2022/radix-ng-primitives-accordion.mjs +134 -66
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +224 -132
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-arrow.mjs +26 -10
- package/fesm2022/radix-ng-primitives-arrow.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +6 -6
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-avatar.mjs +68 -75
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-button.mjs +123 -0
- package/fesm2022/radix-ng-primitives-button.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-calendar.mjs +104 -103
- package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +414 -80
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +193 -92
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collection.mjs +72 -0
- package/fesm2022/radix-ng-primitives-collection.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-config.mjs +5 -5
- package/fesm2022/radix-ng-primitives-config.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-context-menu.mjs +143 -427
- package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +757 -757
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-cropper.mjs +55 -53
- package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-date-field.mjs +93 -86
- package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +658 -330
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +98 -76
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-drawer.mjs +1059 -0
- package/fesm2022/radix-ng-primitives-drawer.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-editable.mjs +20 -20
- package/fesm2022/radix-ng-primitives-editable.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-field.mjs +363 -0
- package/fesm2022/radix-ng-primitives-field.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-fieldset.mjs +79 -0
- package/fesm2022/radix-ng-primitives-fieldset.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-focus-guards.mjs +3 -3
- package/fesm2022/radix-ng-primitives-focus-guards.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-focus-scope.mjs +29 -14
- package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-input.mjs +172 -0
- package/fesm2022/radix-ng-primitives-input.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-label.mjs +11 -11
- package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menu.mjs +1484 -353
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +290 -162
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-meter.mjs +271 -0
- package/fesm2022/radix-ng-primitives-meter.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs +1060 -1553
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-number-field.mjs +1102 -366
- package/fesm2022/radix-ng-primitives-number-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-pagination.mjs +51 -51
- package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +980 -995
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popper.mjs +137 -82
- package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-portal.mjs +40 -16
- package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-presence.mjs +134 -246
- package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-preview-card.mjs +997 -0
- package/fesm2022/radix-ng-primitives-preview-card.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-progress.mjs +231 -92
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +211 -70
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +127 -77
- package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +791 -511
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-separator.mjs +16 -45
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +976 -720
- package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-stepper.mjs +69 -71
- package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +128 -124
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +388 -115
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-time-field.mjs +111 -117
- package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +122 -248
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +99 -62
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toolbar.mjs +307 -94
- package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +690 -1079
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +46 -87
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives.mjs.map +1 -1
- package/meter/README.md +3 -0
- package/navigation-menu/README.md +2 -1
- package/package.json +85 -63
- package/portal/README.md +2 -0
- package/preview-card/README.md +3 -0
- package/schematics/collection.json +1 -0
- package/schematics/ng-add/index.d.ts +3 -2
- package/schematics/ng-add/index.js +62 -31
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/package-config.d.ts +4 -2
- package/schematics/ng-add/package-config.js +10 -2
- package/schematics/ng-add/package-config.js.map +1 -1
- package/schematics/ng-add/schema.d.ts +3 -0
- package/schematics/ng-add/schema.js +3 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-add/schema.json +14 -0
- package/select/README.md +2 -0
- package/{accordion/index.d.ts → types/radix-ng-primitives-accordion.d.ts} +102 -67
- package/types/radix-ng-primitives-alert-dialog.d.ts +114 -0
- package/{arrow/index.d.ts → types/radix-ng-primitives-arrow.d.ts} +1 -1
- package/{aspect-ratio/index.d.ts → types/radix-ng-primitives-aspect-ratio.d.ts} +1 -1
- package/{avatar/index.d.ts → types/radix-ng-primitives-avatar.d.ts} +7 -11
- package/types/radix-ng-primitives-button.d.ts +73 -0
- package/{calendar/index.d.ts → types/radix-ng-primitives-calendar.d.ts} +2 -3
- package/types/radix-ng-primitives-checkbox.d.ts +337 -0
- package/types/radix-ng-primitives-collapsible.d.ts +159 -0
- package/types/radix-ng-primitives-collection.d.ts +44 -0
- package/{config/index.d.ts → types/radix-ng-primitives-config.d.ts} +1 -1
- package/types/radix-ng-primitives-context-menu.d.ts +73 -0
- package/{core/index.d.ts → types/radix-ng-primitives-core.d.ts} +311 -236
- package/{cropper/index.d.ts → types/radix-ng-primitives-cropper.d.ts} +6 -5
- package/{date-field/index.d.ts → types/radix-ng-primitives-date-field.d.ts} +42 -27
- package/types/radix-ng-primitives-dialog.d.ts +323 -0
- package/{dismissable-layer/index.d.ts → types/radix-ng-primitives-dismissable-layer.d.ts} +15 -7
- package/types/radix-ng-primitives-drawer.d.ts +448 -0
- package/{editable/index.d.ts → types/radix-ng-primitives-editable.d.ts} +1 -1
- package/types/radix-ng-primitives-field.d.ts +373 -0
- package/types/radix-ng-primitives-fieldset.d.ts +48 -0
- package/{focus-scope/index.d.ts → types/radix-ng-primitives-focus-scope.d.ts} +13 -5
- package/types/radix-ng-primitives-input.d.ts +87 -0
- package/{label/index.d.ts → types/radix-ng-primitives-label.d.ts} +0 -1
- package/types/radix-ng-primitives-menu.d.ts +612 -0
- package/types/radix-ng-primitives-menubar.d.ts +66 -0
- package/types/radix-ng-primitives-meter.d.ts +193 -0
- package/types/radix-ng-primitives-navigation-menu.d.ts +488 -0
- package/types/radix-ng-primitives-number-field.d.ts +464 -0
- package/{pagination/index.d.ts → types/radix-ng-primitives-pagination.d.ts} +2 -2
- package/types/radix-ng-primitives-popover.d.ts +416 -0
- package/{popper/index.d.ts → types/radix-ng-primitives-popper.d.ts} +50 -9
- package/types/radix-ng-primitives-portal.d.ts +30 -0
- package/types/radix-ng-primitives-presence.d.ts +55 -0
- package/types/radix-ng-primitives-preview-card.d.ts +359 -0
- package/types/radix-ng-primitives-progress.d.ts +206 -0
- package/{radio/index.d.ts → types/radix-ng-primitives-radio.d.ts} +56 -26
- package/{roving-focus/index.d.ts → types/radix-ng-primitives-roving-focus.d.ts} +38 -27
- package/types/radix-ng-primitives-select.d.ts +512 -0
- package/types/radix-ng-primitives-separator.d.ts +38 -0
- package/types/radix-ng-primitives-slider.d.ts +377 -0
- package/{stepper/index.d.ts → types/radix-ng-primitives-stepper.d.ts} +21 -22
- package/types/radix-ng-primitives-switch.d.ts +121 -0
- package/types/radix-ng-primitives-tabs.d.ts +247 -0
- package/{time-field/index.d.ts → types/radix-ng-primitives-time-field.d.ts} +46 -31
- package/types/radix-ng-primitives-toggle-group.d.ts +116 -0
- package/types/radix-ng-primitives-toggle.d.ts +65 -0
- package/types/radix-ng-primitives-toolbar.d.ts +180 -0
- package/types/radix-ng-primitives-tooltip.d.ts +395 -0
- package/{visually-hidden/index.d.ts → types/radix-ng-primitives-visually-hidden.d.ts} +19 -19
- package/alert-dialog/index.d.ts +0 -57
- package/checkbox/index.d.ts +0 -164
- package/collapsible/index.d.ts +0 -85
- package/context-menu/index.d.ts +0 -129
- package/dialog/index.d.ts +0 -205
- package/dropdown-menu/README.md +0 -1
- package/dropdown-menu/index.d.ts +0 -171
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +0 -583
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +0 -1
- package/fesm2022/radix-ng-primitives-hover-card.mjs +0 -1246
- package/fesm2022/radix-ng-primitives-hover-card.mjs.map +0 -1
- package/fesm2022/radix-ng-primitives-tooltip2.mjs +0 -740
- package/fesm2022/radix-ng-primitives-tooltip2.mjs.map +0 -1
- package/hover-card/README.md +0 -3
- package/hover-card/index.d.ts +0 -472
- package/menu/index.d.ts +0 -139
- package/menubar/index.d.ts +0 -56
- package/navigation-menu/index.d.ts +0 -405
- package/number-field/index.d.ts +0 -203
- package/popover/index.d.ts +0 -403
- package/portal/index.d.ts +0 -22
- package/presence/index.d.ts +0 -103
- package/progress/index.d.ts +0 -79
- package/select/index.d.ts +0 -214
- package/separator/index.d.ts +0 -63
- package/slider/index.d.ts +0 -263
- package/switch/index.d.ts +0 -105
- package/tabs/index.d.ts +0 -112
- package/toggle/index.d.ts +0 -75
- package/toggle-group/index.d.ts +0 -194
- package/toolbar/index.d.ts +0 -55
- package/tooltip/index.d.ts +0 -433
- package/tooltip2/README.md +0 -3
- package/tooltip2/index.d.ts +0 -325
- /package/{focus-guards/index.d.ts → types/radix-ng-primitives-focus-guards.d.ts} +0 -0
- /package/{index.d.ts → types/radix-ng-primitives.d.ts} +0 -0
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, Signal, ElementRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@radix-ng/primitives/presence';
|
|
4
|
+
import * as _radix_ng_primitives_core from '@radix-ng/primitives/core';
|
|
5
|
+
import { RdxTransitionStatus, BooleanInput, NumberInput } from '@radix-ng/primitives/core';
|
|
6
|
+
import * as i1$1 from '@radix-ng/primitives/popper';
|
|
7
|
+
import { RdxPopperContentWrapper, RdxPopperAnchorElement } from '@radix-ng/primitives/popper';
|
|
8
|
+
import * as _radix_ng_primitives_navigation_menu from '@radix-ng/primitives/navigation-menu';
|
|
9
|
+
import * as i1$2 from '@radix-ng/primitives/roving-focus';
|
|
10
|
+
import * as i1$3 from '@radix-ng/primitives/portal';
|
|
11
|
+
import { RdxPortalContainer } from '@radix-ng/primitives/portal';
|
|
12
|
+
import * as i2 from '@radix-ng/primitives/dismissable-layer';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Mounts the popup while the menu is open and waits for CSS exit keyframes before unmounting.
|
|
16
|
+
*
|
|
17
|
+
* ```html
|
|
18
|
+
* <ng-template rdxNavigationMenuPortalPresence>…</ng-template>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare class RdxNavigationMenuPortalPresence {
|
|
22
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuPortalPresence, never>;
|
|
23
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuPortalPresence, "ng-template[rdxNavigationMenuPortalPresence]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxPresenceDirective; inputs: {}; outputs: {}; }]>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type NavigationMenuOrientation = 'horizontal' | 'vertical';
|
|
27
|
+
type NavigationMenuDirection = 'ltr' | 'rtl';
|
|
28
|
+
type RdxNavigationMenuOpenChangeReason = 'trigger-hover' | 'trigger-focus' | 'trigger-press' | 'outside-press' | 'focus-out' | 'escape-key' | 'link-select' | 'list-leave' | 'none';
|
|
29
|
+
interface RdxNavigationMenuOpenChange {
|
|
30
|
+
value: string | null;
|
|
31
|
+
open: boolean;
|
|
32
|
+
reason: RdxNavigationMenuOpenChangeReason;
|
|
33
|
+
event: Event;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A registered item content template, rendered into the shared viewport when its item is active.
|
|
37
|
+
*/
|
|
38
|
+
interface RdxNavigationMenuContentEntry {
|
|
39
|
+
value: string;
|
|
40
|
+
contentId: string;
|
|
41
|
+
triggerId: string;
|
|
42
|
+
templateRef: TemplateRef<unknown>;
|
|
43
|
+
forceMount: Signal<boolean>;
|
|
44
|
+
}
|
|
45
|
+
interface RdxNavigationMenuRootContext {
|
|
46
|
+
/** Whether this menu is nested inside another navigation menu's content. */
|
|
47
|
+
readonly nested: boolean;
|
|
48
|
+
readonly baseId: string;
|
|
49
|
+
readonly orientation: Signal<NavigationMenuOrientation>;
|
|
50
|
+
readonly dir: Signal<NavigationMenuDirection>;
|
|
51
|
+
readonly loop: Signal<boolean>;
|
|
52
|
+
/** Value of the currently open item, or `null` when closed. */
|
|
53
|
+
readonly value: Signal<string | null>;
|
|
54
|
+
/** Value of the previously open item (used for slide-direction morphing). */
|
|
55
|
+
readonly previousValue: Signal<string | null>;
|
|
56
|
+
readonly isOpen: Signal<boolean>;
|
|
57
|
+
readonly instant: Signal<boolean>;
|
|
58
|
+
readonly transitionStatus: Signal<RdxTransitionStatus>;
|
|
59
|
+
/** The active trigger element the popup is anchored to. */
|
|
60
|
+
readonly trigger: Signal<HTMLElement | undefined>;
|
|
61
|
+
readonly triggers: Signal<HTMLElement[]>;
|
|
62
|
+
readonly activeContent: Signal<RdxNavigationMenuContentEntry | undefined>;
|
|
63
|
+
contentId(value: string): string;
|
|
64
|
+
triggerId(value: string): string;
|
|
65
|
+
setValue(value: string | null, reason?: RdxNavigationMenuOpenChangeReason, event?: Event): void;
|
|
66
|
+
open(value: string, trigger: HTMLElement, reason?: RdxNavigationMenuOpenChangeReason, event?: Event): void;
|
|
67
|
+
close(reason?: RdxNavigationMenuOpenChangeReason, event?: Event): void;
|
|
68
|
+
toggle(value: string, trigger: HTMLElement, event?: Event): void;
|
|
69
|
+
openOnHover(value: string, trigger: HTMLElement, event: PointerEvent): void;
|
|
70
|
+
closeOnHover(): void;
|
|
71
|
+
cancelHoverOpen(): void;
|
|
72
|
+
cancelHoverClose(): void;
|
|
73
|
+
registerTrigger(value: string, trigger: HTMLElement): () => void;
|
|
74
|
+
registerContent(entry: RdxNavigationMenuContentEntry): () => void;
|
|
75
|
+
registerTransitionElement(element: HTMLElement): () => void;
|
|
76
|
+
registerViewport(onTriggerChange: (previous: HTMLElement, next: HTMLElement) => void): () => void;
|
|
77
|
+
}
|
|
78
|
+
declare const injectNavigationMenuRootContext: (optional?: boolean) => RdxNavigationMenuRootContext | null;
|
|
79
|
+
declare const provideNavigationMenuRootContext: (useFactory: () => RdxNavigationMenuRootContext) => _angular_core.Provider;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Groups all parts of the navigation menu.
|
|
83
|
+
*
|
|
84
|
+
* Holds the shared open state: `value` identifies the currently open item, and the menu is open
|
|
85
|
+
* whenever `value` is non-null. A single popup (Portal → Positioner → Popup → Viewport) is shared
|
|
86
|
+
* between every item and anchored to the active trigger.
|
|
87
|
+
*/
|
|
88
|
+
declare class RdxNavigationMenuRoot {
|
|
89
|
+
private readonly popper;
|
|
90
|
+
private readonly destroyRef;
|
|
91
|
+
private readonly parentRoot;
|
|
92
|
+
/** Whether this root is nested inside another navigation menu's content. */
|
|
93
|
+
readonly nested: boolean;
|
|
94
|
+
readonly baseId: string;
|
|
95
|
+
/**
|
|
96
|
+
* The value of the navigation menu item that should be currently open.
|
|
97
|
+
*/
|
|
98
|
+
readonly value: _angular_core.ModelSignal<string | null>;
|
|
99
|
+
/**
|
|
100
|
+
* The uncontrolled value of the item that should be initially open.
|
|
101
|
+
*/
|
|
102
|
+
readonly defaultValue: _angular_core.InputSignal<string | null>;
|
|
103
|
+
/**
|
|
104
|
+
* The orientation of the navigation menu.
|
|
105
|
+
*/
|
|
106
|
+
readonly orientation: _angular_core.InputSignal<NavigationMenuOrientation>;
|
|
107
|
+
/**
|
|
108
|
+
* The reading direction of the navigation menu.
|
|
109
|
+
*/
|
|
110
|
+
readonly dir: _angular_core.InputSignal<NavigationMenuDirection>;
|
|
111
|
+
/**
|
|
112
|
+
* Whether keyboard navigation loops from the last item back to the first and vice versa.
|
|
113
|
+
*/
|
|
114
|
+
readonly loop: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
115
|
+
/**
|
|
116
|
+
* How long to wait before opening the menu on hover, in milliseconds.
|
|
117
|
+
*/
|
|
118
|
+
readonly delay: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
119
|
+
/**
|
|
120
|
+
* How long to wait before closing the menu after the pointer leaves, in milliseconds.
|
|
121
|
+
*/
|
|
122
|
+
readonly closeDelay: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
123
|
+
/**
|
|
124
|
+
* Emits when the open item changes.
|
|
125
|
+
*/
|
|
126
|
+
readonly onValueChange: _angular_core.OutputEmitterRef<string | null>;
|
|
127
|
+
/**
|
|
128
|
+
* Emits whenever the menu opens or closes.
|
|
129
|
+
*/
|
|
130
|
+
readonly onOpenChange: _angular_core.OutputEmitterRef<RdxNavigationMenuOpenChange>;
|
|
131
|
+
/**
|
|
132
|
+
* Emits after any enter/exit transition completes.
|
|
133
|
+
*/
|
|
134
|
+
readonly onOpenChangeComplete: _angular_core.OutputEmitterRef<boolean>;
|
|
135
|
+
private hasAppliedDefaultValue;
|
|
136
|
+
private openTimer;
|
|
137
|
+
private closeTimer;
|
|
138
|
+
private instantFrame;
|
|
139
|
+
private readonly transition;
|
|
140
|
+
readonly instant: _angular_core.WritableSignal<boolean>;
|
|
141
|
+
readonly transitionStatus: _angular_core.Signal<_radix_ng_primitives_core.RdxTransitionStatus>;
|
|
142
|
+
readonly previousValue: _angular_core.WritableSignal<string | null>;
|
|
143
|
+
readonly isOpen: _angular_core.Signal<boolean>;
|
|
144
|
+
readonly trigger: _angular_core.WritableSignal<HTMLElement | undefined>;
|
|
145
|
+
readonly triggers: _angular_core.WritableSignal<HTMLElement[]>;
|
|
146
|
+
readonly contents: _angular_core.WritableSignal<Map<string, RdxNavigationMenuContentEntry>>;
|
|
147
|
+
readonly activeContent: _angular_core.Signal<RdxNavigationMenuContentEntry | undefined>;
|
|
148
|
+
private readonly registeredTriggers;
|
|
149
|
+
private readonly viewportTriggerChange;
|
|
150
|
+
constructor();
|
|
151
|
+
contentId(value: string): string;
|
|
152
|
+
triggerId(value: string): string;
|
|
153
|
+
setValue(value: string | null, reason?: RdxNavigationMenuOpenChangeReason, event?: Event): void;
|
|
154
|
+
open(value: string, trigger: HTMLElement, reason?: RdxNavigationMenuOpenChangeReason, event?: Event): void;
|
|
155
|
+
close(reason?: RdxNavigationMenuOpenChangeReason, event?: Event): void;
|
|
156
|
+
toggle(value: string, trigger: HTMLElement, event?: Event): void;
|
|
157
|
+
openOnHover(value: string, trigger: HTMLElement, event: PointerEvent): void;
|
|
158
|
+
closeOnHover(): void;
|
|
159
|
+
cancelHoverOpen(): void;
|
|
160
|
+
cancelHoverClose(): void;
|
|
161
|
+
registerTrigger(value: string, trigger: HTMLElement): () => void;
|
|
162
|
+
registerContent(entry: RdxNavigationMenuContentEntry): () => void;
|
|
163
|
+
registerTransitionElement(element: HTMLElement): () => void;
|
|
164
|
+
registerViewport(onTriggerChange: (previous: HTMLElement, next: HTMLElement) => void): () => boolean;
|
|
165
|
+
private scheduleInstantReset;
|
|
166
|
+
private clearHoverTimers;
|
|
167
|
+
private clearOpenTimer;
|
|
168
|
+
private clearCloseTimer;
|
|
169
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuRoot, never>;
|
|
170
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuRoot, "[rdxNavigationMenuRoot]", ["rdxNavigationMenuRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "loop": { "alias": "loop"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "closeDelay": { "alias": "closeDelay"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "onValueChange": "onValueChange"; "onOpenChange": "onOpenChange"; "onOpenChangeComplete": "onOpenChangeComplete"; }, never, never, true, [{ directive: typeof i1$1.RdxPopper; inputs: {}; outputs: {}; }]>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Contains the navigation menu items. Renders as a menubar with roving keyboard focus.
|
|
175
|
+
*/
|
|
176
|
+
declare class RdxNavigationMenuList {
|
|
177
|
+
protected readonly rootContext: _radix_ng_primitives_navigation_menu.RdxNavigationMenuRootContext;
|
|
178
|
+
private readonly rovingFocusGroup;
|
|
179
|
+
constructor();
|
|
180
|
+
protected onPointerLeave(event: PointerEvent): void;
|
|
181
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuList, never>;
|
|
182
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuList, "[rdxNavigationMenuList]", never, {}, {}, never, never, true, [{ directive: typeof i1$2.RdxRovingFocusGroupDirective; inputs: {}; outputs: {}; }]>;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* A single navigation menu item. Holds a trigger + content pair, or a standalone link.
|
|
187
|
+
*/
|
|
188
|
+
declare class RdxNavigationMenuItem {
|
|
189
|
+
private readonly rootContext;
|
|
190
|
+
/**
|
|
191
|
+
* A unique value that identifies the item. Falls back to a generated id.
|
|
192
|
+
*/
|
|
193
|
+
readonly value: _angular_core.InputSignalWithTransform<string, string | undefined>;
|
|
194
|
+
/** The trigger element, set by the trigger directive. */
|
|
195
|
+
readonly triggerRef: _angular_core.WritableSignal<HTMLElement | null>;
|
|
196
|
+
/** Whether this item is the currently open one. */
|
|
197
|
+
readonly isOpen: _angular_core.Signal<boolean>;
|
|
198
|
+
readonly triggerId: _angular_core.Signal<string>;
|
|
199
|
+
readonly contentId: _angular_core.Signal<string>;
|
|
200
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuItem, never>;
|
|
201
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuItem, "[rdxNavigationMenuItem]", ["rdxNavigationMenuItem"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* A button that opens its item's content in the shared popup.
|
|
206
|
+
*/
|
|
207
|
+
declare class RdxNavigationMenuTrigger {
|
|
208
|
+
protected readonly item: RdxNavigationMenuItem;
|
|
209
|
+
private readonly rootContext;
|
|
210
|
+
private readonly rovingFocusItem;
|
|
211
|
+
private readonly elementRef;
|
|
212
|
+
private readonly document;
|
|
213
|
+
/**
|
|
214
|
+
* Whether the trigger should ignore user interaction.
|
|
215
|
+
*/
|
|
216
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
217
|
+
/**
|
|
218
|
+
* Whether the content should also open when the trigger is hovered.
|
|
219
|
+
*/
|
|
220
|
+
readonly openOnHover: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
221
|
+
protected readonly open: _angular_core.Signal<boolean>;
|
|
222
|
+
constructor();
|
|
223
|
+
protected onClick(event: MouseEvent): void;
|
|
224
|
+
protected onPointerEnter(event: PointerEvent): void;
|
|
225
|
+
protected onPointerLeave(event: PointerEvent): void;
|
|
226
|
+
/**
|
|
227
|
+
* Open-follows-focus: while the menu is already open, moving keyboard focus (arrow keys via
|
|
228
|
+
* roving) to another trigger switches the shared popup to that item — matching Base UI, so the
|
|
229
|
+
* open menu visibly responds to arrow-key navigation. Focus never *opens* a closed menu.
|
|
230
|
+
*/
|
|
231
|
+
protected onFocus(): void;
|
|
232
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
233
|
+
/** The key that moves focus from the trigger into the open content, based on orientation/dir. */
|
|
234
|
+
private entryKey;
|
|
235
|
+
private focusContent;
|
|
236
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuTrigger, never>;
|
|
237
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuTrigger, "button[rdxNavigationMenuTrigger]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "openOnHover": { "alias": "openOnHover"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$2.RdxRovingFocusItemDirective; inputs: {}; outputs: {}; }]>;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* A visual indicator (e.g. a caret) rendered inside a trigger. Exposes the open state so the icon
|
|
242
|
+
* can rotate when its item opens.
|
|
243
|
+
*/
|
|
244
|
+
declare class RdxNavigationMenuIcon {
|
|
245
|
+
private readonly item;
|
|
246
|
+
protected readonly open: _angular_core.Signal<boolean>;
|
|
247
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuIcon, never>;
|
|
248
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuIcon, "[rdxNavigationMenuIcon]", never, {}, {}, never, never, true, never>;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* The content shown when its item is open. Used as a structural directive; its template is rendered
|
|
253
|
+
* into the shared {@link RdxNavigationMenuViewport}.
|
|
254
|
+
*
|
|
255
|
+
* ```html
|
|
256
|
+
* <ng-container *rdxNavigationMenuContent>…</ng-container>
|
|
257
|
+
* ```
|
|
258
|
+
*/
|
|
259
|
+
declare class RdxNavigationMenuContent {
|
|
260
|
+
private readonly rootContext;
|
|
261
|
+
private readonly item;
|
|
262
|
+
private readonly templateRef;
|
|
263
|
+
/**
|
|
264
|
+
* Required by the structural directive syntax; the value is unused.
|
|
265
|
+
*/
|
|
266
|
+
readonly rdxNavigationMenuContent: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
267
|
+
/**
|
|
268
|
+
* Keep the content mounted in the viewport even when its item is closed.
|
|
269
|
+
*/
|
|
270
|
+
readonly forceMount: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
271
|
+
constructor();
|
|
272
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuContent, never>;
|
|
273
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuContent, "[rdxNavigationMenuContent]", never, { "rdxNavigationMenuContent": { "alias": "rdxNavigationMenuContent"; "required": false; "isSignal": true; }; "forceMount": { "alias": "forceMount"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* A navigation link. Closes the menu on selection unless prevented.
|
|
278
|
+
*
|
|
279
|
+
* Used both as a top-level menubar item and inside content. It is a plain tabbable anchor (not part
|
|
280
|
+
* of the menubar's arrow-key roving), matching Base UI.
|
|
281
|
+
*/
|
|
282
|
+
declare class RdxNavigationMenuLink {
|
|
283
|
+
private readonly rootContext;
|
|
284
|
+
private readonly elementRef;
|
|
285
|
+
/**
|
|
286
|
+
* Whether the link represents the current page.
|
|
287
|
+
*/
|
|
288
|
+
readonly active: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
289
|
+
/**
|
|
290
|
+
* Whether selecting the link should close the menu.
|
|
291
|
+
*/
|
|
292
|
+
readonly closeOnClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
293
|
+
/**
|
|
294
|
+
* Emits when the link is selected. Call `preventDefault()` to keep the menu open.
|
|
295
|
+
*/
|
|
296
|
+
readonly onSelect: _angular_core.OutputEmitterRef<Event>;
|
|
297
|
+
protected onClick(event: Event): void;
|
|
298
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
299
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuLink, never>;
|
|
300
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuLink, "[rdxNavigationMenuLink]", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "closeOnClick": { "alias": "closeOnClick"; "required": false; "isSignal": true; }; }, { "onSelect": "onSelect"; }, never, never, true, never>;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Moves the navigation menu popup to a different part of the DOM (by default `document.body`).
|
|
305
|
+
*/
|
|
306
|
+
declare class RdxNavigationMenuPortal {
|
|
307
|
+
protected readonly rootContext: _radix_ng_primitives_navigation_menu.RdxNavigationMenuRootContext;
|
|
308
|
+
/**
|
|
309
|
+
* Optional container to portal the popup into. Defaults to `document.body`.
|
|
310
|
+
*/
|
|
311
|
+
readonly container: _angular_core.InputSignal<RdxPortalContainer | undefined>;
|
|
312
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuPortal, never>;
|
|
313
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuPortal, "[rdxNavigationMenuPortal]", never, { "container": { "alias": "container"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$3.RdxPortal; inputs: { "container": "container"; }; outputs: {}; }]>;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* An optional backdrop rendered behind the popup.
|
|
318
|
+
*/
|
|
319
|
+
declare class RdxNavigationMenuBackdrop {
|
|
320
|
+
protected readonly rootContext: _radix_ng_primitives_navigation_menu.RdxNavigationMenuRootContext;
|
|
321
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuBackdrop, never>;
|
|
322
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuBackdrop, "[rdxNavigationMenuBackdrop]", never, {}, {}, never, never, true, never>;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Positions the shared popup against the active trigger.
|
|
327
|
+
*/
|
|
328
|
+
declare class RdxNavigationMenuPositioner {
|
|
329
|
+
protected readonly rootContext: _radix_ng_primitives_navigation_menu.RdxNavigationMenuRootContext;
|
|
330
|
+
protected readonly wrapper: RdxPopperContentWrapper;
|
|
331
|
+
private readonly elementRef;
|
|
332
|
+
private readonly triggerEl;
|
|
333
|
+
private readonly containerEl;
|
|
334
|
+
private readonly graceArea;
|
|
335
|
+
/**
|
|
336
|
+
* An element to position the popup against. Defaults to the active trigger.
|
|
337
|
+
*/
|
|
338
|
+
readonly anchor: _angular_core.InputSignal<RdxPopperAnchorElement>;
|
|
339
|
+
/**
|
|
340
|
+
* The preferred side of the trigger to render against when open.
|
|
341
|
+
*/
|
|
342
|
+
readonly side: _angular_core.InputSignal<"top" | "right" | "bottom" | "left">;
|
|
343
|
+
/**
|
|
344
|
+
* Distance between the trigger and the popup in pixels.
|
|
345
|
+
*/
|
|
346
|
+
readonly sideOffset: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
347
|
+
/**
|
|
348
|
+
* How to align the popup relative to the specified side.
|
|
349
|
+
*/
|
|
350
|
+
readonly align: _angular_core.InputSignal<"start" | "center" | "end">;
|
|
351
|
+
/**
|
|
352
|
+
* An offset in pixels from the `start` or `end` alignment options.
|
|
353
|
+
*/
|
|
354
|
+
readonly alignOffset: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
355
|
+
/**
|
|
356
|
+
* Minimum distance to maintain between the arrow and the edges of the popup.
|
|
357
|
+
*/
|
|
358
|
+
readonly arrowPadding: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
359
|
+
/**
|
|
360
|
+
* Whether to override side and alignment preferences to prevent collisions.
|
|
361
|
+
*/
|
|
362
|
+
readonly avoidCollisions: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
363
|
+
/**
|
|
364
|
+
* The element used as the collision boundary.
|
|
365
|
+
*/
|
|
366
|
+
readonly collisionBoundary: _angular_core.InputSignal<ElementRef<HTMLElement> | ElementRef<HTMLElement>[] | undefined>;
|
|
367
|
+
/**
|
|
368
|
+
* Distance in pixels from the boundary edges where collision detection should occur.
|
|
369
|
+
*/
|
|
370
|
+
readonly collisionPadding: _angular_core.InputSignal<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
371
|
+
/**
|
|
372
|
+
* The sticky behavior on the alignment axis.
|
|
373
|
+
*/
|
|
374
|
+
readonly sticky: _angular_core.InputSignal<"always" | "partial">;
|
|
375
|
+
/**
|
|
376
|
+
* Whether to hide the popup when the trigger becomes fully occluded.
|
|
377
|
+
*/
|
|
378
|
+
readonly hideWhenDetached: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
379
|
+
/**
|
|
380
|
+
* The CSS position strategy used by Floating UI.
|
|
381
|
+
*/
|
|
382
|
+
readonly positionStrategy: _angular_core.InputSignal<"fixed" | "absolute">;
|
|
383
|
+
/**
|
|
384
|
+
* Whether to update position on every animation frame.
|
|
385
|
+
*/
|
|
386
|
+
readonly updatePositionStrategy: _angular_core.InputSignal<"always" | "optimized">;
|
|
387
|
+
constructor();
|
|
388
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuPositioner, never>;
|
|
389
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuPositioner, "[rdxNavigationMenuPositioner]", never, { "anchor": { "alias": "anchor"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "sideOffset": { "alias": "sideOffset"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "alignOffset": { "alias": "alignOffset"; "required": false; "isSignal": true; }; "arrowPadding": { "alias": "arrowPadding"; "required": false; "isSignal": true; }; "avoidCollisions": { "alias": "avoidCollisions"; "required": false; "isSignal": true; }; "collisionBoundary": { "alias": "collisionBoundary"; "required": false; "isSignal": true; }; "collisionPadding": { "alias": "collisionPadding"; "required": false; "isSignal": true; }; "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "hideWhenDetached": { "alias": "hideWhenDetached"; "required": false; "isSignal": true; }; "positionStrategy": { "alias": "positionStrategy"; "required": false; "isSignal": true; }; "updatePositionStrategy": { "alias": "updatePositionStrategy"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$1.RdxPopperContentWrapper; inputs: { "anchor": "anchor"; "side": "side"; "sideOffset": "sideOffset"; "align": "align"; "alignOffset": "alignOffset"; "arrowPadding": "arrowPadding"; "avoidCollisions": "avoidCollisions"; "collisionBoundary": "collisionBoundary"; "collisionPadding": "collisionPadding"; "sticky": "sticky"; "hideWhenDetached": "hideWhenDetached"; "positionStrategy": "positionStrategy"; "updatePositionStrategy": "updatePositionStrategy"; }; outputs: {}; }]>;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* The shared container for the active item's content.
|
|
394
|
+
*/
|
|
395
|
+
declare class RdxNavigationMenuPopup {
|
|
396
|
+
protected readonly rootContext: _radix_ng_primitives_navigation_menu.RdxNavigationMenuRootContext;
|
|
397
|
+
private readonly dismissableLayer;
|
|
398
|
+
private readonly wrapper;
|
|
399
|
+
private readonly layersContext;
|
|
400
|
+
private readonly elementRef;
|
|
401
|
+
protected readonly side: _angular_core.Signal<"top" | "right" | "bottom" | "left" | undefined>;
|
|
402
|
+
protected readonly align: _angular_core.Signal<"start" | "center" | "end" | undefined>;
|
|
403
|
+
/** Names the menu after the active trigger so the `role="menu"` element has an accessible name. */
|
|
404
|
+
protected readonly labelledBy: _angular_core.Signal<string | undefined>;
|
|
405
|
+
private dismissReason;
|
|
406
|
+
private dismissEvent;
|
|
407
|
+
/**
|
|
408
|
+
* Event handler called when the escape key is down. Can be prevented.
|
|
409
|
+
*/
|
|
410
|
+
readonly escapeKeyDown: _angular_core.OutputRef<KeyboardEvent>;
|
|
411
|
+
/**
|
|
412
|
+
* Event handler called when a pointerdown event happens outside the popup. Can be prevented.
|
|
413
|
+
*/
|
|
414
|
+
readonly pointerDownOutside: _angular_core.OutputRef<PointerEvent>;
|
|
415
|
+
/**
|
|
416
|
+
* Event handler called when focus moves outside the popup. Can be prevented.
|
|
417
|
+
*/
|
|
418
|
+
readonly focusOutside: _angular_core.OutputRef<FocusEvent>;
|
|
419
|
+
constructor();
|
|
420
|
+
protected onPointerLeave(event: PointerEvent): void;
|
|
421
|
+
/**
|
|
422
|
+
* Keyboard navigation inside the open panel: Down/Up move between the panel's focusable items in
|
|
423
|
+
* DOM order, Home/End jump to the first/last, and Up from the first item returns focus to the
|
|
424
|
+
* trigger. (Tab keeps working natively; Escape is handled by the dismissable layer.)
|
|
425
|
+
*/
|
|
426
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
427
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuPopup, never>;
|
|
428
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuPopup, "[rdxNavigationMenuPopup]", never, {}, { "escapeKeyDown": "escapeKeyDown"; "pointerDownOutside": "pointerDownOutside"; "focusOutside": "focusOutside"; }, never, never, true, [{ directive: typeof i1$1.RdxPopperContent; inputs: {}; outputs: {}; }, { directive: typeof i2.RdxDismissableLayer; inputs: {}; outputs: {}; }]>;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* An optional arrow element pointing toward the active trigger.
|
|
433
|
+
*/
|
|
434
|
+
declare class RdxNavigationMenuArrow {
|
|
435
|
+
protected readonly rootContext: _radix_ng_primitives_navigation_menu.RdxNavigationMenuRootContext;
|
|
436
|
+
private readonly wrapper;
|
|
437
|
+
protected readonly side: _angular_core.Signal<"top" | "right" | "bottom" | "left" | undefined>;
|
|
438
|
+
protected readonly align: _angular_core.Signal<"start" | "center" | "end" | undefined>;
|
|
439
|
+
protected readonly uncentered: _angular_core.Signal<boolean>;
|
|
440
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuArrow, never>;
|
|
441
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuArrow, "[rdxNavigationMenuArrow]", never, {}, {}, never, never, true, [{ directive: typeof i1$1.RdxPopperArrow; inputs: {}; outputs: {}; }]>;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Clips and animates the active item's content. A single viewport is shared between all items; when
|
|
446
|
+
* the active item changes the outgoing content is retained as `data-previous` until its CSS
|
|
447
|
+
* animation/transition completes, and the new content is marked `data-current`.
|
|
448
|
+
*/
|
|
449
|
+
declare class RdxNavigationMenuViewport {
|
|
450
|
+
protected readonly rootContext: _radix_ng_primitives_navigation_menu.RdxNavigationMenuRootContext;
|
|
451
|
+
private readonly elementRef;
|
|
452
|
+
private readonly viewContainerRef;
|
|
453
|
+
private readonly renderer;
|
|
454
|
+
/**
|
|
455
|
+
* Keep the viewport mounted even when the menu is closed.
|
|
456
|
+
*/
|
|
457
|
+
readonly forceMount: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
458
|
+
protected readonly activationDirection: _angular_core.WritableSignal<string | undefined>;
|
|
459
|
+
protected readonly transitioning: _angular_core.WritableSignal<boolean>;
|
|
460
|
+
protected readonly size: _angular_core.WritableSignal<{
|
|
461
|
+
width: number;
|
|
462
|
+
height: number;
|
|
463
|
+
} | null>;
|
|
464
|
+
private current;
|
|
465
|
+
private previousElement;
|
|
466
|
+
private pendingDirection;
|
|
467
|
+
private cleanupTimer;
|
|
468
|
+
private readonly resizeObserver;
|
|
469
|
+
private readonly activeContent;
|
|
470
|
+
constructor();
|
|
471
|
+
private render;
|
|
472
|
+
private startLeave;
|
|
473
|
+
private removePrevious;
|
|
474
|
+
private clearCleanupTimer;
|
|
475
|
+
private measure;
|
|
476
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuViewport, never>;
|
|
477
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxNavigationMenuViewport, "[rdxNavigationMenuViewport]", never, { "forceMount": { "alias": "forceMount"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
declare const navigationMenuImports: (typeof RdxNavigationMenuPortalPresence)[];
|
|
481
|
+
declare class RdxNavigationMenuModule {
|
|
482
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxNavigationMenuModule, never>;
|
|
483
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<RdxNavigationMenuModule, never, [typeof RdxNavigationMenuRoot, typeof RdxNavigationMenuList, typeof RdxNavigationMenuItem, typeof RdxNavigationMenuTrigger, typeof RdxNavigationMenuIcon, typeof RdxNavigationMenuContent, typeof RdxNavigationMenuLink, typeof RdxNavigationMenuPortal, typeof RdxNavigationMenuPortalPresence, typeof RdxNavigationMenuBackdrop, typeof RdxNavigationMenuPositioner, typeof RdxNavigationMenuPopup, typeof RdxNavigationMenuArrow, typeof RdxNavigationMenuViewport], [typeof RdxNavigationMenuRoot, typeof RdxNavigationMenuList, typeof RdxNavigationMenuItem, typeof RdxNavigationMenuTrigger, typeof RdxNavigationMenuIcon, typeof RdxNavigationMenuContent, typeof RdxNavigationMenuLink, typeof RdxNavigationMenuPortal, typeof RdxNavigationMenuPortalPresence, typeof RdxNavigationMenuBackdrop, typeof RdxNavigationMenuPositioner, typeof RdxNavigationMenuPopup, typeof RdxNavigationMenuArrow, typeof RdxNavigationMenuViewport]>;
|
|
484
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<RdxNavigationMenuModule>;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export { RdxNavigationMenuArrow, RdxNavigationMenuBackdrop, RdxNavigationMenuContent, RdxNavigationMenuIcon, RdxNavigationMenuItem, RdxNavigationMenuLink, RdxNavigationMenuList, RdxNavigationMenuModule, RdxNavigationMenuPopup, RdxNavigationMenuPortal, RdxNavigationMenuPortalPresence, RdxNavigationMenuPositioner, RdxNavigationMenuRoot, RdxNavigationMenuTrigger, RdxNavigationMenuViewport, injectNavigationMenuRootContext, navigationMenuImports, provideNavigationMenuRootContext };
|
|
488
|
+
export type { NavigationMenuDirection, NavigationMenuOrientation, RdxNavigationMenuContentEntry, RdxNavigationMenuOpenChange, RdxNavigationMenuOpenChangeReason, RdxNavigationMenuRootContext };
|