@radix-ng/primitives 0.50.0 → 0.51.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 +41 -40
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +22 -22
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-arrow.mjs +6 -6
- 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 +22 -22
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- 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 +51 -41
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +28 -28
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collection.mjs +89 -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 +36 -36
- package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +33 -24
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-cropper.mjs +54 -53
- package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-date-field.mjs +48 -47
- package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +34 -34
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +31 -33
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +41 -43
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-editable.mjs +20 -20
- package/fesm2022/radix-ng-primitives-editable.mjs.map +1 -1
- 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 +7 -7
- package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-hover-card.mjs +69 -77
- package/fesm2022/radix-ng-primitives-hover-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-label.mjs +7 -7
- package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menu.mjs +65 -70
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +31 -31
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs +113 -105
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-number-field.mjs +48 -47
- 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 +67 -71
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popper.mjs +61 -56
- package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-portal.mjs +7 -7
- package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-presence.mjs +4 -4
- package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +16 -16
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +38 -37
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +38 -34
- package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +41 -43
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select2.mjs +897 -0
- package/fesm2022/radix-ng-primitives-select2.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-separator.mjs +11 -17
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +88 -84
- package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-stepper.mjs +55 -53
- package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +22 -30
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +38 -38
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-time-field.mjs +63 -78
- package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +24 -24
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +11 -11
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toolbar.mjs +31 -29
- package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +69 -77
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip2.mjs +57 -62
- package/fesm2022/radix-ng-primitives-tooltip2.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +31 -31
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives.mjs.map +1 -1
- package/package.json +63 -54
- package/select2/README.md +3 -0
- package/{accordion/index.d.ts → types/radix-ng-primitives-accordion.d.ts} +61 -60
- package/{calendar/index.d.ts → types/radix-ng-primitives-calendar.d.ts} +1 -1
- package/{checkbox/index.d.ts → types/radix-ng-primitives-checkbox.d.ts} +31 -27
- package/{collapsible/index.d.ts → types/radix-ng-primitives-collapsible.d.ts} +20 -19
- package/types/radix-ng-primitives-collection.d.ts +40 -0
- package/{core/index.d.ts → types/radix-ng-primitives-core.d.ts} +6 -2
- package/{cropper/index.d.ts → types/radix-ng-primitives-cropper.d.ts} +4 -3
- package/{date-field/index.d.ts → types/radix-ng-primitives-date-field.d.ts} +4 -4
- package/{dialog/index.d.ts → types/radix-ng-primitives-dialog.d.ts} +2 -1
- package/{hover-card/index.d.ts → types/radix-ng-primitives-hover-card.d.ts} +3 -4
- package/{menu/index.d.ts → types/radix-ng-primitives-menu.d.ts} +1 -1
- package/{navigation-menu/index.d.ts → types/radix-ng-primitives-navigation-menu.d.ts} +47 -46
- package/{number-field/index.d.ts → types/radix-ng-primitives-number-field.d.ts} +13 -12
- package/{popover/index.d.ts → types/radix-ng-primitives-popover.d.ts} +3 -4
- package/{popper/index.d.ts → types/radix-ng-primitives-popper.d.ts} +1 -0
- package/{progress/index.d.ts → types/radix-ng-primitives-progress.d.ts} +2 -1
- package/{radio/index.d.ts → types/radix-ng-primitives-radio.d.ts} +1 -1
- package/{roving-focus/index.d.ts → types/radix-ng-primitives-roving-focus.d.ts} +8 -6
- package/types/radix-ng-primitives-select2.d.ts +511 -0
- package/{slider/index.d.ts → types/radix-ng-primitives-slider.d.ts} +4 -4
- package/{stepper/index.d.ts → types/radix-ng-primitives-stepper.d.ts} +17 -16
- package/{switch/index.d.ts → types/radix-ng-primitives-switch.d.ts} +3 -2
- package/{tabs/index.d.ts → types/radix-ng-primitives-tabs.d.ts} +7 -6
- package/{time-field/index.d.ts → types/radix-ng-primitives-time-field.d.ts} +4 -4
- package/{toggle-group/index.d.ts → types/radix-ng-primitives-toggle-group.d.ts} +12 -11
- package/{tooltip/index.d.ts → types/radix-ng-primitives-tooltip.d.ts} +3 -4
- package/{tooltip2/index.d.ts → types/radix-ng-primitives-tooltip2.d.ts} +4 -4
- /package/{alert-dialog/index.d.ts → types/radix-ng-primitives-alert-dialog.d.ts} +0 -0
- /package/{arrow/index.d.ts → types/radix-ng-primitives-arrow.d.ts} +0 -0
- /package/{aspect-ratio/index.d.ts → types/radix-ng-primitives-aspect-ratio.d.ts} +0 -0
- /package/{avatar/index.d.ts → types/radix-ng-primitives-avatar.d.ts} +0 -0
- /package/{config/index.d.ts → types/radix-ng-primitives-config.d.ts} +0 -0
- /package/{context-menu/index.d.ts → types/radix-ng-primitives-context-menu.d.ts} +0 -0
- /package/{dismissable-layer/index.d.ts → types/radix-ng-primitives-dismissable-layer.d.ts} +0 -0
- /package/{dropdown-menu/index.d.ts → types/radix-ng-primitives-dropdown-menu.d.ts} +0 -0
- /package/{editable/index.d.ts → types/radix-ng-primitives-editable.d.ts} +0 -0
- /package/{focus-guards/index.d.ts → types/radix-ng-primitives-focus-guards.d.ts} +0 -0
- /package/{focus-scope/index.d.ts → types/radix-ng-primitives-focus-scope.d.ts} +0 -0
- /package/{label/index.d.ts → types/radix-ng-primitives-label.d.ts} +0 -0
- /package/{menubar/index.d.ts → types/radix-ng-primitives-menubar.d.ts} +0 -0
- /package/{pagination/index.d.ts → types/radix-ng-primitives-pagination.d.ts} +0 -0
- /package/{portal/index.d.ts → types/radix-ng-primitives-portal.d.ts} +0 -0
- /package/{presence/index.d.ts → types/radix-ng-primitives-presence.d.ts} +0 -0
- /package/{select/index.d.ts → types/radix-ng-primitives-select.d.ts} +0 -0
- /package/{separator/index.d.ts → types/radix-ng-primitives-separator.d.ts} +0 -0
- /package/{toggle/index.d.ts → types/radix-ng-primitives-toggle.d.ts} +0 -0
- /package/{toolbar/index.d.ts → types/radix-ng-primitives-toolbar.d.ts} +0 -0
- /package/{visually-hidden/index.d.ts → types/radix-ng-primitives-visually-hidden.d.ts} +0 -0
- /package/{index.d.ts → types/radix-ng-primitives.d.ts} +0 -0
|
@@ -16,15 +16,16 @@ class RdxNavigationMenuFocusProxyComponent {
|
|
|
16
16
|
this.proxyFocus = new EventEmitter();
|
|
17
17
|
}
|
|
18
18
|
onFocus(event) {
|
|
19
|
-
const
|
|
19
|
+
const focusEvent = event;
|
|
20
|
+
const prevFocusedElement = focusEvent.relatedTarget;
|
|
20
21
|
const wasTriggerFocused = prevFocusedElement === this.triggerElement;
|
|
21
22
|
const wasFocusFromContent = this.contentElement ? this.contentElement.contains(prevFocusedElement) : false;
|
|
22
23
|
if (wasTriggerFocused || !wasFocusFromContent) {
|
|
23
24
|
this.proxyFocus.emit(wasTriggerFocused ? 'start' : 'end');
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuFocusProxyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: RdxNavigationMenuFocusProxyComponent, isStandalone: true, selector: "rdx-navigation-menu-focus-proxy", inputs: { triggerElement: "triggerElement", contentElement: "contentElement" }, outputs: { proxyFocus: "proxyFocus" }, ngImport: i0, template: `
|
|
28
29
|
<span
|
|
29
30
|
[attr.tabindex]="0"
|
|
30
31
|
[attr.aria-hidden]="true"
|
|
@@ -34,7 +35,7 @@ class RdxNavigationMenuFocusProxyComponent {
|
|
|
34
35
|
></span>
|
|
35
36
|
`, isInline: true, dependencies: [{ kind: "directive", type: RdxVisuallyHiddenDirective, selector: "[rdxVisuallyHidden]", inputs: ["feature"] }] }); }
|
|
36
37
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuFocusProxyComponent, decorators: [{
|
|
38
39
|
type: Component,
|
|
39
40
|
args: [{
|
|
40
41
|
selector: 'rdx-navigation-menu-focus-proxy',
|
|
@@ -60,12 +61,12 @@ class RdxNavigationMenuAriaOwnsComponent {
|
|
|
60
61
|
constructor() {
|
|
61
62
|
this.contentId = '';
|
|
62
63
|
}
|
|
63
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
64
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuAriaOwnsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
65
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: RdxNavigationMenuAriaOwnsComponent, isStandalone: true, selector: "rdx-navigation-menu-aria-owns", inputs: { contentId: "contentId" }, ngImport: i0, template: `
|
|
65
66
|
<span [attr.aria-owns]="contentId" rdxVisuallyHidden feature="fully-hidden"></span>
|
|
66
67
|
`, isInline: true, dependencies: [{ kind: "directive", type: RdxVisuallyHiddenDirective, selector: "[rdxVisuallyHidden]", inputs: ["feature"] }] }); }
|
|
67
68
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuAriaOwnsComponent, decorators: [{
|
|
69
70
|
type: Component,
|
|
70
71
|
args: [{
|
|
71
72
|
selector: 'rdx-navigation-menu-aria-owns',
|
|
@@ -284,16 +285,16 @@ class RdxNavigationMenuItemDirective {
|
|
|
284
285
|
constructor() {
|
|
285
286
|
this.elementRef = inject(ElementRef);
|
|
286
287
|
this.context = injectNavigationMenu();
|
|
287
|
-
this.value = input('', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
288
|
+
this.value = input('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
288
289
|
/**
|
|
289
290
|
* @ignore
|
|
290
291
|
*/
|
|
291
|
-
this.triggerOrLink = contentChild(RdxNavigationMenuFocusableOption, ...(ngDevMode ? [{ debugName: "triggerOrLink" }] : []));
|
|
292
|
-
this.triggerRef = signal(null, ...(ngDevMode ? [{ debugName: "triggerRef" }] : []));
|
|
293
|
-
this.contentRef = signal(null, ...(ngDevMode ? [{ debugName: "contentRef" }] : []));
|
|
294
|
-
this.focusProxyRef = signal(null, ...(ngDevMode ? [{ debugName: "focusProxyRef" }] : []));
|
|
295
|
-
this.wasEscapeCloseRef = signal(false, ...(ngDevMode ? [{ debugName: "wasEscapeCloseRef" }] : []));
|
|
296
|
-
this._restoreContentTabOrderRef = signal(null, ...(ngDevMode ? [{ debugName: "_restoreContentTabOrderRef" }] : []));
|
|
292
|
+
this.triggerOrLink = contentChild(RdxNavigationMenuFocusableOption, ...(ngDevMode ? [{ debugName: "triggerOrLink" }] : /* istanbul ignore next */ []));
|
|
293
|
+
this.triggerRef = signal(null, ...(ngDevMode ? [{ debugName: "triggerRef" }] : /* istanbul ignore next */ []));
|
|
294
|
+
this.contentRef = signal(null, ...(ngDevMode ? [{ debugName: "contentRef" }] : /* istanbul ignore next */ []));
|
|
295
|
+
this.focusProxyRef = signal(null, ...(ngDevMode ? [{ debugName: "focusProxyRef" }] : /* istanbul ignore next */ []));
|
|
296
|
+
this.wasEscapeCloseRef = signal(false, ...(ngDevMode ? [{ debugName: "wasEscapeCloseRef" }] : /* istanbul ignore next */ []));
|
|
297
|
+
this._restoreContentTabOrderRef = signal(null, ...(ngDevMode ? [{ debugName: "_restoreContentTabOrderRef" }] : /* istanbul ignore next */ []));
|
|
297
298
|
}
|
|
298
299
|
get restoreContentTabOrderRef() {
|
|
299
300
|
return this._restoreContentTabOrderRef;
|
|
@@ -404,10 +405,10 @@ class RdxNavigationMenuItemDirective {
|
|
|
404
405
|
onRootContentClose() {
|
|
405
406
|
this.onContentFocusOutside();
|
|
406
407
|
}
|
|
407
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
408
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
408
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
409
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.9", type: RdxNavigationMenuItemDirective, isStandalone: true, selector: "[rdxNavigationMenuItem]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.value": "value()" } }, queries: [{ propertyName: "triggerOrLink", first: true, predicate: RdxNavigationMenuFocusableOption, descendants: true, isSignal: true }], exportAs: ["rdxNavigationMenuItem"], ngImport: i0 }); }
|
|
409
410
|
}
|
|
410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuItemDirective, decorators: [{
|
|
411
412
|
type: Directive,
|
|
412
413
|
args: [{
|
|
413
414
|
selector: '[rdxNavigationMenuItem]',
|
|
@@ -416,7 +417,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
416
417
|
},
|
|
417
418
|
exportAs: 'rdxNavigationMenuItem'
|
|
418
419
|
}]
|
|
419
|
-
}] });
|
|
420
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], triggerOrLink: [{ type: i0.ContentChild, args: [i0.forwardRef(() => RdxNavigationMenuFocusableOption), { isSignal: true }] }] } });
|
|
420
421
|
|
|
421
422
|
class RdxNavigationMenuContentDirective {
|
|
422
423
|
constructor() {
|
|
@@ -431,7 +432,7 @@ class RdxNavigationMenuContentDirective {
|
|
|
431
432
|
* Useful for animations or SEO.
|
|
432
433
|
* @default false
|
|
433
434
|
*/
|
|
434
|
-
this.forceMount = input(false, ...(ngDevMode ?
|
|
435
|
+
this.forceMount = input(false, { ...(ngDevMode ? { debugName: "forceMount" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
435
436
|
/** @ignore */
|
|
436
437
|
this.contentId = makeContentId(this.context.baseId, this.item.value());
|
|
437
438
|
/** @ignore */
|
|
@@ -503,10 +504,10 @@ class RdxNavigationMenuContentDirective {
|
|
|
503
504
|
const itemValues = Array.from(this.context.viewportContent?.() ?? new Map()).map(([value]) => value);
|
|
504
505
|
return getMotionAttribute(this.context.value(), this.context.previousValue(), this.item.value(), itemValues, this.context.dir);
|
|
505
506
|
}
|
|
506
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
507
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
507
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
508
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: RdxNavigationMenuContentDirective, isStandalone: true, selector: "[rdxNavigationMenuContent]", inputs: { rdxNavigationMenuContent: { classPropertyName: "rdxNavigationMenuContent", publicName: "rdxNavigationMenuContent", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, forceMount: { classPropertyName: "forceMount", publicName: "forceMount", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
508
509
|
}
|
|
509
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuContentDirective, decorators: [{
|
|
510
511
|
type: Directive,
|
|
511
512
|
args: [{
|
|
512
513
|
selector: '[rdxNavigationMenuContent]'
|
|
@@ -514,7 +515,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
514
515
|
}], propDecorators: { rdxNavigationMenuContent: [{
|
|
515
516
|
type: Input,
|
|
516
517
|
args: [{ transform: booleanAttribute }]
|
|
517
|
-
}] } });
|
|
518
|
+
}], forceMount: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceMount", required: false }] }] } });
|
|
518
519
|
|
|
519
520
|
class RdxNavigationMenuIndicatorDirective {
|
|
520
521
|
constructor() {
|
|
@@ -526,14 +527,14 @@ class RdxNavigationMenuIndicatorDirective {
|
|
|
526
527
|
* Useful for animations.
|
|
527
528
|
* @default false
|
|
528
529
|
*/
|
|
529
|
-
this.forceMount = input(false, ...(ngDevMode ?
|
|
530
|
+
this.forceMount = input(false, { ...(ngDevMode ? { debugName: "forceMount" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
530
531
|
/** @ignore */
|
|
531
|
-
this._position = signal(null, ...(ngDevMode ? [{ debugName: "_position" }] : []));
|
|
532
|
+
this._position = signal(null, ...(ngDevMode ? [{ debugName: "_position" }] : /* istanbul ignore next */ []));
|
|
532
533
|
/** @ignore */
|
|
533
|
-
this._activeTrigger = signal(null, ...(ngDevMode ? [{ debugName: "_activeTrigger" }] : []));
|
|
534
|
+
this._activeTrigger = signal(null, ...(ngDevMode ? [{ debugName: "_activeTrigger" }] : /* istanbul ignore next */ []));
|
|
534
535
|
/** @ignore */
|
|
535
536
|
this._resizeObserver = new ResizeObserver(() => this.updatePosition());
|
|
536
|
-
this.isVisible = computed(() => Boolean(this.context.value() || this.forceMount()), ...(ngDevMode ? [{ debugName: "isVisible" }] : []));
|
|
537
|
+
this.isVisible = computed(() => Boolean(this.context.value() || this.forceMount()), ...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
|
|
537
538
|
// set up effect for tracking active trigger and position
|
|
538
539
|
effect(() => {
|
|
539
540
|
// this effect runs when the current value changes
|
|
@@ -618,10 +619,10 @@ class RdxNavigationMenuIndicatorDirective {
|
|
|
618
619
|
});
|
|
619
620
|
}
|
|
620
621
|
}
|
|
621
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
622
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
622
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
623
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: RdxNavigationMenuIndicatorDirective, isStandalone: true, selector: "[rdxNavigationMenuIndicator]", inputs: { forceMount: { classPropertyName: "forceMount", publicName: "forceMount", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "attr.data-state": "isVisible() ? \"visible\" : \"hidden\"", "attr.data-orientation": "context.orientation", "style.display": "isVisible() ? null : \"none\"" } }, ngImport: i0 }); }
|
|
623
624
|
}
|
|
624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuIndicatorDirective, decorators: [{
|
|
625
626
|
type: Directive,
|
|
626
627
|
args: [{
|
|
627
628
|
selector: '[rdxNavigationMenuIndicator]',
|
|
@@ -632,7 +633,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
632
633
|
'aria-hidden': 'true'
|
|
633
634
|
}
|
|
634
635
|
}]
|
|
635
|
-
}], ctorParameters: () => [] });
|
|
636
|
+
}], ctorParameters: () => [], propDecorators: { forceMount: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceMount", required: false }] }] } });
|
|
636
637
|
|
|
637
638
|
const LINK_SELECT = 'navigationMenu.linkSelect';
|
|
638
639
|
const ROOT_CONTENT_DISMISS = 'navigationMenu.rootContentDismiss';
|
|
@@ -641,8 +642,8 @@ class RdxNavigationMenuLinkDirective extends RdxNavigationMenuFocusableOption {
|
|
|
641
642
|
super(...arguments);
|
|
642
643
|
this.rovingFocusItem = inject(RdxRovingFocusItemDirective, { self: true });
|
|
643
644
|
this.uniqueId = generateId();
|
|
644
|
-
this.active = input(false, ...(ngDevMode ?
|
|
645
|
-
this.onSelect = input(...(ngDevMode ? [undefined, { debugName: "onSelect" }] : []));
|
|
645
|
+
this.active = input(false, { ...(ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
646
|
+
this.onSelect = input(...(ngDevMode ? [undefined, { debugName: "onSelect" }] : /* istanbul ignore next */ []));
|
|
646
647
|
this.elementRef = inject(ElementRef);
|
|
647
648
|
}
|
|
648
649
|
ngOnInit() {
|
|
@@ -652,6 +653,7 @@ class RdxNavigationMenuLinkDirective extends RdxNavigationMenuFocusableOption {
|
|
|
652
653
|
this.elementRef.nativeElement.focus();
|
|
653
654
|
}
|
|
654
655
|
onClick(event) {
|
|
656
|
+
const mouseEvent = event;
|
|
655
657
|
const target = event.target;
|
|
656
658
|
// dispatch link select event
|
|
657
659
|
const linkSelectEvent = new CustomEvent(LINK_SELECT, {
|
|
@@ -666,7 +668,7 @@ class RdxNavigationMenuLinkDirective extends RdxNavigationMenuFocusableOption {
|
|
|
666
668
|
// dispatch event
|
|
667
669
|
target.dispatchEvent(linkSelectEvent);
|
|
668
670
|
// if not prevented and not meta key, dismiss content
|
|
669
|
-
if (!linkSelectEvent.defaultPrevented && !
|
|
671
|
+
if (!linkSelectEvent.defaultPrevented && !mouseEvent.metaKey) {
|
|
670
672
|
const dismissEvent = new CustomEvent(ROOT_CONTENT_DISMISS, {
|
|
671
673
|
bubbles: true,
|
|
672
674
|
cancelable: true
|
|
@@ -675,8 +677,9 @@ class RdxNavigationMenuLinkDirective extends RdxNavigationMenuFocusableOption {
|
|
|
675
677
|
}
|
|
676
678
|
}
|
|
677
679
|
onKeydown(event) {
|
|
680
|
+
const keyEvent = event;
|
|
678
681
|
// activate link on Enter or Space
|
|
679
|
-
if (
|
|
682
|
+
if (keyEvent.key === ENTER || keyEvent.key === SPACE) {
|
|
680
683
|
// prevent default behavior like scrolling (Space) or form submission (Enter) BEFORE simulating the click.
|
|
681
684
|
event.preventDefault();
|
|
682
685
|
// simulate a click event on the link element itself
|
|
@@ -685,10 +688,10 @@ class RdxNavigationMenuLinkDirective extends RdxNavigationMenuFocusableOption {
|
|
|
685
688
|
return;
|
|
686
689
|
}
|
|
687
690
|
}
|
|
688
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
689
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
691
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuLinkDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
692
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: RdxNavigationMenuLinkDirective, isStandalone: true, selector: "[rdxNavigationMenuLink]", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, onSelect: { classPropertyName: "onSelect", publicName: "onSelect", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick($event)", "keydown": "onKeydown($event)" }, properties: { "attr.data-active": "active() ? \"\" : undefined", "attr.aria-current": "active() ? \"page\" : undefined" } }, providers: [{ provide: RdxNavigationMenuFocusableOption, useExisting: RdxNavigationMenuLinkDirective }], usesInheritance: true, hostDirectives: [{ directive: i1.RdxRovingFocusItemDirective, inputs: ["focusable", "focusable"] }], ngImport: i0 }); }
|
|
690
693
|
}
|
|
691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuLinkDirective, decorators: [{
|
|
692
695
|
type: Directive,
|
|
693
696
|
args: [{
|
|
694
697
|
selector: '[rdxNavigationMenuLink]',
|
|
@@ -701,7 +704,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
701
704
|
},
|
|
702
705
|
providers: [{ provide: RdxNavigationMenuFocusableOption, useExisting: RdxNavigationMenuLinkDirective }]
|
|
703
706
|
}]
|
|
704
|
-
}] });
|
|
707
|
+
}], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], onSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "onSelect", required: false }] }] } });
|
|
705
708
|
|
|
706
709
|
class RdxNavigationMenuListDirective {
|
|
707
710
|
constructor() {
|
|
@@ -713,7 +716,7 @@ class RdxNavigationMenuListDirective {
|
|
|
713
716
|
* @private
|
|
714
717
|
* @ignore
|
|
715
718
|
*/
|
|
716
|
-
this.items = contentChildren(forwardRef(() => RdxNavigationMenuItemDirective), ...(ngDevMode ?
|
|
719
|
+
this.items = contentChildren(forwardRef(() => RdxNavigationMenuItemDirective), { ...(ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {}), descendants: true });
|
|
717
720
|
}
|
|
718
721
|
/**
|
|
719
722
|
* @ignore
|
|
@@ -767,16 +770,17 @@ class RdxNavigationMenuListDirective {
|
|
|
767
770
|
* @ignore
|
|
768
771
|
*/
|
|
769
772
|
onKeydown(event) {
|
|
773
|
+
const keyEvent = event;
|
|
770
774
|
if (!this.keyManager.activeItem) {
|
|
771
775
|
this.keyManager.setFirstItemActive();
|
|
772
776
|
}
|
|
773
|
-
if (
|
|
777
|
+
if (keyEvent.key === TAB && keyEvent.shiftKey) {
|
|
774
778
|
if (this.keyManager.activeItemIndex === 0)
|
|
775
779
|
return;
|
|
776
780
|
this.keyManager.setPreviousItemActive();
|
|
777
781
|
event.preventDefault();
|
|
778
782
|
}
|
|
779
|
-
else if (
|
|
783
|
+
else if (keyEvent.key === TAB) {
|
|
780
784
|
const items = this.items();
|
|
781
785
|
if (this.keyManager.activeItemIndex === items.length - 1) {
|
|
782
786
|
return;
|
|
@@ -785,7 +789,7 @@ class RdxNavigationMenuListDirective {
|
|
|
785
789
|
event.preventDefault();
|
|
786
790
|
}
|
|
787
791
|
else {
|
|
788
|
-
this.keyManager.onKeydown(
|
|
792
|
+
this.keyManager.onKeydown(keyEvent);
|
|
789
793
|
}
|
|
790
794
|
}
|
|
791
795
|
/**
|
|
@@ -794,10 +798,10 @@ class RdxNavigationMenuListDirective {
|
|
|
794
798
|
setActiveItem(item) {
|
|
795
799
|
this.keyManager.setActiveItem(item);
|
|
796
800
|
}
|
|
797
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
798
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
801
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
802
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.9", type: RdxNavigationMenuListDirective, isStandalone: true, selector: "[rdxNavigationMenuList]", host: { attributes: { "role": "menubar" }, listeners: { "keydown": "onKeydown($event)" } }, queries: [{ propertyName: "items", predicate: i0.forwardRef(() => RdxNavigationMenuItemDirective), descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.RdxRovingFocusGroupDirective }], ngImport: i0 }); }
|
|
799
803
|
}
|
|
800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuListDirective, decorators: [{
|
|
801
805
|
type: Directive,
|
|
802
806
|
args: [{
|
|
803
807
|
selector: '[rdxNavigationMenuList]',
|
|
@@ -807,7 +811,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
807
811
|
'(keydown)': 'onKeydown($event)'
|
|
808
812
|
}
|
|
809
813
|
}]
|
|
810
|
-
}] });
|
|
814
|
+
}], propDecorators: { items: [{ type: i0.ContentChildren, args: [forwardRef(() => RdxNavigationMenuItemDirective), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
811
815
|
|
|
812
816
|
// define action types for clearer intent
|
|
813
817
|
var RdxNavigationMenuAction;
|
|
@@ -833,14 +837,14 @@ class RdxNavigationMenuDirective {
|
|
|
833
837
|
this.document = injectDocument();
|
|
834
838
|
this.window = injectWindow();
|
|
835
839
|
// State
|
|
836
|
-
this.#value = signal('', ...(ngDevMode ? [{ debugName: "#value" }] : []));
|
|
837
|
-
this.#previousValue = signal('', ...(ngDevMode ? [{ debugName: "#previousValue" }] : []));
|
|
840
|
+
this.#value = signal('', ...(ngDevMode ? [{ debugName: "#value" }] : /* istanbul ignore next */ []));
|
|
841
|
+
this.#previousValue = signal('', ...(ngDevMode ? [{ debugName: "#previousValue" }] : /* istanbul ignore next */ []));
|
|
838
842
|
this.baseId = `rdx-nav-menu-${generateId()}`;
|
|
839
|
-
this.#indicatorTrack = signal(null, ...(ngDevMode ? [{ debugName: "#indicatorTrack" }] : []));
|
|
840
|
-
this.#viewport = signal(null, ...(ngDevMode ? [{ debugName: "#viewport" }] : []));
|
|
841
|
-
this.#viewportContent = signal(new Map(), ...(ngDevMode ? [{ debugName: "#viewportContent" }] : []));
|
|
842
|
-
this.#rootNavigationMenu = signal(this.elementRef.nativeElement, ...(ngDevMode ? [{ debugName: "#rootNavigationMenu" }] : []));
|
|
843
|
-
this.#userDismissedByClick = signal(false, ...(ngDevMode ? [{ debugName: "#userDismissedByClick" }] : []));
|
|
843
|
+
this.#indicatorTrack = signal(null, ...(ngDevMode ? [{ debugName: "#indicatorTrack" }] : /* istanbul ignore next */ []));
|
|
844
|
+
this.#viewport = signal(null, ...(ngDevMode ? [{ debugName: "#viewport" }] : /* istanbul ignore next */ []));
|
|
845
|
+
this.#viewportContent = signal(new Map(), ...(ngDevMode ? [{ debugName: "#viewportContent" }] : /* istanbul ignore next */ []));
|
|
846
|
+
this.#rootNavigationMenu = signal(this.elementRef.nativeElement, ...(ngDevMode ? [{ debugName: "#rootNavigationMenu" }] : /* istanbul ignore next */ []));
|
|
847
|
+
this.#userDismissedByClick = signal(false, ...(ngDevMode ? [{ debugName: "#userDismissedByClick" }] : /* istanbul ignore next */ []));
|
|
844
848
|
this.userDismissedByClick = () => this.#userDismissedByClick();
|
|
845
849
|
this.resetUserDismissed = () => this.#userDismissedByClick.set(false);
|
|
846
850
|
// delay timers
|
|
@@ -848,11 +852,11 @@ class RdxNavigationMenuDirective {
|
|
|
848
852
|
this.closeTimerRef = 0;
|
|
849
853
|
this.skipDelayTimerRef = 0;
|
|
850
854
|
this.recentlyActivatedTimerRef = 0;
|
|
851
|
-
this.recentlyActivatedItem = signal(null, ...(ngDevMode ? [{ debugName: "recentlyActivatedItem" }] : []));
|
|
852
|
-
this.#isOpenDelayed = signal(true, ...(ngDevMode ? [{ debugName: "#isOpenDelayed" }] : []));
|
|
855
|
+
this.recentlyActivatedItem = signal(null, ...(ngDevMode ? [{ debugName: "recentlyActivatedItem" }] : /* istanbul ignore next */ []));
|
|
856
|
+
this.#isOpenDelayed = signal(true, ...(ngDevMode ? [{ debugName: "#isOpenDelayed" }] : /* istanbul ignore next */ []));
|
|
853
857
|
// pointer tracking
|
|
854
|
-
this.#isPointerOverContent = signal(false, ...(ngDevMode ? [{ debugName: "#isPointerOverContent" }] : []));
|
|
855
|
-
this.#isPointerOverTrigger = signal(false, ...(ngDevMode ? [{ debugName: "#isPointerOverTrigger" }] : []));
|
|
858
|
+
this.#isPointerOverContent = signal(false, ...(ngDevMode ? [{ debugName: "#isPointerOverContent" }] : /* istanbul ignore next */ []));
|
|
859
|
+
this.#isPointerOverTrigger = signal(false, ...(ngDevMode ? [{ debugName: "#isPointerOverTrigger" }] : /* istanbul ignore next */ []));
|
|
856
860
|
this.documentMouseLeaveHandler = null;
|
|
857
861
|
this.actionSubject$ = new Subject();
|
|
858
862
|
this.orientation = 'horizontal';
|
|
@@ -865,7 +869,7 @@ class RdxNavigationMenuDirective {
|
|
|
865
869
|
this.cssOpeningAnimation = false;
|
|
866
870
|
this.cssClosingAnimation = false;
|
|
867
871
|
this.isRootMenu = true;
|
|
868
|
-
this.cssAnimationStatus = signal(null, ...(ngDevMode ? [{ debugName: "cssAnimationStatus" }] : []));
|
|
872
|
+
this.cssAnimationStatus = signal(null, ...(ngDevMode ? [{ debugName: "cssAnimationStatus" }] : /* istanbul ignore next */ []));
|
|
869
873
|
// exposed state as functions for the token
|
|
870
874
|
this.value = () => this.#value();
|
|
871
875
|
this.previousValue = () => this.#previousValue();
|
|
@@ -1037,10 +1041,10 @@ class RdxNavigationMenuDirective {
|
|
|
1037
1041
|
}, this.delayDuration);
|
|
1038
1042
|
}
|
|
1039
1043
|
}
|
|
1040
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1041
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
1044
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1045
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "21.2.9", type: RdxNavigationMenuDirective, isStandalone: true, selector: "[rdxNavigationMenu]", inputs: { orientation: "orientation", dir: "dir", clickIgnoreDuration: ["clickIgnoreDuration", "clickIgnoreDuration", numberAttribute], delayDuration: ["delayDuration", "delayDuration", numberAttribute], skipDelayDuration: ["skipDelayDuration", "skipDelayDuration", numberAttribute], loop: ["loop", "loop", booleanAttribute], cssAnimation: ["cssAnimation", "cssAnimation", booleanAttribute], cssOpeningAnimation: ["cssOpeningAnimation", "cssOpeningAnimation", booleanAttribute], cssClosingAnimation: ["cssClosingAnimation", "cssClosingAnimation", booleanAttribute] }, host: { attributes: { "aria-label": "Main", "role": "navigation" }, properties: { "attr.data-orientation": "orientation", "attr.dir": "dir" } }, providers: [provideNavigationMenuContext(RdxNavigationMenuDirective)], exportAs: ["rdxNavigationMenu"], ngImport: i0 }); }
|
|
1042
1046
|
}
|
|
1043
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuDirective, decorators: [{
|
|
1044
1048
|
type: Directive,
|
|
1045
1049
|
args: [{
|
|
1046
1050
|
selector: '[rdxNavigationMenu]',
|
|
@@ -1082,10 +1086,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
1082
1086
|
|
|
1083
1087
|
class RdxNavigationMenuSubDirective {
|
|
1084
1088
|
constructor() {
|
|
1085
|
-
this.orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : []));
|
|
1089
|
+
this.orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
1086
1090
|
this.valueChange = output();
|
|
1087
|
-
this.value = signal('', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
1088
|
-
this.previousValue = signal('', ...(ngDevMode ? [{ debugName: "previousValue" }] : []));
|
|
1091
|
+
this.value = signal('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1092
|
+
this.previousValue = signal('', ...(ngDevMode ? [{ debugName: "previousValue" }] : /* istanbul ignore next */ []));
|
|
1089
1093
|
this.baseId = `rdx-nav-menu-sub-${generateId()}`;
|
|
1090
1094
|
this.isRootMenu = false;
|
|
1091
1095
|
this.parent = inject(RdxNavigationMenuDirective, { optional: true });
|
|
@@ -1117,10 +1121,10 @@ class RdxNavigationMenuSubDirective {
|
|
|
1117
1121
|
this.value.set(value);
|
|
1118
1122
|
this.valueChange.emit(value);
|
|
1119
1123
|
}
|
|
1120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1121
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuSubDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1125
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: RdxNavigationMenuSubDirective, isStandalone: true, selector: "[rdxNavigationMenuSub]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.data-orientation": "orientation()" } }, providers: [provideNavigationMenuContext(RdxNavigationMenuSubDirective)], ngImport: i0 }); }
|
|
1122
1126
|
}
|
|
1123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuSubDirective, decorators: [{
|
|
1124
1128
|
type: Directive,
|
|
1125
1129
|
args: [{
|
|
1126
1130
|
selector: '[rdxNavigationMenuSub]',
|
|
@@ -1129,9 +1133,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
1129
1133
|
'[attr.data-orientation]': 'orientation()'
|
|
1130
1134
|
}
|
|
1131
1135
|
}]
|
|
1132
|
-
}], propDecorators: { defaultValue: [{
|
|
1136
|
+
}], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], defaultValue: [{
|
|
1133
1137
|
type: Input
|
|
1134
|
-
}] } });
|
|
1138
|
+
}], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
1135
1139
|
|
|
1136
1140
|
class RdxNavigationMenuTriggerDirective extends RdxNavigationMenuFocusableOption {
|
|
1137
1141
|
constructor() {
|
|
@@ -1142,13 +1146,13 @@ class RdxNavigationMenuTriggerDirective extends RdxNavigationMenuFocusableOption
|
|
|
1142
1146
|
this.rovingFocusItem = inject(RdxRovingFocusItemDirective, { self: true });
|
|
1143
1147
|
this.elementRef = inject(ElementRef);
|
|
1144
1148
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
1145
|
-
this.disabled = input(false, ...(ngDevMode ?
|
|
1146
|
-
this.openOnHover = input(true, ...(ngDevMode ?
|
|
1149
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1150
|
+
this.openOnHover = input(true, { ...(ngDevMode ? { debugName: "openOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1147
1151
|
this.triggerId = makeTriggerId(this.context.baseId, this.item.value());
|
|
1148
1152
|
this.contentId = makeContentId(this.context.baseId, this.item.value());
|
|
1149
1153
|
this.open = computed(() => {
|
|
1150
1154
|
return this.item.value() === this.context.value();
|
|
1151
|
-
}, ...(ngDevMode ? [{ debugName: "open" }] : []));
|
|
1155
|
+
}, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
1152
1156
|
this.focusProxyRef = null;
|
|
1153
1157
|
this.ariaOwnsRef = null;
|
|
1154
1158
|
this.hasPointerMoveOpened = false;
|
|
@@ -1229,8 +1233,9 @@ class RdxNavigationMenuTriggerDirective extends RdxNavigationMenuFocusableOption
|
|
|
1229
1233
|
}
|
|
1230
1234
|
}
|
|
1231
1235
|
onPointerMove(event) {
|
|
1236
|
+
const pointerEvent = event;
|
|
1232
1237
|
// ignore if not a mouse event, disabled, closed by click/escape, or already opened by this move
|
|
1233
|
-
if (
|
|
1238
|
+
if (pointerEvent.pointerType !== 'mouse' ||
|
|
1234
1239
|
this.disabled() ||
|
|
1235
1240
|
this.wasClickClose ||
|
|
1236
1241
|
this.item.wasEscapeCloseRef() ||
|
|
@@ -1241,8 +1246,9 @@ class RdxNavigationMenuTriggerDirective extends RdxNavigationMenuFocusableOption
|
|
|
1241
1246
|
this.hasPointerMoveOpened = true;
|
|
1242
1247
|
}
|
|
1243
1248
|
onPointerLeave(event) {
|
|
1249
|
+
const pointerEvent = event;
|
|
1244
1250
|
// ignore if not a mouse event or disabled
|
|
1245
|
-
if (
|
|
1251
|
+
if (pointerEvent.pointerType !== 'mouse' || this.disabled() || !isRootNavigationMenu(this.context)) {
|
|
1246
1252
|
return;
|
|
1247
1253
|
}
|
|
1248
1254
|
this.context.setTriggerPointerState?.(false); // Update context state
|
|
@@ -1274,9 +1280,10 @@ class RdxNavigationMenuTriggerDirective extends RdxNavigationMenuFocusableOption
|
|
|
1274
1280
|
}
|
|
1275
1281
|
}
|
|
1276
1282
|
onKeydown(event) {
|
|
1283
|
+
const keyEvent = event;
|
|
1277
1284
|
if (this.disabled())
|
|
1278
1285
|
return;
|
|
1279
|
-
if (
|
|
1286
|
+
if (keyEvent.key === ENTER || keyEvent.key === SPACE) {
|
|
1280
1287
|
event.preventDefault(); // prevent default button behavior
|
|
1281
1288
|
this.onClick();
|
|
1282
1289
|
// if menu was opened by this keypress, move focus into the content
|
|
@@ -1289,13 +1296,13 @@ class RdxNavigationMenuTriggerDirective extends RdxNavigationMenuFocusableOption
|
|
|
1289
1296
|
const isHorizontal = this.context.orientation === 'horizontal';
|
|
1290
1297
|
const isRTL = this.context.dir === 'rtl';
|
|
1291
1298
|
// handle `ArrowDown` specifically for viewport navigation
|
|
1292
|
-
if (
|
|
1293
|
-
if (
|
|
1299
|
+
if (keyEvent.key === ARROW_DOWN || keyEvent.key === TAB) {
|
|
1300
|
+
if (keyEvent.key === ARROW_DOWN) {
|
|
1294
1301
|
event.preventDefault();
|
|
1295
1302
|
}
|
|
1296
1303
|
// if the menu is open, focus into the content
|
|
1297
1304
|
if (this.open()) {
|
|
1298
|
-
if (
|
|
1305
|
+
if (keyEvent.key === TAB) {
|
|
1299
1306
|
// needed to ensure that the `keyManager` on the list directive does not activate
|
|
1300
1307
|
// any focus updates, shifting focus to the subsequent focusable list item
|
|
1301
1308
|
event.stopImmediatePropagation();
|
|
@@ -1331,7 +1338,7 @@ class RdxNavigationMenuTriggerDirective extends RdxNavigationMenuFocusableOption
|
|
|
1331
1338
|
}
|
|
1332
1339
|
}
|
|
1333
1340
|
// handle ArrowUp in horizontal orientation
|
|
1334
|
-
if (isHorizontal &&
|
|
1341
|
+
if (isHorizontal && keyEvent.key === ARROW_UP) {
|
|
1335
1342
|
event.preventDefault();
|
|
1336
1343
|
// emulate a left key press to move to the previous item
|
|
1337
1344
|
const nextEvent = new KeyboardEvent('keydown', {
|
|
@@ -1344,7 +1351,7 @@ class RdxNavigationMenuTriggerDirective extends RdxNavigationMenuFocusableOption
|
|
|
1344
1351
|
// handle vertical navigation and entry into content
|
|
1345
1352
|
const verticalEntryKey = isRTL ? ARROW_LEFT : ARROW_RIGHT;
|
|
1346
1353
|
const entryKey = isHorizontal ? ARROW_DOWN : verticalEntryKey;
|
|
1347
|
-
if (this.item.contentRef() &&
|
|
1354
|
+
if (this.item.contentRef() && keyEvent.key === entryKey && keyEvent.key !== ARROW_DOWN) {
|
|
1348
1355
|
// Skip if it's ArrowDown as we already handled it above
|
|
1349
1356
|
event.preventDefault();
|
|
1350
1357
|
if (!this.open()) {
|
|
@@ -1360,10 +1367,10 @@ class RdxNavigationMenuTriggerDirective extends RdxNavigationMenuFocusableOption
|
|
|
1360
1367
|
return;
|
|
1361
1368
|
}
|
|
1362
1369
|
}
|
|
1363
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1364
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1370
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1371
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: RdxNavigationMenuTriggerDirective, isStandalone: true, selector: "[rdxNavigationMenuTrigger]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, openOnHover: { classPropertyName: "openOnHover", publicName: "openOnHover", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "pointerenter": "onPointerEnter()", "pointermove": "onPointerMove($event)", "pointerleave": "onPointerLeave($event)", "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "id": "triggerId", "attr.data-state": "open() ? \"open\" : \"closed\"", "attr.data-orientation": "context.orientation", "attr.data-disabled": "disabled() ? \"\" : undefined", "attr.disabled": "disabled() ? \"\" : undefined", "attr.aria-expanded": "open()", "attr.aria-controls": "contentId", "attr.aria-haspopup": "\"menu\"" } }, providers: [{ provide: RdxNavigationMenuFocusableOption, useExisting: RdxNavigationMenuTriggerDirective }], usesInheritance: true, hostDirectives: [{ directive: i1.RdxRovingFocusItemDirective }], ngImport: i0 }); }
|
|
1365
1372
|
}
|
|
1366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuTriggerDirective, decorators: [{
|
|
1367
1374
|
type: Directive,
|
|
1368
1375
|
args: [{
|
|
1369
1376
|
selector: '[rdxNavigationMenuTrigger]',
|
|
@@ -1373,7 +1380,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
1373
1380
|
'[attr.data-state]': 'open() ? "open" : "closed"',
|
|
1374
1381
|
'[attr.data-orientation]': 'context.orientation',
|
|
1375
1382
|
'[attr.data-disabled]': 'disabled() ? "" : undefined',
|
|
1376
|
-
'[disabled]': 'disabled() ?
|
|
1383
|
+
'[attr.disabled]': 'disabled() ? "" : undefined',
|
|
1377
1384
|
'[attr.aria-expanded]': 'open()',
|
|
1378
1385
|
'[attr.aria-controls]': 'contentId',
|
|
1379
1386
|
'[attr.aria-haspopup]': '"menu"',
|
|
@@ -1386,7 +1393,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
1386
1393
|
},
|
|
1387
1394
|
providers: [{ provide: RdxNavigationMenuFocusableOption, useExisting: RdxNavigationMenuTriggerDirective }]
|
|
1388
1395
|
}]
|
|
1389
|
-
}], ctorParameters: () => [] });
|
|
1396
|
+
}], ctorParameters: () => [], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], openOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "openOnHover", required: false }] }] } });
|
|
1390
1397
|
|
|
1391
1398
|
class RdxNavigationMenuViewportDirective {
|
|
1392
1399
|
constructor() {
|
|
@@ -1403,23 +1410,23 @@ class RdxNavigationMenuViewportDirective {
|
|
|
1403
1410
|
* Useful for animations.
|
|
1404
1411
|
* @default false
|
|
1405
1412
|
*/
|
|
1406
|
-
this.forceMount = input(false, ...(ngDevMode ?
|
|
1407
|
-
this._contentNodes = signal(new Map(), ...(ngDevMode ? [{ debugName: "_contentNodes" }] : []));
|
|
1408
|
-
this._activeContentNode = signal(null, ...(ngDevMode ? [{ debugName: "_activeContentNode" }] : []));
|
|
1409
|
-
this._leavingContentNode = signal(null, ...(ngDevMode ? [{ debugName: "_leavingContentNode" }] : []));
|
|
1410
|
-
this._viewportSize = signal(null, ...(ngDevMode ? [{ debugName: "_viewportSize" }] : []));
|
|
1413
|
+
this.forceMount = input(false, { ...(ngDevMode ? { debugName: "forceMount" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1414
|
+
this._contentNodes = signal(new Map(), ...(ngDevMode ? [{ debugName: "_contentNodes" }] : /* istanbul ignore next */ []));
|
|
1415
|
+
this._activeContentNode = signal(null, ...(ngDevMode ? [{ debugName: "_activeContentNode" }] : /* istanbul ignore next */ []));
|
|
1416
|
+
this._leavingContentNode = signal(null, ...(ngDevMode ? [{ debugName: "_leavingContentNode" }] : /* istanbul ignore next */ []));
|
|
1417
|
+
this._viewportSize = signal(null, ...(ngDevMode ? [{ debugName: "_viewportSize" }] : /* istanbul ignore next */ []));
|
|
1411
1418
|
this.activeContentValue = computed(() => {
|
|
1412
1419
|
if (!isRootNavigationMenu(this.context))
|
|
1413
1420
|
return null;
|
|
1414
1421
|
return this.context.value() || this.context.previousValue();
|
|
1415
|
-
}, ...(ngDevMode ? [{ debugName: "activeContentValue" }] : []));
|
|
1422
|
+
}, ...(ngDevMode ? [{ debugName: "activeContentValue" }] : /* istanbul ignore next */ []));
|
|
1416
1423
|
this.isOpen = computed(() => {
|
|
1417
1424
|
if (!isRootNavigationMenu(this.context))
|
|
1418
1425
|
return false;
|
|
1419
1426
|
return Boolean(this.context.value() || this.forceMount());
|
|
1420
|
-
}, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
1421
|
-
this.dataState = computed(() => getOpenStateLabel(this.isOpen()), ...(ngDevMode ? [{ debugName: "dataState" }] : []));
|
|
1422
|
-
this.viewportSize = computed(() => this._viewportSize(), ...(ngDevMode ? [{ debugName: "viewportSize" }] : []));
|
|
1427
|
+
}, ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
1428
|
+
this.dataState = computed(() => getOpenStateLabel(this.isOpen()), ...(ngDevMode ? [{ debugName: "dataState" }] : /* istanbul ignore next */ []));
|
|
1429
|
+
this.viewportSize = computed(() => this._viewportSize(), ...(ngDevMode ? [{ debugName: "viewportSize" }] : /* istanbul ignore next */ []));
|
|
1423
1430
|
this._resizeObserver = new ResizeObserver(() => this.updateSize());
|
|
1424
1431
|
this.setupViewportEffect();
|
|
1425
1432
|
}
|
|
@@ -1437,6 +1444,7 @@ class RdxNavigationMenuViewportDirective {
|
|
|
1437
1444
|
}
|
|
1438
1445
|
}
|
|
1439
1446
|
onKeydown(event) {
|
|
1447
|
+
const keyEvent = event;
|
|
1440
1448
|
if (!this.isOpen())
|
|
1441
1449
|
return;
|
|
1442
1450
|
const tabbableElements = getTabbableCandidates(this.elementRef.nativeElement);
|
|
@@ -1444,12 +1452,12 @@ class RdxNavigationMenuViewportDirective {
|
|
|
1444
1452
|
return;
|
|
1445
1453
|
const activeElement = this.document.activeElement;
|
|
1446
1454
|
const currentIndex = tabbableElements.findIndex((el) => el === activeElement);
|
|
1447
|
-
if (
|
|
1455
|
+
if (keyEvent.key === ARROW_DOWN) {
|
|
1448
1456
|
event.preventDefault();
|
|
1449
1457
|
const nextIndex = currentIndex >= 0 && currentIndex < tabbableElements.length - 1 ? currentIndex + 1 : 0;
|
|
1450
1458
|
tabbableElements[nextIndex]?.focus();
|
|
1451
1459
|
}
|
|
1452
|
-
else if (
|
|
1460
|
+
else if (keyEvent.key === ARROW_UP) {
|
|
1453
1461
|
event.preventDefault();
|
|
1454
1462
|
const prevIndex = currentIndex > 0 ? currentIndex - 1 : tabbableElements.length - 1;
|
|
1455
1463
|
tabbableElements[prevIndex]?.focus();
|
|
@@ -1722,10 +1730,10 @@ class RdxNavigationMenuViewportDirective {
|
|
|
1722
1730
|
}
|
|
1723
1731
|
});
|
|
1724
1732
|
}
|
|
1725
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1726
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1733
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuViewportDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1734
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: RdxNavigationMenuViewportDirective, isStandalone: true, selector: "[rdxNavigationMenuViewport]", inputs: { forceMount: { classPropertyName: "forceMount", publicName: "forceMount", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeydown($event)", "pointerenter": "onPointerEnter()", "pointerleave": "onPointerLeave()" }, properties: { "attr.data-state": "dataState()", "attr.data-orientation": "context.orientation", "style.--radix-navigation-menu-viewport-width.px": "viewportSize()?.width", "style.--radix-navigation-menu-viewport-height.px": "viewportSize()?.height" } }, ngImport: i0 }); }
|
|
1727
1735
|
}
|
|
1728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuViewportDirective, decorators: [{
|
|
1729
1737
|
type: Directive,
|
|
1730
1738
|
args: [{
|
|
1731
1739
|
selector: '[rdxNavigationMenuViewport]',
|
|
@@ -1739,7 +1747,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
1739
1747
|
'(pointerleave)': 'onPointerLeave()'
|
|
1740
1748
|
}
|
|
1741
1749
|
}]
|
|
1742
|
-
}], ctorParameters: () => [] });
|
|
1750
|
+
}], ctorParameters: () => [], propDecorators: { forceMount: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceMount", required: false }] }] } });
|
|
1743
1751
|
|
|
1744
1752
|
const _imports = [
|
|
1745
1753
|
RdxNavigationMenuDirective,
|
|
@@ -1755,8 +1763,8 @@ const _imports = [
|
|
|
1755
1763
|
RdxNavigationMenuAriaOwnsComponent
|
|
1756
1764
|
];
|
|
1757
1765
|
class RdxNavigationMenuModule {
|
|
1758
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1759
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1766
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1767
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuModule, imports: [RdxNavigationMenuDirective,
|
|
1760
1768
|
RdxNavigationMenuSubDirective,
|
|
1761
1769
|
RdxNavigationMenuListDirective,
|
|
1762
1770
|
RdxNavigationMenuItemDirective,
|
|
@@ -1777,9 +1785,9 @@ class RdxNavigationMenuModule {
|
|
|
1777
1785
|
RdxNavigationMenuViewportDirective,
|
|
1778
1786
|
RdxNavigationMenuFocusProxyComponent,
|
|
1779
1787
|
RdxNavigationMenuAriaOwnsComponent] }); }
|
|
1780
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1788
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuModule }); }
|
|
1781
1789
|
}
|
|
1782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxNavigationMenuModule, decorators: [{
|
|
1783
1791
|
type: NgModule,
|
|
1784
1792
|
args: [{
|
|
1785
1793
|
imports: [..._imports],
|