@radix-ng/primitives 0.7.1 → 0.8.1
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/accordion/README.md +1 -0
- package/accordion/index.d.ts +5 -0
- package/accordion/src/accordion-content.directive.d.ts +64 -0
- package/accordion/src/accordion-header.directive.d.ts +23 -0
- package/accordion/src/accordion-item.directive.d.ts +36 -0
- package/accordion/src/accordion-root.directive.d.ts +57 -0
- package/accordion/src/accordion-trigger.directive.d.ts +31 -0
- package/alert-dialog/src/alert-dialog-content.directive.d.ts +2 -1
- package/dropdown-menu/README.md +1 -0
- package/dropdown-menu/index.d.ts +5 -0
- package/dropdown-menu/src/dropdown-menu-content.directive.d.ts +6 -0
- package/dropdown-menu/src/dropdown-menu-item.directive.d.ts +8 -0
- package/dropdown-menu/src/dropdown-menu-label.directive.d.ts +5 -0
- package/dropdown-menu/src/dropdown-menu-separator.directive.d.ts +6 -0
- package/dropdown-menu/src/dropdown-menu-trigger.directive.d.ts +11 -0
- package/esm2022/accordion/index.mjs +6 -0
- package/esm2022/accordion/radix-ng-primitives-accordion.mjs +5 -0
- package/esm2022/accordion/src/accordion-content.directive.mjs +139 -0
- package/esm2022/accordion/src/accordion-header.directive.mjs +44 -0
- package/esm2022/accordion/src/accordion-item.directive.mjs +75 -0
- package/esm2022/accordion/src/accordion-root.directive.mjs +120 -0
- package/esm2022/accordion/src/accordion-trigger.directive.mjs +61 -0
- package/esm2022/alert-dialog/src/alert-dialog-content.directive.mjs +11 -3
- package/esm2022/alert-dialog/src/alert-dialog.service.mjs +6 -1
- package/esm2022/dropdown-menu/index.mjs +6 -0
- package/esm2022/dropdown-menu/radix-ng-primitives-dropdown-menu.mjs +5 -0
- package/esm2022/dropdown-menu/src/dropdown-menu-content.directive.mjs +17 -0
- package/esm2022/dropdown-menu/src/dropdown-menu-item.directive.mjs +23 -0
- package/esm2022/dropdown-menu/src/dropdown-menu-label.directive.mjs +14 -0
- package/esm2022/dropdown-menu/src/dropdown-menu-separator.directive.mjs +21 -0
- package/esm2022/dropdown-menu/src/dropdown-menu-trigger.directive.mjs +46 -0
- package/esm2022/menu/index.mjs +45 -0
- package/esm2022/menu/radix-ng-primitives-menu.mjs +5 -0
- package/esm2022/menu/src/menu-content.directive.mjs +17 -0
- package/esm2022/menu/src/menu-directive.mjs +18 -0
- package/esm2022/menu/src/menu-group.directive.mjs +20 -0
- package/esm2022/menu/src/menu-item.directive.mjs +42 -0
- package/esm2022/menu/src/menu-label.directive.mjs +14 -0
- package/esm2022/menu/src/menu-separator.directive.mjs +21 -0
- package/esm2022/menubar/index.mjs +60 -0
- package/esm2022/menubar/radix-ng-primitives-menubar.mjs +5 -0
- package/esm2022/menubar/src/menubar-content.directive.mjs +17 -0
- package/esm2022/menubar/src/menubar-item-checkbox.directive.mjs +34 -0
- package/esm2022/menubar/src/menubar-item-indicator.directive.mjs +17 -0
- package/esm2022/menubar/src/menubar-item-radio.directive.mjs +35 -0
- package/esm2022/menubar/src/menubar-item.directive.mjs +20 -0
- package/esm2022/menubar/src/menubar-radio-group.directive.mjs +17 -0
- package/esm2022/menubar/src/menubar-root.directive.mjs +24 -0
- package/esm2022/menubar/src/menubar-separator.directive.mjs +17 -0
- package/esm2022/menubar/src/menubar-trigger.directive.mjs +45 -0
- package/esm2022/radio/src/radio-item.directive.mjs +1 -2
- package/esm2022/tabs/index.mjs +38 -0
- package/esm2022/tabs/radix-ng-primitives-tabs.mjs +5 -0
- package/esm2022/tabs/src/tabs-content.directive.mjs +27 -0
- package/esm2022/tabs/src/tabs-context.service.mjs +43 -0
- package/esm2022/tabs/src/tabs-list.directive.mjs +23 -0
- package/esm2022/tabs/src/tabs-root.directive.mjs +54 -0
- package/esm2022/tabs/src/tabs-trigger.directive.mjs +52 -0
- package/fesm2022/radix-ng-primitives-accordion.mjs +431 -0
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +15 -2
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +116 -0
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-menu.mjs +154 -0
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-menubar.mjs +245 -0
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-radio.mjs +0 -1
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +220 -0
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -0
- package/menu/README.md +1 -0
- package/menu/index.d.ts +18 -0
- package/menu/src/menu-content.directive.d.ts +6 -0
- package/menu/src/menu-directive.d.ts +6 -0
- package/menu/src/menu-group.directive.d.ts +6 -0
- package/menu/src/menu-item.directive.d.ts +12 -0
- package/menu/src/menu-label.directive.d.ts +5 -0
- package/menu/src/menu-separator.directive.d.ts +6 -0
- package/menubar/README.md +1 -0
- package/menubar/index.d.ts +24 -0
- package/menubar/src/menubar-content.directive.d.ts +6 -0
- package/menubar/src/menubar-item-checkbox.directive.d.ts +14 -0
- package/menubar/src/menubar-item-indicator.directive.d.ts +5 -0
- package/menubar/src/menubar-item-radio.directive.d.ts +14 -0
- package/menubar/src/menubar-item.directive.d.ts +8 -0
- package/menubar/src/menubar-radio-group.directive.d.ts +6 -0
- package/menubar/src/menubar-root.directive.d.ts +7 -0
- package/menubar/src/menubar-separator.directive.d.ts +6 -0
- package/menubar/src/menubar-trigger.directive.d.ts +11 -0
- package/package.json +31 -1
- package/tabs/index.d.ts +15 -0
- package/tabs/src/tabs-content.directive.d.ts +8 -0
- package/tabs/src/tabs-context.service.d.ts +22 -0
- package/tabs/src/tabs-list.directive.d.ts +6 -0
- package/tabs/src/tabs-root.directive.d.ts +37 -0
- package/tabs/src/tabs-trigger.directive.d.ts +19 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"radix-ng-primitives-alert-dialog.mjs","sources":["../../../packages/primitives/alert-dialog/src/alert-dialog.service.ts","../../../packages/primitives/alert-dialog/src/alert-dialog-root.directive.ts","../../../packages/primitives/alert-dialog/src/alert-dialog-cancel.directive.ts","../../../packages/primitives/alert-dialog/src/alert-dialog-content.directive.ts","../../../packages/primitives/alert-dialog/src/alert-dialog-trigger.directive.ts","../../../packages/primitives/alert-dialog/src/alert-dialog-title.directive.ts","../../../packages/primitives/alert-dialog/radix-ng-primitives-alert-dialog.ts"],"sourcesContent":["import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { Injectable, TemplateRef, ViewContainerRef } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AlertDialogService {\n private overlayRef: OverlayRef | null | undefined;\n private dialogContent:\n | {\n viewContainerRef: ViewContainerRef;\n template: TemplateRef<any>;\n }\n | undefined;\n\n constructor(private overlay: Overlay) {}\n\n setDialogContent(viewContainerRef: ViewContainerRef, template: TemplateRef<any>) {\n this.dialogContent = { viewContainerRef, template };\n }\n\n open() {\n if (!this.dialogContent) {\n throw new Error('Dialog content is not set');\n }\n\n this.overlayRef = this.overlay.create({\n hasBackdrop: true,\n backdropClass: 'cdk-overlay-dark-backdrop',\n positionStrategy: this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically()\n });\n\n const templatePortal = new TemplatePortal(\n this.dialogContent.template,\n this.dialogContent.viewContainerRef\n );\n this.overlayRef.attach(templatePortal);\n\n this.overlayRef.backdropClick().subscribe(() => this.close());\n }\n\n close() {\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n }\n}\n","import { Directive, inject, Input, TemplateRef, ViewContainerRef } from '@angular/core';\n\nimport { AlertDialogService } from './alert-dialog.service';\n\n@Directive({\n selector: '[rdxAlertDialogRoot]',\n standalone: true\n})\nexport class AlertDialogRootDirective {\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly alertDialogService = inject(AlertDialogService);\n\n @Input() set content(template: TemplateRef<any>) {\n this.alertDialogService.setDialogContent(this.viewContainerRef, template);\n }\n}\n","import { Directive, inject } from '@angular/core';\n\nimport { AlertDialogService } from './alert-dialog.service';\n\n@Directive({\n selector: '[rdxAlertDialogCancel]',\n standalone: true,\n host: {\n '(click)': 'onClick()'\n }\n})\nexport class AlertDialogCancelDirective {\n private readonly alertDialogService = inject(AlertDialogService);\n\n onClick() {\n this.alertDialogService.close();\n }\n}\n","import { Directive, ElementRef, inject, Input, Renderer2 } from '@angular/core';\n\n@Directive({\n selector: '[rdxAlertDialogContent]',\n standalone: true,\n host: {\n '[attr.data-state]': 'open'\n }\n})\nexport class AlertDialogContentDirective {\n private readonly renderer = inject(Renderer2);\n private readonly elementRef = inject(ElementRef);\n\n @Input() set maxWidth(value: string) {\n this.renderer.setStyle(this.elementRef.nativeElement, 'maxWidth', value);\n }\n}\n","import { Directive, inject } from '@angular/core';\n\nimport { AlertDialogService } from './alert-dialog.service';\n\n@Directive({\n selector: '[rdxAlertDialogTrigger]',\n standalone: true,\n host: {\n '(click)': 'handleClick()'\n }\n})\nexport class AlertDialogTriggerDirective {\n private readonly alertDialogService = inject(AlertDialogService);\n\n handleClick() {\n this.alertDialogService.open();\n }\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[rdxAlertDialogTitle]',\n standalone: true\n})\nexport class AlertDialogTitleDirective {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"radix-ng-primitives-alert-dialog.mjs","sources":["../../../packages/primitives/alert-dialog/src/alert-dialog.service.ts","../../../packages/primitives/alert-dialog/src/alert-dialog-root.directive.ts","../../../packages/primitives/alert-dialog/src/alert-dialog-cancel.directive.ts","../../../packages/primitives/alert-dialog/src/alert-dialog-content.directive.ts","../../../packages/primitives/alert-dialog/src/alert-dialog-trigger.directive.ts","../../../packages/primitives/alert-dialog/src/alert-dialog-title.directive.ts","../../../packages/primitives/alert-dialog/radix-ng-primitives-alert-dialog.ts"],"sourcesContent":["import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { Injectable, TemplateRef, ViewContainerRef } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AlertDialogService {\n private overlayRef: OverlayRef | null | undefined;\n private dialogContent:\n | {\n viewContainerRef: ViewContainerRef;\n template: TemplateRef<any>;\n }\n | undefined;\n\n constructor(private overlay: Overlay) {}\n\n setDialogContent(viewContainerRef: ViewContainerRef, template: TemplateRef<any>) {\n this.dialogContent = { viewContainerRef, template };\n }\n\n open() {\n if (!this.dialogContent) {\n throw new Error('Dialog content is not set');\n }\n\n this.overlayRef = this.overlay.create({\n hasBackdrop: true,\n backdropClass: 'cdk-overlay-dark-backdrop',\n positionStrategy: this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically()\n });\n\n const templatePortal = new TemplatePortal(\n this.dialogContent.template,\n this.dialogContent.viewContainerRef\n );\n this.overlayRef.attach(templatePortal);\n\n this.overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape' || event.code === 'Escape') {\n this.close();\n }\n });\n this.overlayRef.backdropClick().subscribe(() => this.close());\n }\n\n close() {\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n }\n}\n","import { Directive, inject, Input, TemplateRef, ViewContainerRef } from '@angular/core';\n\nimport { AlertDialogService } from './alert-dialog.service';\n\n@Directive({\n selector: '[rdxAlertDialogRoot]',\n standalone: true\n})\nexport class AlertDialogRootDirective {\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly alertDialogService = inject(AlertDialogService);\n\n @Input() set content(template: TemplateRef<any>) {\n this.alertDialogService.setDialogContent(this.viewContainerRef, template);\n }\n}\n","import { Directive, inject } from '@angular/core';\n\nimport { AlertDialogService } from './alert-dialog.service';\n\n@Directive({\n selector: '[rdxAlertDialogCancel]',\n standalone: true,\n host: {\n '(click)': 'onClick()'\n }\n})\nexport class AlertDialogCancelDirective {\n private readonly alertDialogService = inject(AlertDialogService);\n\n onClick() {\n this.alertDialogService.close();\n }\n}\n","import { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { Directive, ElementRef, inject, Input, Renderer2 } from '@angular/core';\n\n@Directive({\n selector: '[rdxAlertDialogContent]',\n hostDirectives: [\n {\n directive: CdkTrapFocus\n }\n ],\n standalone: true,\n host: {\n '[attr.data-state]': 'open',\n '[attr.cdkTrapFocusAutoCapture]': 'true'\n }\n})\nexport class AlertDialogContentDirective {\n private readonly renderer = inject(Renderer2);\n private readonly elementRef = inject(ElementRef);\n\n @Input() set maxWidth(value: string) {\n this.renderer.setStyle(this.elementRef.nativeElement, 'maxWidth', value);\n }\n}\n","import { Directive, inject } from '@angular/core';\n\nimport { AlertDialogService } from './alert-dialog.service';\n\n@Directive({\n selector: '[rdxAlertDialogTrigger]',\n standalone: true,\n host: {\n '(click)': 'handleClick()'\n }\n})\nexport class AlertDialogTriggerDirective {\n private readonly alertDialogService = inject(AlertDialogService);\n\n handleClick() {\n this.alertDialogService.open();\n }\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[rdxAlertDialogTitle]',\n standalone: true\n})\nexport class AlertDialogTitleDirective {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;MAOa,kBAAkB,CAAA;AAS3B,IAAA,WAAA,CAAoB,OAAgB,EAAA;QAAhB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAS;KAAI;IAExC,gBAAgB,CAAC,gBAAkC,EAAE,QAA0B,EAAA;QAC3E,IAAI,CAAC,aAAa,GAAG,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC;KACvD;IAED,IAAI,GAAA;AACA,QAAA,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;AACrB,YAA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APvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACF,wBAAA,SAAS,EAAE,eAAe;AAC7B,qBAAA;AACJ,iBAAA,CAAA;;;MCJY,yBAAyB,CAAA;8GAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AACnB,iBAAA,CAAA;;;ACLD;;AAEG;;;;"}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
import * as i1 from '@angular/cdk/menu';
|
2
|
+
import { CdkMenuTrigger } from '@angular/cdk/menu';
|
3
|
+
import * as i0 from '@angular/core';
|
4
|
+
import { inject, input, booleanAttribute, Directive } from '@angular/core';
|
5
|
+
import * as i1$1 from '@radix-ng/primitives/menu';
|
6
|
+
import { RdxMenuItemDirective, RdxMenuSeparatorDirective, RdxMenuContentDirective } from '@radix-ng/primitives/menu';
|
7
|
+
|
8
|
+
class RdxDropdownMenuTriggerDirective {
|
9
|
+
constructor() {
|
10
|
+
this.cdkTrigger = inject(CdkMenuTrigger, { host: true });
|
11
|
+
this.disabled = input(false, {
|
12
|
+
transform: booleanAttribute
|
13
|
+
});
|
14
|
+
}
|
15
|
+
onPointerDown($event) {
|
16
|
+
// only call handler if it's the left button (mousedown gets triggered by all mouse buttons)
|
17
|
+
// but not when the control key is pressed (avoiding MacOS right click)
|
18
|
+
if (!this.disabled() && $event.button === 0 && !$event.ctrlKey) {
|
19
|
+
/* empty */
|
20
|
+
if (!this.cdkTrigger.isOpen()) {
|
21
|
+
// prevent trigger focusing when opening
|
22
|
+
// this allows the content to be given focus without competition
|
23
|
+
$event.preventDefault();
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxDropdownMenuTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
28
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.4", type: RdxDropdownMenuTriggerDirective, isStandalone: true, selector: "[DropdownMenuTrigger]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "pointerdown": "onPointerDown($event)" }, properties: { "attr.aria-haspopup": "'menu'", "attr.aria-expanded": "cdkTrigger.isOpen()", "attr.data-state": "cdkTrigger.isOpen() ? 'open': 'closed'", "attr.data-disabled": "disabled() ? '' : undefined", "disabled": "disabled()" } }, hostDirectives: [{ directive: i1.CdkMenuTrigger, inputs: ["cdkMenuTriggerFor", "DropdownMenuTrigger"] }], ngImport: i0 }); }
|
29
|
+
}
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxDropdownMenuTriggerDirective, decorators: [{
|
31
|
+
type: Directive,
|
32
|
+
args: [{
|
33
|
+
selector: '[DropdownMenuTrigger]',
|
34
|
+
standalone: true,
|
35
|
+
hostDirectives: [
|
36
|
+
{ directive: CdkMenuTrigger, inputs: ['cdkMenuTriggerFor: DropdownMenuTrigger'] }
|
37
|
+
],
|
38
|
+
host: {
|
39
|
+
type: 'button',
|
40
|
+
'[attr.aria-haspopup]': "'menu'",
|
41
|
+
'[attr.aria-expanded]': 'cdkTrigger.isOpen()',
|
42
|
+
'[attr.data-state]': "cdkTrigger.isOpen() ? 'open': 'closed'",
|
43
|
+
'[attr.data-disabled]': "disabled() ? '' : undefined",
|
44
|
+
'[disabled]': 'disabled()',
|
45
|
+
'(pointerdown)': 'onPointerDown($event)'
|
46
|
+
}
|
47
|
+
}]
|
48
|
+
}] });
|
49
|
+
|
50
|
+
class RdxDropdownMenuItemDirective {
|
51
|
+
constructor() {
|
52
|
+
this.disabled = input(false, {
|
53
|
+
transform: booleanAttribute,
|
54
|
+
alias: 'rdxDisabled'
|
55
|
+
});
|
56
|
+
}
|
57
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxDropdownMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
58
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.4", type: RdxDropdownMenuItemDirective, isStandalone: true, selector: "[DropdownMenuItem]", inputs: { disabled: { classPropertyName: "disabled", publicName: "rdxDisabled", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1$1.RdxMenuItemDirective, inputs: ["rdxDisabled", "disabled"] }], ngImport: i0 }); }
|
59
|
+
}
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxDropdownMenuItemDirective, decorators: [{
|
61
|
+
type: Directive,
|
62
|
+
args: [{
|
63
|
+
selector: '[DropdownMenuItem]',
|
64
|
+
standalone: true,
|
65
|
+
hostDirectives: [{ directive: RdxMenuItemDirective, inputs: ['rdxDisabled: disabled '] }]
|
66
|
+
}]
|
67
|
+
}] });
|
68
|
+
|
69
|
+
class RdxDropdownMenuSeparatorDirective {
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxDropdownMenuSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
71
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxDropdownMenuSeparatorDirective, isStandalone: true, selector: "[DropdownMenuSeparator]", host: { attributes: { "role": "separator" }, properties: { "attr.aria-orientation": "'horizontal'" } }, hostDirectives: [{ directive: i1$1.RdxMenuSeparatorDirective }], ngImport: i0 }); }
|
72
|
+
}
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxDropdownMenuSeparatorDirective, decorators: [{
|
74
|
+
type: Directive,
|
75
|
+
args: [{
|
76
|
+
selector: '[DropdownMenuSeparator]',
|
77
|
+
standalone: true,
|
78
|
+
hostDirectives: [RdxMenuSeparatorDirective],
|
79
|
+
host: {
|
80
|
+
role: 'separator',
|
81
|
+
'[attr.aria-orientation]': "'horizontal'"
|
82
|
+
}
|
83
|
+
}]
|
84
|
+
}] });
|
85
|
+
|
86
|
+
class RdxDropdownMenuContentDirective {
|
87
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxDropdownMenuContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
88
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxDropdownMenuContentDirective, isStandalone: true, selector: "[DropdownMenuContent]", hostDirectives: [{ directive: i1$1.RdxMenuContentDirective }], ngImport: i0 }); }
|
89
|
+
}
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxDropdownMenuContentDirective, decorators: [{
|
91
|
+
type: Directive,
|
92
|
+
args: [{
|
93
|
+
selector: '[DropdownMenuContent]',
|
94
|
+
standalone: true,
|
95
|
+
hostDirectives: [RdxMenuContentDirective]
|
96
|
+
}]
|
97
|
+
}] });
|
98
|
+
|
99
|
+
class RdxDropdownMenuLabelDirective {
|
100
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxDropdownMenuLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
101
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxDropdownMenuLabelDirective, isStandalone: true, selector: "div[DropdownMenuLabel]", ngImport: i0 }); }
|
102
|
+
}
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxDropdownMenuLabelDirective, decorators: [{
|
104
|
+
type: Directive,
|
105
|
+
args: [{
|
106
|
+
selector: 'div[DropdownMenuLabel]',
|
107
|
+
standalone: true
|
108
|
+
}]
|
109
|
+
}] });
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Generated bundle index. Do not edit.
|
113
|
+
*/
|
114
|
+
|
115
|
+
export { RdxDropdownMenuContentDirective, RdxDropdownMenuItemDirective, RdxDropdownMenuLabelDirective, RdxDropdownMenuSeparatorDirective, RdxDropdownMenuTriggerDirective };
|
116
|
+
//# sourceMappingURL=radix-ng-primitives-dropdown-menu.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"radix-ng-primitives-dropdown-menu.mjs","sources":["../../../packages/primitives/dropdown-menu/src/dropdown-menu-trigger.directive.ts","../../../packages/primitives/dropdown-menu/src/dropdown-menu-item.directive.ts","../../../packages/primitives/dropdown-menu/src/dropdown-menu-separator.directive.ts","../../../packages/primitives/dropdown-menu/src/dropdown-menu-content.directive.ts","../../../packages/primitives/dropdown-menu/src/dropdown-menu-label.directive.ts","../../../packages/primitives/dropdown-menu/radix-ng-primitives-dropdown-menu.ts"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion';\nimport { CdkMenuTrigger } from '@angular/cdk/menu';\nimport { booleanAttribute, Directive, inject, input, Input } from '@angular/core';\n\n@Directive({\n selector: '[DropdownMenuTrigger]',\n standalone: true,\n hostDirectives: [\n { directive: CdkMenuTrigger, inputs: ['cdkMenuTriggerFor: DropdownMenuTrigger'] }\n ],\n host: {\n type: 'button',\n '[attr.aria-haspopup]': \"'menu'\",\n '[attr.aria-expanded]': 'cdkTrigger.isOpen()',\n '[attr.data-state]': \"cdkTrigger.isOpen() ? 'open': 'closed'\",\n '[attr.data-disabled]': \"disabled() ? '' : undefined\",\n '[disabled]': 'disabled()',\n\n '(pointerdown)': 'onPointerDown($event)'\n }\n})\nexport class RdxDropdownMenuTriggerDirective {\n protected readonly cdkTrigger = inject(CdkMenuTrigger, { host: true });\n\n readonly disabled = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute\n });\n\n onPointerDown($event: MouseEvent) {\n // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)\n // but not when the control key is pressed (avoiding MacOS right click)\n if (!this.disabled() && $event.button === 0 && !$event.ctrlKey) {\n /* empty */\n if (!this.cdkTrigger.isOpen()) {\n // prevent trigger focusing when opening\n // this allows the content to be given focus without competition\n $event.preventDefault();\n }\n }\n }\n}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input } from '@angular/core';\n\nimport { RdxMenuItemDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[DropdownMenuItem]',\n standalone: true,\n hostDirectives: [{ directive: RdxMenuItemDirective, inputs: ['rdxDisabled: disabled '] }]\n})\nexport class RdxDropdownMenuItemDirective {\n readonly disabled = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n alias: 'rdxDisabled'\n });\n}\n","import { Directive } from '@angular/core';\n\nimport { RdxMenuSeparatorDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[DropdownMenuSeparator]',\n standalone: true,\n hostDirectives: [RdxMenuSeparatorDirective],\n host: {\n role: 'separator',\n '[attr.aria-orientation]': \"'horizontal'\"\n }\n})\nexport class RdxDropdownMenuSeparatorDirective {}\n","import { Directive } from '@angular/core';\n\nimport { RdxMenuContentDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[DropdownMenuContent]',\n standalone: true,\n hostDirectives: [RdxMenuContentDirective]\n})\nexport class RdxDropdownMenuContentDirective {}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: 'div[DropdownMenuLabel]',\n standalone: true\n})\nexport class RdxDropdownMenuLabelDirective {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;MAqBa,+BAA+B,CAAA;AAjB5C,IAAA,WAAA,GAAA;QAkBuB,IAAU,CAAA,UAAA,GAAG,MAAM,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAE9D,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAwB,KAAK,EAAE;AACpD,YAAA,SAAS,EAAE,gBAAgB;AAC9B,SAAA,CAAC,CAAC;AAcN,KAAA;AAZG,IAAA,aAAa,CAAC,MAAkB,EAAA;;;AAG5B,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;;YAE5D,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE;;;gBAG3B,MAAM,CAAC,cAAc,EAAE,CAAC;aAC3B;SACJ;KACJ;8GAlBQ,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA/B,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA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;;;ACLD;;AAEG;;;;"}
|
@@ -0,0 +1,154 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Directive, inject, input, booleanAttribute, computed, effect, Output, NgModule } from '@angular/core';
|
3
|
+
import * as i1 from '@angular/cdk/menu';
|
4
|
+
import { CdkMenu, CdkMenuGroup, CdkMenuItem } from '@angular/cdk/menu';
|
5
|
+
import * as i1$1 from '@radix-ng/primitives/separator';
|
6
|
+
import { RdxSeparatorRootDirective } from '@radix-ng/primitives/separator';
|
7
|
+
|
8
|
+
class RdxMenuContentDirective {
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
10
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxMenuContentDirective, isStandalone: true, selector: "[MenuContent]", hostDirectives: [{ directive: i1.CdkMenu }], ngImport: i0 }); }
|
11
|
+
}
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuContentDirective, decorators: [{
|
13
|
+
type: Directive,
|
14
|
+
args: [{
|
15
|
+
selector: '[MenuContent]',
|
16
|
+
standalone: true,
|
17
|
+
hostDirectives: [CdkMenu]
|
18
|
+
}]
|
19
|
+
}] });
|
20
|
+
|
21
|
+
class RdxMenuDirective {
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
23
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxMenuDirective, isStandalone: true, selector: "[Menu],[MenuSub]", hostDirectives: [{ directive: i1.CdkMenu }], ngImport: i0 }); }
|
24
|
+
}
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuDirective, decorators: [{
|
26
|
+
type: Directive,
|
27
|
+
args: [{
|
28
|
+
selector: '[Menu],[MenuSub]',
|
29
|
+
standalone: true,
|
30
|
+
host: {},
|
31
|
+
hostDirectives: [CdkMenu]
|
32
|
+
}]
|
33
|
+
}] });
|
34
|
+
|
35
|
+
class RdxMenuGroupDirective {
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
37
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxMenuGroupDirective, isStandalone: true, selector: "[MenuGroup]", host: { attributes: { "role": "group" } }, hostDirectives: [{ directive: i1.CdkMenuGroup }], ngImport: i0 }); }
|
38
|
+
}
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuGroupDirective, decorators: [{
|
40
|
+
type: Directive,
|
41
|
+
args: [{
|
42
|
+
selector: '[MenuGroup]',
|
43
|
+
standalone: true,
|
44
|
+
hostDirectives: [CdkMenuGroup],
|
45
|
+
host: {
|
46
|
+
role: 'group'
|
47
|
+
}
|
48
|
+
}]
|
49
|
+
}] });
|
50
|
+
|
51
|
+
class RdxMenuItemDirective {
|
52
|
+
constructor() {
|
53
|
+
this.cdkMenuItem = inject(CdkMenuItem, { host: true });
|
54
|
+
// When true, prevents the user from interacting with the item.
|
55
|
+
this.disabled = input(false, {
|
56
|
+
transform: booleanAttribute,
|
57
|
+
alias: 'rdxDisabled'
|
58
|
+
});
|
59
|
+
this.disabledState = computed(() => this.disabled());
|
60
|
+
// Event handler called when the user selects an item (via mouse or keyboard).
|
61
|
+
this.onSelect = this.cdkMenuItem.triggered;
|
62
|
+
effect(() => {
|
63
|
+
this.cdkMenuItem.disabled = this.disabled();
|
64
|
+
});
|
65
|
+
}
|
66
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
67
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.4", type: RdxMenuItemDirective, isStandalone: true, selector: "[MenuItem]", inputs: { disabled: { classPropertyName: "disabled", publicName: "rdxDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelect: "onSelect" }, host: { attributes: { "role": "menuitem", "type": "button", "tabindex": "0" }, properties: { "attr.data-orientation": "'horizontal'", "attr.data-disabled": "disabledState() ? '' : undefined", "disabled": "disabledState()" } }, hostDirectives: [{ directive: i1.CdkMenuItem }], ngImport: i0 }); }
|
68
|
+
}
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuItemDirective, decorators: [{
|
70
|
+
type: Directive,
|
71
|
+
args: [{
|
72
|
+
selector: '[MenuItem]',
|
73
|
+
standalone: true,
|
74
|
+
hostDirectives: [CdkMenuItem],
|
75
|
+
host: {
|
76
|
+
role: 'menuitem',
|
77
|
+
type: 'button',
|
78
|
+
tabindex: '0',
|
79
|
+
'[attr.data-orientation]': "'horizontal'",
|
80
|
+
//'[attr.data-highlighted]': "",
|
81
|
+
'[attr.data-disabled]': "disabledState() ? '' : undefined",
|
82
|
+
'[disabled]': 'disabledState()'
|
83
|
+
}
|
84
|
+
}]
|
85
|
+
}], ctorParameters: () => [], propDecorators: { onSelect: [{
|
86
|
+
type: Output
|
87
|
+
}] } });
|
88
|
+
|
89
|
+
class RdxMenuLabelDirective {
|
90
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
91
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxMenuLabelDirective, isStandalone: true, selector: "div[MenuLabel]", ngImport: i0 }); }
|
92
|
+
}
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuLabelDirective, decorators: [{
|
94
|
+
type: Directive,
|
95
|
+
args: [{
|
96
|
+
selector: 'div[MenuLabel]',
|
97
|
+
standalone: true
|
98
|
+
}]
|
99
|
+
}] });
|
100
|
+
|
101
|
+
class RdxMenuSeparatorDirective {
|
102
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
103
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxMenuSeparatorDirective, isStandalone: true, selector: "[MenuSeparator]", host: { attributes: { "role": "separator" }, properties: { "attr.aria-orientation": "'horizontal'" } }, hostDirectives: [{ directive: i1$1.RdxSeparatorRootDirective }], ngImport: i0 }); }
|
104
|
+
}
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuSeparatorDirective, decorators: [{
|
106
|
+
type: Directive,
|
107
|
+
args: [{
|
108
|
+
selector: '[MenuSeparator]',
|
109
|
+
standalone: true,
|
110
|
+
hostDirectives: [RdxSeparatorRootDirective],
|
111
|
+
host: {
|
112
|
+
role: 'separator',
|
113
|
+
'[attr.aria-orientation]': "'horizontal'"
|
114
|
+
}
|
115
|
+
}]
|
116
|
+
}] });
|
117
|
+
|
118
|
+
const menuImports = [
|
119
|
+
RdxMenuDirective,
|
120
|
+
RdxMenuGroupDirective,
|
121
|
+
RdxMenuItemDirective,
|
122
|
+
RdxMenuSeparatorDirective,
|
123
|
+
RdxMenuContentDirective,
|
124
|
+
RdxMenuLabelDirective
|
125
|
+
];
|
126
|
+
class MenuModule {
|
127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: MenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
128
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.4", ngImport: i0, type: MenuModule, imports: [RdxMenuDirective,
|
129
|
+
RdxMenuGroupDirective,
|
130
|
+
RdxMenuItemDirective,
|
131
|
+
RdxMenuSeparatorDirective,
|
132
|
+
RdxMenuContentDirective,
|
133
|
+
RdxMenuLabelDirective], exports: [RdxMenuDirective,
|
134
|
+
RdxMenuGroupDirective,
|
135
|
+
RdxMenuItemDirective,
|
136
|
+
RdxMenuSeparatorDirective,
|
137
|
+
RdxMenuContentDirective,
|
138
|
+
RdxMenuLabelDirective] }); }
|
139
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: MenuModule }); }
|
140
|
+
}
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: MenuModule, decorators: [{
|
142
|
+
type: NgModule,
|
143
|
+
args: [{
|
144
|
+
imports: [...menuImports],
|
145
|
+
exports: [...menuImports]
|
146
|
+
}]
|
147
|
+
}] });
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Generated bundle index. Do not edit.
|
151
|
+
*/
|
152
|
+
|
153
|
+
export { MenuModule, RdxMenuContentDirective, RdxMenuDirective, RdxMenuGroupDirective, RdxMenuItemDirective, RdxMenuLabelDirective, RdxMenuSeparatorDirective };
|
154
|
+
//# sourceMappingURL=radix-ng-primitives-menu.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"radix-ng-primitives-menu.mjs","sources":["../../../packages/primitives/menu/src/menu-content.directive.ts","../../../packages/primitives/menu/src/menu-directive.ts","../../../packages/primitives/menu/src/menu-group.directive.ts","../../../packages/primitives/menu/src/menu-item.directive.ts","../../../packages/primitives/menu/src/menu-label.directive.ts","../../../packages/primitives/menu/src/menu-separator.directive.ts","../../../packages/primitives/menu/index.ts","../../../packages/primitives/menu/radix-ng-primitives-menu.ts"],"sourcesContent":["import { CdkMenu } from '@angular/cdk/menu';\nimport { Directive } from '@angular/core';\n\n@Directive({\n selector: '[MenuContent]',\n standalone: true,\n hostDirectives: [CdkMenu]\n})\nexport class RdxMenuContentDirective {}\n","import { CdkMenu } from '@angular/cdk/menu';\nimport { Directive } from '@angular/core';\n\n@Directive({\n selector: '[Menu],[MenuSub]',\n standalone: true,\n host: {},\n hostDirectives: [CdkMenu]\n})\nexport class RdxMenuDirective {}\n","import { CdkMenuGroup } from '@angular/cdk/menu';\nimport { Directive } from '@angular/core';\n\n@Directive({\n selector: '[MenuGroup]',\n standalone: true,\n hostDirectives: [CdkMenuGroup],\n host: {\n role: 'group'\n }\n})\nexport class RdxMenuGroupDirective {}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { CdkMenuItem } from '@angular/cdk/menu';\nimport {\n booleanAttribute,\n computed,\n Directive,\n effect,\n inject,\n input,\n Output\n} from '@angular/core';\n\ntype radixProps = {\n disabled: boolean;\n onSelect: () => {};\n};\n\n@Directive({\n selector: '[MenuItem]',\n standalone: true,\n hostDirectives: [CdkMenuItem],\n host: {\n role: 'menuitem',\n type: 'button',\n tabindex: '0',\n '[attr.data-orientation]': \"'horizontal'\",\n //'[attr.data-highlighted]': \"\",\n '[attr.data-disabled]': \"disabledState() ? '' : undefined\",\n '[disabled]': 'disabledState()'\n }\n})\nexport class RdxMenuItemDirective {\n private readonly cdkMenuItem = inject(CdkMenuItem, { host: true });\n\n // When true, prevents the user from interacting with the item.\n readonly disabled = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute,\n alias: 'rdxDisabled'\n });\n\n protected readonly disabledState = computed(() => this.disabled());\n\n // Event handler called when the user selects an item (via mouse or keyboard).\n @Output()\n onSelect = this.cdkMenuItem.triggered;\n\n constructor() {\n effect(() => {\n this.cdkMenuItem.disabled = this.disabled();\n });\n }\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: 'div[MenuLabel]',\n standalone: true\n})\nexport class RdxMenuLabelDirective {}\n","import { Directive } from '@angular/core';\n\nimport { RdxSeparatorRootDirective } from '@radix-ng/primitives/separator';\n\n@Directive({\n selector: '[MenuSeparator]',\n standalone: true,\n hostDirectives: [RdxSeparatorRootDirective],\n host: {\n role: 'separator',\n '[attr.aria-orientation]': \"'horizontal'\"\n }\n})\nexport class RdxMenuSeparatorDirective {}\n","import { NgModule } from '@angular/core';\n\nimport { RdxMenuContentDirective } from './src/menu-content.directive';\nimport { RdxMenuDirective } from './src/menu-directive';\nimport { RdxMenuGroupDirective } from './src/menu-group.directive';\nimport { RdxMenuItemDirective } from './src/menu-item.directive';\nimport { RdxMenuLabelDirective } from './src/menu-label.directive';\nimport { RdxMenuSeparatorDirective } from './src/menu-separator.directive';\n\nexport * from './src/menu-directive';\nexport * from './src/menu-group.directive';\nexport * from './src/menu-item.directive';\nexport * from './src/menu-separator.directive';\nexport * from './src/menu-content.directive';\nexport * from './src/menu-label.directive';\n\nconst menuImports = [\n RdxMenuDirective,\n RdxMenuGroupDirective,\n RdxMenuItemDirective,\n RdxMenuSeparatorDirective,\n RdxMenuContentDirective,\n RdxMenuLabelDirective\n];\n\n@NgModule({\n imports: [...menuImports],\n exports: [...menuImports]\n})\nexport class MenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;MAQa,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,cAAA,EAAA,CAA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AAA,UAAU,YAZnB,gBAAgB;YAChB,qBAAqB;YACrB,oBAAoB;YACpB,yBAAyB;YACzB,uBAAuB;AACvB,YAAA,qBAAqB,aALrB,gBAAgB;YAChB,qBAAqB;YACrB,oBAAoB;YACpB,yBAAyB;YACzB,uBAAuB;YACvB,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAOZ,UAAU,EAAA,CAAA,CAAA,EAAA;;2FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,WAAW,CAAC;AACzB,oBAAA,OAAO,EAAE,CAAC,GAAG,WAAW,CAAC;AAC5B,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
|
@@ -0,0 +1,245 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Directive, inject, input, booleanAttribute, computed, signal, effect, NgModule } from '@angular/core';
|
3
|
+
import * as i1 from '@angular/cdk/menu';
|
4
|
+
import { CdkMenu, CdkMenuItemCheckbox, CdkMenuItemRadio, CdkMenuGroup, CdkMenuBar, CdkMenuTrigger } from '@angular/cdk/menu';
|
5
|
+
import * as i1$1 from '@radix-ng/primitives/menu';
|
6
|
+
import { RdxMenuItemDirective, RdxMenuSeparatorDirective } from '@radix-ng/primitives/menu';
|
7
|
+
|
8
|
+
class RdxMenuBarContentDirective {
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuBarContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
10
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxMenuBarContentDirective, isStandalone: true, selector: "[MenuBarContent]", hostDirectives: [{ directive: i1.CdkMenu }], ngImport: i0 }); }
|
11
|
+
}
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuBarContentDirective, decorators: [{
|
13
|
+
type: Directive,
|
14
|
+
args: [{
|
15
|
+
selector: '[MenuBarContent]',
|
16
|
+
standalone: true,
|
17
|
+
hostDirectives: [CdkMenu]
|
18
|
+
}]
|
19
|
+
}] });
|
20
|
+
|
21
|
+
class RdxMenubarItemCheckboxDirective {
|
22
|
+
constructor() {
|
23
|
+
this.cdkMenuItemCheckbox = inject(CdkMenuItemCheckbox, { host: true });
|
24
|
+
this.disabled = input(false, { transform: booleanAttribute });
|
25
|
+
this.checked = input(false, { transform: booleanAttribute });
|
26
|
+
this.disabledState = computed(() => this.disabled || this.disabled$());
|
27
|
+
this.checked$ = signal(this.cdkMenuItemCheckbox.checked);
|
28
|
+
this.disabled$ = signal(this.cdkMenuItemCheckbox.disabled);
|
29
|
+
effect(() => {
|
30
|
+
this.cdkMenuItemCheckbox.checked = this.checked();
|
31
|
+
this.cdkMenuItemCheckbox.disabled = this.disabled();
|
32
|
+
});
|
33
|
+
}
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenubarItemCheckboxDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
35
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.4", type: RdxMenubarItemCheckboxDirective, isStandalone: true, selector: "[MenubarCheckboxItem]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "menuitemcheckbox" }, properties: { "attr.data-state": "checked() ? \"checked\": \"unchecked\"", "disabled": "disabledState()" } }, hostDirectives: [{ directive: i1.CdkMenuItemCheckbox }], ngImport: i0 }); }
|
36
|
+
}
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenubarItemCheckboxDirective, decorators: [{
|
38
|
+
type: Directive,
|
39
|
+
args: [{
|
40
|
+
selector: '[MenubarCheckboxItem]',
|
41
|
+
standalone: true,
|
42
|
+
hostDirectives: [CdkMenuItemCheckbox],
|
43
|
+
host: {
|
44
|
+
role: 'menuitemcheckbox',
|
45
|
+
'[attr.data-state]': 'checked() ? "checked": "unchecked"',
|
46
|
+
'[disabled]': 'disabledState()'
|
47
|
+
}
|
48
|
+
}]
|
49
|
+
}], ctorParameters: () => [] });
|
50
|
+
|
51
|
+
class RdxMenubarItemIndicatorDirective {
|
52
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenubarItemIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
53
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxMenubarItemIndicatorDirective, isStandalone: true, selector: "[MenubarItemIndicator]", host: { properties: { "attr.data-state": "true" } }, ngImport: i0 }); }
|
54
|
+
}
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenubarItemIndicatorDirective, decorators: [{
|
56
|
+
type: Directive,
|
57
|
+
args: [{
|
58
|
+
selector: '[MenubarItemIndicator]',
|
59
|
+
standalone: true,
|
60
|
+
host: {
|
61
|
+
'[attr.data-state]': 'true'
|
62
|
+
}
|
63
|
+
}]
|
64
|
+
}] });
|
65
|
+
|
66
|
+
class RdxMenubarItemRadioDirective {
|
67
|
+
constructor() {
|
68
|
+
this.cdkMenuItemRadio = inject(CdkMenuItemRadio, { host: true });
|
69
|
+
this.disabled = input(false, { transform: booleanAttribute });
|
70
|
+
this.checked = input(false, { transform: booleanAttribute });
|
71
|
+
this.disabledState = computed(() => this.disabled || this.disabled$());
|
72
|
+
this.checked$ = signal(this.cdkMenuItemRadio.checked);
|
73
|
+
this.disabled$ = signal(this.cdkMenuItemRadio.disabled);
|
74
|
+
effect(() => {
|
75
|
+
this.cdkMenuItemRadio.checked = this.checked();
|
76
|
+
this.cdkMenuItemRadio.disabled = this.disabled();
|
77
|
+
});
|
78
|
+
}
|
79
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenubarItemRadioDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
80
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.4", type: RdxMenubarItemRadioDirective, isStandalone: true, selector: "[MenubarItemRadio]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "menuitemradio" }, properties: { "attr.aria-checked": "checked()", "attr.data-state": "checked() ? \"checked\": \"unchecked\"", "disabled": "disabledState()" } }, hostDirectives: [{ directive: i1.CdkMenuItemRadio }], ngImport: i0 }); }
|
81
|
+
}
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenubarItemRadioDirective, decorators: [{
|
83
|
+
type: Directive,
|
84
|
+
args: [{
|
85
|
+
selector: '[MenubarItemRadio]',
|
86
|
+
standalone: true,
|
87
|
+
hostDirectives: [CdkMenuItemRadio],
|
88
|
+
host: {
|
89
|
+
role: 'menuitemradio',
|
90
|
+
'[attr.aria-checked]': 'checked()',
|
91
|
+
'[attr.data-state]': 'checked() ? "checked": "unchecked"',
|
92
|
+
'[disabled]': 'disabledState()'
|
93
|
+
}
|
94
|
+
}]
|
95
|
+
}], ctorParameters: () => [] });
|
96
|
+
|
97
|
+
class RdxMenuBarItemDirective {
|
98
|
+
constructor() {
|
99
|
+
this.disabled = input(false, { transform: booleanAttribute });
|
100
|
+
}
|
101
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuBarItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
102
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.4", type: RdxMenuBarItemDirective, isStandalone: true, selector: "[MenuBarItem]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1$1.RdxMenuItemDirective, inputs: ["rdxDisabled", "disabled"] }], ngImport: i0 }); }
|
103
|
+
}
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuBarItemDirective, decorators: [{
|
105
|
+
type: Directive,
|
106
|
+
args: [{
|
107
|
+
selector: '[MenuBarItem]',
|
108
|
+
standalone: true,
|
109
|
+
hostDirectives: [{ directive: RdxMenuItemDirective, inputs: ['rdxDisabled: disabled '] }]
|
110
|
+
}]
|
111
|
+
}] });
|
112
|
+
|
113
|
+
class RdxMenubarRadioGroupDirective {
|
114
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenubarRadioGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
115
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxMenubarRadioGroupDirective, isStandalone: true, selector: "[MenubarRadioGroup]", hostDirectives: [{ directive: i1.CdkMenuGroup }], ngImport: i0 }); }
|
116
|
+
}
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenubarRadioGroupDirective, decorators: [{
|
118
|
+
type: Directive,
|
119
|
+
args: [{
|
120
|
+
selector: '[MenubarRadioGroup]',
|
121
|
+
standalone: true,
|
122
|
+
hostDirectives: [CdkMenuGroup]
|
123
|
+
}]
|
124
|
+
}] });
|
125
|
+
|
126
|
+
class RdxMenuBarDirective {
|
127
|
+
constructor() {
|
128
|
+
this.orientation = input('horizontal');
|
129
|
+
}
|
130
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuBarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
131
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.4", type: RdxMenuBarDirective, isStandalone: true, selector: "[MenuBarRoot]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tabindex": "0" }, properties: { "attr.data-orientation": "orientation()" } }, hostDirectives: [{ directive: i1.CdkMenuBar }], ngImport: i0 }); }
|
132
|
+
}
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuBarDirective, decorators: [{
|
134
|
+
type: Directive,
|
135
|
+
args: [{
|
136
|
+
selector: '[MenuBarRoot]',
|
137
|
+
standalone: true,
|
138
|
+
hostDirectives: [CdkMenuBar],
|
139
|
+
host: {
|
140
|
+
tabindex: '0',
|
141
|
+
'[attr.data-orientation]': 'orientation()'
|
142
|
+
}
|
143
|
+
}]
|
144
|
+
}] });
|
145
|
+
|
146
|
+
class RdxMenubarSeparatorDirective {
|
147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenubarSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
148
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.4", type: RdxMenubarSeparatorDirective, isStandalone: true, selector: "[MenubarSeparator]", hostDirectives: [{ directive: i1$1.RdxMenuSeparatorDirective }], ngImport: i0 }); }
|
149
|
+
}
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenubarSeparatorDirective, decorators: [{
|
151
|
+
type: Directive,
|
152
|
+
args: [{
|
153
|
+
selector: '[MenubarSeparator]',
|
154
|
+
standalone: true,
|
155
|
+
hostDirectives: [RdxMenuSeparatorDirective]
|
156
|
+
}]
|
157
|
+
}] });
|
158
|
+
|
159
|
+
class RdxMenuBarTriggerDirective {
|
160
|
+
constructor() {
|
161
|
+
this.cdkTrigger = inject(CdkMenuTrigger, { host: true });
|
162
|
+
this.disabled = input(false, {
|
163
|
+
transform: booleanAttribute
|
164
|
+
});
|
165
|
+
}
|
166
|
+
onPointerDown($event) {
|
167
|
+
// only call handler if it's the left button (mousedown gets triggered by all mouse buttons)
|
168
|
+
// but not when the control key is pressed (avoiding MacOS right click)
|
169
|
+
if (!this.disabled() && $event.button === 0 && !$event.ctrlKey) {
|
170
|
+
/* empty */
|
171
|
+
if (!this.cdkTrigger.isOpen()) {
|
172
|
+
// prevent trigger focusing when opening
|
173
|
+
// this allows the content to be given focus without competition
|
174
|
+
$event.preventDefault();
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuBarTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
179
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.4", type: RdxMenuBarTriggerDirective, isStandalone: true, selector: "[MenuBarTrigger]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button", "role": "menuitem" }, listeners: { "pointerdown": "onPointerDown($event)" }, properties: { "attr.aria-haspopup": "'menu'", "attr.aria-expanded": "cdkTrigger.isOpen()", "attr.data-state": "cdkTrigger.isOpen() ? 'open': 'closed'", "attr.data-disabled": "disabled() ? '' : undefined", "disabled": "disabled()" } }, hostDirectives: [{ directive: i1.CdkMenuTrigger, inputs: ["cdkMenuTriggerFor", "MenuBarTrigger"] }], ngImport: i0 }); }
|
180
|
+
}
|
181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: RdxMenuBarTriggerDirective, decorators: [{
|
182
|
+
type: Directive,
|
183
|
+
args: [{
|
184
|
+
selector: '[MenuBarTrigger]',
|
185
|
+
standalone: true,
|
186
|
+
hostDirectives: [{ directive: CdkMenuTrigger, inputs: ['cdkMenuTriggerFor: MenuBarTrigger'] }],
|
187
|
+
host: {
|
188
|
+
type: 'button',
|
189
|
+
role: 'menuitem',
|
190
|
+
'[attr.aria-haspopup]': "'menu'",
|
191
|
+
'[attr.aria-expanded]': 'cdkTrigger.isOpen()',
|
192
|
+
'[attr.data-state]': "cdkTrigger.isOpen() ? 'open': 'closed'",
|
193
|
+
'[attr.data-disabled]': "disabled() ? '' : undefined",
|
194
|
+
'[disabled]': 'disabled()',
|
195
|
+
'(pointerdown)': 'onPointerDown($event)'
|
196
|
+
}
|
197
|
+
}]
|
198
|
+
}] });
|
199
|
+
|
200
|
+
const menubarImports = [
|
201
|
+
RdxMenuBarContentDirective,
|
202
|
+
RdxMenuBarTriggerDirective,
|
203
|
+
RdxMenubarSeparatorDirective,
|
204
|
+
RdxMenubarItemCheckboxDirective,
|
205
|
+
RdxMenuBarDirective,
|
206
|
+
RdxMenuBarItemDirective,
|
207
|
+
RdxMenubarItemIndicatorDirective,
|
208
|
+
RdxMenubarItemRadioDirective,
|
209
|
+
RdxMenubarRadioGroupDirective
|
210
|
+
];
|
211
|
+
class MenubarModule {
|
212
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: MenubarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
213
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.4", ngImport: i0, type: MenubarModule, imports: [RdxMenuBarContentDirective,
|
214
|
+
RdxMenuBarTriggerDirective,
|
215
|
+
RdxMenubarSeparatorDirective,
|
216
|
+
RdxMenubarItemCheckboxDirective,
|
217
|
+
RdxMenuBarDirective,
|
218
|
+
RdxMenuBarItemDirective,
|
219
|
+
RdxMenubarItemIndicatorDirective,
|
220
|
+
RdxMenubarItemRadioDirective,
|
221
|
+
RdxMenubarRadioGroupDirective], exports: [RdxMenuBarContentDirective,
|
222
|
+
RdxMenuBarTriggerDirective,
|
223
|
+
RdxMenubarSeparatorDirective,
|
224
|
+
RdxMenubarItemCheckboxDirective,
|
225
|
+
RdxMenuBarDirective,
|
226
|
+
RdxMenuBarItemDirective,
|
227
|
+
RdxMenubarItemIndicatorDirective,
|
228
|
+
RdxMenubarItemRadioDirective,
|
229
|
+
RdxMenubarRadioGroupDirective] }); }
|
230
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: MenubarModule }); }
|
231
|
+
}
|
232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: MenubarModule, decorators: [{
|
233
|
+
type: NgModule,
|
234
|
+
args: [{
|
235
|
+
imports: [...menubarImports],
|
236
|
+
exports: [...menubarImports]
|
237
|
+
}]
|
238
|
+
}] });
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Generated bundle index. Do not edit.
|
242
|
+
*/
|
243
|
+
|
244
|
+
export { MenubarModule, RdxMenuBarContentDirective, RdxMenuBarDirective, RdxMenuBarItemDirective, RdxMenuBarTriggerDirective, RdxMenubarItemCheckboxDirective, RdxMenubarItemIndicatorDirective, RdxMenubarItemRadioDirective, RdxMenubarRadioGroupDirective, RdxMenubarSeparatorDirective };
|
245
|
+
//# sourceMappingURL=radix-ng-primitives-menubar.mjs.map
|