@radix-ng/primitives 0.51.0 → 1.0.0-beta.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.
Files changed (186) hide show
  1. package/fesm2022/radix-ng-primitives-accordion.mjs +105 -38
  2. package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
  3. package/fesm2022/radix-ng-primitives-alert-dialog.mjs +221 -129
  4. package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
  5. package/fesm2022/radix-ng-primitives-arrow.mjs +20 -4
  6. package/fesm2022/radix-ng-primitives-arrow.mjs.map +1 -1
  7. package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
  8. package/fesm2022/radix-ng-primitives-avatar.mjs +54 -61
  9. package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
  10. package/fesm2022/radix-ng-primitives-button.mjs +123 -0
  11. package/fesm2022/radix-ng-primitives-button.mjs.map +1 -0
  12. package/fesm2022/radix-ng-primitives-calendar.mjs +95 -83
  13. package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
  14. package/fesm2022/radix-ng-primitives-checkbox.mjs +378 -54
  15. package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
  16. package/fesm2022/radix-ng-primitives-collapsible.mjs +182 -81
  17. package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
  18. package/fesm2022/radix-ng-primitives-collection.mjs +40 -57
  19. package/fesm2022/radix-ng-primitives-collection.mjs.map +1 -1
  20. package/fesm2022/radix-ng-primitives-config.mjs.map +1 -1
  21. package/fesm2022/radix-ng-primitives-context-menu.mjs +140 -424
  22. package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
  23. package/fesm2022/radix-ng-primitives-core.mjs +845 -744
  24. package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
  25. package/fesm2022/radix-ng-primitives-cropper.mjs +288 -308
  26. package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -1
  27. package/fesm2022/radix-ng-primitives-date-field.mjs +104 -58
  28. package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
  29. package/fesm2022/radix-ng-primitives-dialog.mjs +655 -327
  30. package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
  31. package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +70 -46
  32. package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -1
  33. package/fesm2022/radix-ng-primitives-drawer.mjs +960 -0
  34. package/fesm2022/radix-ng-primitives-drawer.mjs.map +1 -0
  35. package/fesm2022/radix-ng-primitives-editable.mjs +304 -23
  36. package/fesm2022/radix-ng-primitives-editable.mjs.map +1 -1
  37. package/fesm2022/radix-ng-primitives-field.mjs +363 -0
  38. package/fesm2022/radix-ng-primitives-field.mjs.map +1 -0
  39. package/fesm2022/radix-ng-primitives-fieldset.mjs +79 -0
  40. package/fesm2022/radix-ng-primitives-fieldset.mjs.map +1 -0
  41. package/fesm2022/radix-ng-primitives-focus-scope.mjs +23 -8
  42. package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
  43. package/fesm2022/radix-ng-primitives-input.mjs +172 -0
  44. package/fesm2022/radix-ng-primitives-input.mjs.map +1 -0
  45. package/fesm2022/radix-ng-primitives-label.mjs +6 -6
  46. package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
  47. package/fesm2022/radix-ng-primitives-menu.mjs +1907 -363
  48. package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
  49. package/fesm2022/radix-ng-primitives-menubar.mjs +290 -162
  50. package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
  51. package/fesm2022/radix-ng-primitives-meter.mjs +271 -0
  52. package/fesm2022/radix-ng-primitives-meter.mjs.map +1 -0
  53. package/fesm2022/radix-ng-primitives-navigation-menu.mjs +1052 -1553
  54. package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
  55. package/fesm2022/radix-ng-primitives-number-field.mjs +1102 -367
  56. package/fesm2022/radix-ng-primitives-number-field.mjs.map +1 -1
  57. package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -1
  58. package/fesm2022/radix-ng-primitives-popover.mjs +978 -989
  59. package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
  60. package/fesm2022/radix-ng-primitives-popper.mjs +111 -44
  61. package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
  62. package/fesm2022/radix-ng-primitives-portal.mjs +34 -10
  63. package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
  64. package/fesm2022/radix-ng-primitives-presence.mjs +134 -246
  65. package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -1
  66. package/fesm2022/radix-ng-primitives-preview-card.mjs +997 -0
  67. package/fesm2022/radix-ng-primitives-preview-card.mjs.map +1 -0
  68. package/fesm2022/radix-ng-primitives-progress.mjs +223 -84
  69. package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
  70. package/fesm2022/radix-ng-primitives-radio.mjs +191 -51
  71. package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
  72. package/fesm2022/radix-ng-primitives-roving-focus.mjs +96 -50
  73. package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
  74. package/fesm2022/radix-ng-primitives-scroll-area.mjs +923 -0
  75. package/fesm2022/radix-ng-primitives-scroll-area.mjs.map +1 -0
  76. package/fesm2022/radix-ng-primitives-select.mjs +791 -509
  77. package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
  78. package/fesm2022/radix-ng-primitives-separator.mjs +12 -35
  79. package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
  80. package/fesm2022/radix-ng-primitives-slider.mjs +969 -717
  81. package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
  82. package/fesm2022/radix-ng-primitives-stepper.mjs +15 -19
  83. package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
  84. package/fesm2022/radix-ng-primitives-switch.mjs +125 -113
  85. package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
  86. package/fesm2022/radix-ng-primitives-tabs.mjs +390 -108
  87. package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
  88. package/fesm2022/radix-ng-primitives-time-field.mjs +55 -46
  89. package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
  90. package/fesm2022/radix-ng-primitives-toast.mjs +839 -0
  91. package/fesm2022/radix-ng-primitives-toast.mjs.map +1 -0
  92. package/fesm2022/radix-ng-primitives-toggle-group.mjs +121 -247
  93. package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
  94. package/fesm2022/radix-ng-primitives-toggle.mjs +98 -61
  95. package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
  96. package/fesm2022/radix-ng-primitives-toolbar.mjs +303 -92
  97. package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
  98. package/fesm2022/radix-ng-primitives-tooltip.mjs +699 -1072
  99. package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
  100. package/fesm2022/radix-ng-primitives-visually-hidden.mjs +25 -66
  101. package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
  102. package/meter/README.md +3 -0
  103. package/navigation-menu/README.md +2 -1
  104. package/package.json +39 -18
  105. package/portal/README.md +2 -0
  106. package/preview-card/README.md +3 -0
  107. package/schematics/collection.json +1 -0
  108. package/schematics/ng-add/index.d.ts +3 -2
  109. package/schematics/ng-add/index.js +62 -31
  110. package/schematics/ng-add/index.js.map +1 -1
  111. package/schematics/ng-add/package-config.d.ts +4 -2
  112. package/schematics/ng-add/package-config.js +10 -2
  113. package/schematics/ng-add/package-config.js.map +1 -1
  114. package/schematics/ng-add/schema.d.ts +3 -0
  115. package/schematics/ng-add/schema.js +3 -0
  116. package/schematics/ng-add/schema.js.map +1 -0
  117. package/schematics/ng-add/schema.json +14 -0
  118. package/select/README.md +2 -0
  119. package/types/radix-ng-primitives-accordion.d.ts +51 -16
  120. package/types/radix-ng-primitives-alert-dialog.d.ts +95 -38
  121. package/types/radix-ng-primitives-arrow.d.ts +1 -1
  122. package/types/radix-ng-primitives-aspect-ratio.d.ts +1 -1
  123. package/types/radix-ng-primitives-avatar.d.ts +7 -11
  124. package/types/radix-ng-primitives-button.d.ts +73 -0
  125. package/types/radix-ng-primitives-calendar.d.ts +39 -20
  126. package/types/radix-ng-primitives-checkbox.d.ts +204 -35
  127. package/types/radix-ng-primitives-collapsible.d.ts +114 -40
  128. package/types/radix-ng-primitives-collection.d.ts +38 -34
  129. package/types/radix-ng-primitives-config.d.ts +1 -1
  130. package/types/radix-ng-primitives-context-menu.d.ts +61 -116
  131. package/types/radix-ng-primitives-core.d.ts +345 -235
  132. package/types/radix-ng-primitives-cropper.d.ts +89 -56
  133. package/types/radix-ng-primitives-date-field.d.ts +49 -28
  134. package/types/radix-ng-primitives-dialog.d.ts +283 -165
  135. package/types/radix-ng-primitives-dismissable-layer.d.ts +15 -7
  136. package/types/radix-ng-primitives-drawer.d.ts +426 -0
  137. package/types/radix-ng-primitives-editable.d.ts +91 -14
  138. package/types/radix-ng-primitives-field.d.ts +374 -0
  139. package/types/radix-ng-primitives-fieldset.d.ts +49 -0
  140. package/types/radix-ng-primitives-focus-scope.d.ts +15 -6
  141. package/types/radix-ng-primitives-input.d.ts +87 -0
  142. package/types/radix-ng-primitives-label.d.ts +0 -1
  143. package/types/radix-ng-primitives-menu.d.ts +584 -99
  144. package/types/radix-ng-primitives-menubar.d.ts +61 -50
  145. package/types/radix-ng-primitives-meter.d.ts +194 -0
  146. package/types/radix-ng-primitives-navigation-menu.d.ts +422 -340
  147. package/types/radix-ng-primitives-number-field.d.ts +405 -145
  148. package/types/radix-ng-primitives-pagination.d.ts +2 -2
  149. package/types/radix-ng-primitives-popover.d.ts +366 -351
  150. package/types/radix-ng-primitives-popper.d.ts +68 -11
  151. package/types/radix-ng-primitives-portal.d.ts +14 -6
  152. package/types/radix-ng-primitives-presence.d.ts +28 -76
  153. package/types/radix-ng-primitives-preview-card.d.ts +359 -0
  154. package/types/radix-ng-primitives-progress.d.ts +175 -48
  155. package/types/radix-ng-primitives-radio.d.ts +55 -25
  156. package/types/radix-ng-primitives-roving-focus.d.ts +33 -23
  157. package/types/radix-ng-primitives-scroll-area.d.ts +253 -0
  158. package/types/radix-ng-primitives-select.d.ts +475 -177
  159. package/types/radix-ng-primitives-separator.d.ts +7 -32
  160. package/types/radix-ng-primitives-slider.d.ts +315 -201
  161. package/types/radix-ng-primitives-stepper.d.ts +5 -7
  162. package/types/radix-ng-primitives-switch.d.ts +86 -71
  163. package/types/radix-ng-primitives-tabs.d.ts +213 -79
  164. package/types/radix-ng-primitives-time-field.d.ts +42 -27
  165. package/types/radix-ng-primitives-toast.d.ts +378 -0
  166. package/types/radix-ng-primitives-toggle-group.d.ts +86 -164
  167. package/types/radix-ng-primitives-toggle.d.ts +43 -53
  168. package/types/radix-ng-primitives-toolbar.d.ts +164 -38
  169. package/types/radix-ng-primitives-tooltip.d.ts +348 -384
  170. package/types/radix-ng-primitives-visually-hidden.d.ts +19 -19
  171. package/dropdown-menu/README.md +0 -1
  172. package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +0 -581
  173. package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +0 -1
  174. package/fesm2022/radix-ng-primitives-hover-card.mjs +0 -1238
  175. package/fesm2022/radix-ng-primitives-hover-card.mjs.map +0 -1
  176. package/fesm2022/radix-ng-primitives-select2.mjs +0 -897
  177. package/fesm2022/radix-ng-primitives-select2.mjs.map +0 -1
  178. package/fesm2022/radix-ng-primitives-tooltip2.mjs +0 -735
  179. package/fesm2022/radix-ng-primitives-tooltip2.mjs.map +0 -1
  180. package/hover-card/README.md +0 -3
  181. package/select2/README.md +0 -3
  182. package/tooltip2/README.md +0 -3
  183. package/types/radix-ng-primitives-dropdown-menu.d.ts +0 -171
  184. package/types/radix-ng-primitives-hover-card.d.ts +0 -471
  185. package/types/radix-ng-primitives-select2.d.ts +0 -511
  186. package/types/radix-ng-primitives-tooltip2.d.ts +0 -325
@@ -1,176 +1,304 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, NgModule } from '@angular/core';
3
- import * as i1 from '@radix-ng/primitives/menu';
4
- import { RdxMenuContentDirective, RdxMenuItemCheckboxDirective, RdxMenuItemIndicatorDirective, RdxMenuItemRadioDirective, RdxMenuItemDirective, RdxMenuSeparatorDirective, RdxMenuTriggerDirective } from '@radix-ng/primitives/menu';
5
- import * as i1$1 from '@angular/cdk/menu';
6
- import { CdkMenuGroup, CdkMenuBar } from '@angular/cdk/menu';
2
+ import { inject, contentChildren, input, booleanAttribute, signal, computed, effect, Directive, NgModule } from '@angular/core';
3
+ import { createContext } from '@radix-ng/primitives/core';
4
+ import { RdxMenuRoot } from '@radix-ng/primitives/menu';
7
5
 
8
- class RdxMenuBarContentDirective {
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenuBarContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
10
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: RdxMenuBarContentDirective, isStandalone: true, selector: "[RdxMenuBarContent]", hostDirectives: [{ directive: i1.RdxMenuContentDirective }], ngImport: i0 }); }
6
+ const [injectRdxMenubarContext, provideRdxMenubarContext] = createContext('RdxMenubarContext');
7
+ const contextFactory = () => buildContext(inject(RdxMenubarRoot));
8
+ function buildContext(root) {
9
+ return {
10
+ activeId: root.activeId.asReadonly(),
11
+ isAnyOpen: root.isAnyOpen,
12
+ disabled: root.disabled,
13
+ orientation: root.orientation,
14
+ registerItem: (id, el, open, close, disabled) => root.registerItem(id, el, open, close, disabled),
15
+ activateItem: (id) => root.activateItem(id),
16
+ deactivateAll: () => root.deactivateAll(),
17
+ focusAdjacent: (id, offset, open) => root.focusAdjacent(id, offset, open),
18
+ focusBoundary: (boundary, open) => root.focusBoundary(boundary, open)
19
+ };
11
20
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenuBarContentDirective, decorators: [{
13
- type: Directive,
14
- args: [{
15
- selector: '[RdxMenuBarContent]',
16
- hostDirectives: [RdxMenuContentDirective]
17
- }]
18
- }] });
19
-
20
- class RdxMenubarItemCheckboxDirective {
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarItemCheckboxDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
22
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: RdxMenubarItemCheckboxDirective, isStandalone: true, selector: "[RdxMenuBarCheckboxItem]", hostDirectives: [{ directive: i1.RdxMenuItemCheckboxDirective, inputs: ["checked", "checked", "disabled", "disabled"] }], ngImport: i0 }); }
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarItemCheckboxDirective, decorators: [{
25
- type: Directive,
26
- args: [{
27
- selector: '[RdxMenuBarCheckboxItem]',
28
- hostDirectives: [
29
- {
30
- directive: RdxMenuItemCheckboxDirective,
31
- inputs: ['checked', 'disabled']
32
- }
33
- ]
34
- }]
35
- }] });
36
-
37
- class RdxMenubarItemIndicatorDirective {
38
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarItemIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
39
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: RdxMenubarItemIndicatorDirective, isStandalone: true, selector: "[RdxMenuBarItemIndicator]", hostDirectives: [{ directive: i1.RdxMenuItemIndicatorDirective }], ngImport: i0 }); }
40
- }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarItemIndicatorDirective, decorators: [{
42
- type: Directive,
43
- args: [{
44
- selector: '[RdxMenuBarItemIndicator]',
45
- hostDirectives: [RdxMenuItemIndicatorDirective]
46
- }]
47
- }] });
48
-
49
- class RdxMenubarItemRadioDirective {
50
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarItemRadioDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
51
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: RdxMenubarItemRadioDirective, isStandalone: true, selector: "[RdxMenuBarItemRadio]", hostDirectives: [{ directive: i1.RdxMenuItemRadioDirective, inputs: ["disabled", "disabled", "checked", "checked"] }], ngImport: i0 }); }
52
- }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarItemRadioDirective, decorators: [{
54
- type: Directive,
55
- args: [{
56
- selector: '[RdxMenuBarItemRadio]',
57
- hostDirectives: [
58
- {
59
- directive: RdxMenuItemRadioDirective,
60
- inputs: ['disabled', 'checked']
61
- }
62
- ]
63
- }]
64
- }] });
65
-
66
- class RdxMenuBarItemDirective {
67
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenuBarItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
68
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: RdxMenuBarItemDirective, isStandalone: true, selector: "[RdxMenuBarItem]", hostDirectives: [{ directive: i1.RdxMenuItemDirective, inputs: ["disabled", "disabled"], outputs: ["onSelect", "onSelect"] }], ngImport: i0 }); }
69
- }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenuBarItemDirective, decorators: [{
71
- type: Directive,
72
- args: [{
73
- selector: '[RdxMenuBarItem]',
74
- hostDirectives: [
75
- {
76
- directive: RdxMenuItemDirective,
77
- inputs: ['disabled'],
78
- outputs: ['onSelect']
79
- }
80
- ]
81
- }]
82
- }] });
83
-
84
- class RdxMenubarRadioGroupDirective {
85
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarRadioGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
86
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: RdxMenubarRadioGroupDirective, isStandalone: true, selector: "[RdxMenuBarRadioGroup]", hostDirectives: [{ directive: i1$1.CdkMenuGroup }], ngImport: i0 }); }
87
- }
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarRadioGroupDirective, decorators: [{
89
- type: Directive,
90
- args: [{
91
- selector: '[RdxMenuBarRadioGroup]',
92
- hostDirectives: [CdkMenuGroup]
93
- }]
94
- }] });
95
-
96
- class RdxMenuBarRootDirective {
97
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenuBarRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
98
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: RdxMenuBarRootDirective, isStandalone: true, selector: "[RdxMenuBarRoot]", host: { attributes: { "tabindex": "0" }, properties: { "attr.data-orientation": "\"horizontal\"" } }, hostDirectives: [{ directive: i1$1.CdkMenuBar }], ngImport: i0 }); }
21
+ let nextMenubarItemId = 0;
22
+ /**
23
+ * Container for a horizontal application menu bar.
24
+ * Coordinates open/close state across multiple menus and provides arrow-key navigation.
25
+ */
26
+ class RdxMenubarRoot {
27
+ constructor() {
28
+ this.menuRoots = contentChildren(RdxMenuRoot, ...(ngDevMode ? [{ debugName: "menuRoots" }] : /* istanbul ignore next */ []));
29
+ this.ids = new WeakMap();
30
+ this.items = [];
31
+ /** Whether every menubar trigger is disabled. */
32
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
33
+ /** Whether arrow-key navigation wraps at the first/last trigger. */
34
+ this.loopFocus = input(true, { ...(ngDevMode ? { debugName: "loopFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
35
+ /** The menubar orientation. */
36
+ this.orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
37
+ this.activeId = signal(null, ...(ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []));
38
+ this.isAnyOpen = computed(() => this.activeId() !== null, ...(ngDevMode ? [{ debugName: "isAnyOpen" }] : /* istanbul ignore next */ []));
39
+ effect((onCleanup) => {
40
+ const roots = this.menuRoots();
41
+ const registered = [];
42
+ roots.forEach((root) => {
43
+ const trigger = root.trigger();
44
+ if (!trigger || trigger.closest('[rdxMenuPopup]')) {
45
+ return;
46
+ }
47
+ registered.push(this.registerMenuRoot(root, trigger));
48
+ });
49
+ onCleanup(() => {
50
+ registered.forEach((cleanup) => cleanup());
51
+ });
52
+ });
53
+ effect(() => {
54
+ const activeId = this.activeId();
55
+ if (!activeId) {
56
+ return;
57
+ }
58
+ this.menuRoots().forEach((root) => {
59
+ const trigger = root.trigger();
60
+ if (!trigger || trigger.closest('[rdxMenuPopup]')) {
61
+ return;
62
+ }
63
+ if (this.idFor(root) === activeId && !root.open()) {
64
+ this.deactivateAll();
65
+ }
66
+ });
67
+ });
68
+ }
69
+ registerItem(id, el, open, close, disabled) {
70
+ this.items.push({ id, el, root: undefined, open, close, disabled });
71
+ // Keep items in DOM order
72
+ this.items.sort((a, b) => (a.el.compareDocumentPosition(b.el) & 4 ? -1 : 1));
73
+ return () => {
74
+ this.items = this.items.filter((item) => item.id !== id);
75
+ if (this.activeId() === id)
76
+ this.activeId.set(null);
77
+ };
78
+ }
79
+ activateItem(id) {
80
+ if (this.disabled()) {
81
+ return;
82
+ }
83
+ // Close every other open menu
84
+ this.items.forEach((item) => {
85
+ if (item.id !== id)
86
+ item.close();
87
+ });
88
+ this.activeId.set(id);
89
+ }
90
+ deactivateAll() {
91
+ this.activeId.set(null);
92
+ }
93
+ focusBoundary(boundary, openOnMove) {
94
+ const enabled = this.enabledItems();
95
+ this.focusItem(boundary === 'first' ? enabled[0] : enabled[enabled.length - 1], openOnMove);
96
+ }
97
+ generateId() {
98
+ return `rdx-menubar-item-${nextMenubarItemId++}`;
99
+ }
100
+ idFor(root) {
101
+ let id = this.ids.get(root);
102
+ if (!id) {
103
+ id = this.generateId();
104
+ this.ids.set(root, id);
105
+ }
106
+ return id;
107
+ }
108
+ registerMenuRoot(root, trigger) {
109
+ const id = this.idFor(root);
110
+ const unregisterPopupArrowNavigation = root.registerPopupArrowNavigationHandler((offset) => {
111
+ if (this.disabled()) {
112
+ return false;
113
+ }
114
+ this.focusAdjacent(id, offset, true);
115
+ return true;
116
+ });
117
+ const unregisterTriggerInteraction = root.registerTriggerInteractionHandler((interaction) => this.handleTriggerInteraction(id, root, trigger, interaction));
118
+ const unregisterItem = this.registerResolvedItem(id, trigger, root);
119
+ return () => {
120
+ unregisterItem();
121
+ unregisterTriggerInteraction();
122
+ unregisterPopupArrowNavigation();
123
+ };
124
+ }
125
+ registerResolvedItem(id, el, root) {
126
+ this.items.push({
127
+ id,
128
+ el,
129
+ root,
130
+ open: () => root.show(false),
131
+ close: () => root.close(),
132
+ disabled: () => this.disabled() || root.disabled() || el.hasAttribute('disabled')
133
+ });
134
+ this.items.sort((a, b) => (a.el.compareDocumentPosition(b.el) & 4 ? -1 : 1));
135
+ this.updateTriggerTabStops();
136
+ return () => {
137
+ this.items = this.items.filter((item) => item.id !== id);
138
+ if (this.activeId() === id)
139
+ this.activeId.set(null);
140
+ this.updateTriggerTabStops();
141
+ };
142
+ }
143
+ handleTriggerInteraction(id, root, trigger, interaction) {
144
+ if (this.disabled()) {
145
+ return false;
146
+ }
147
+ switch (interaction.type) {
148
+ case 'click': {
149
+ if (root.open()) {
150
+ root.close();
151
+ this.deactivateAll();
152
+ }
153
+ else {
154
+ root.show();
155
+ this.activateItem(id);
156
+ }
157
+ return true;
158
+ }
159
+ case 'pointerenter': {
160
+ if (interaction.event.pointerType === 'touch' || !this.hasOpenMenu()) {
161
+ return false;
162
+ }
163
+ if (root.open()) {
164
+ return true;
165
+ }
166
+ trigger.focus({ preventScroll: true });
167
+ root.show(false);
168
+ this.activateItem(id);
169
+ return true;
170
+ }
171
+ case 'arrowdown': {
172
+ interaction.event.preventDefault();
173
+ root.show('first');
174
+ this.activateItem(id);
175
+ return true;
176
+ }
177
+ case 'arrowup': {
178
+ interaction.event.preventDefault();
179
+ root.show('last');
180
+ this.activateItem(id);
181
+ return true;
182
+ }
183
+ case 'arrowleft': {
184
+ this.handleTriggerArrow(interaction.event, id, -1, root.open());
185
+ return true;
186
+ }
187
+ case 'arrowright': {
188
+ this.handleTriggerArrow(interaction.event, id, 1, root.open());
189
+ return true;
190
+ }
191
+ case 'home': {
192
+ this.handleTriggerBoundary(interaction.event, 'first', root.open());
193
+ return true;
194
+ }
195
+ case 'end': {
196
+ this.handleTriggerBoundary(interaction.event, 'last', root.open());
197
+ return true;
198
+ }
199
+ case 'escape': {
200
+ interaction.event.preventDefault();
201
+ interaction.event.stopPropagation();
202
+ root.close();
203
+ this.deactivateAll();
204
+ trigger.focus({ preventScroll: true });
205
+ return true;
206
+ }
207
+ }
208
+ }
209
+ handleTriggerArrow(event, id, offset, openOnMove) {
210
+ event.preventDefault();
211
+ event.stopPropagation();
212
+ event.stopImmediatePropagation();
213
+ this.focusAdjacent(id, offset, openOnMove);
214
+ }
215
+ handleTriggerBoundary(event, boundary, openOnMove) {
216
+ event.preventDefault();
217
+ event.stopPropagation();
218
+ event.stopImmediatePropagation();
219
+ this.focusBoundary(boundary, openOnMove);
220
+ }
221
+ focusAdjacent(currentId, offset, openOnMove) {
222
+ const enabled = this.enabledItems();
223
+ const currentIndex = enabled.findIndex((item) => item.id === currentId);
224
+ if (currentIndex === -1 || enabled.length === 0)
225
+ return;
226
+ const nextIndex = currentIndex + offset;
227
+ if (!this.loopFocus() && (nextIndex < 0 || nextIndex >= enabled.length)) {
228
+ return;
229
+ }
230
+ const next = enabled[(nextIndex + enabled.length) % enabled.length];
231
+ this.focusItem(next, openOnMove);
232
+ }
233
+ handleArrowLeft(event) {
234
+ this.handleOpenMenuNavigation(event, -1);
235
+ }
236
+ handleArrowRight(event) {
237
+ this.handleOpenMenuNavigation(event, 1);
238
+ }
239
+ handleOpenMenuNavigation(event, offset) {
240
+ const activeId = this.activeId();
241
+ if (!activeId || this.disabled() || !this.hasOpenMenu()) {
242
+ return;
243
+ }
244
+ event.preventDefault();
245
+ event.stopPropagation();
246
+ event.stopImmediatePropagation();
247
+ this.focusAdjacent(activeId, offset, true);
248
+ }
249
+ focusItem(item, openOnMove) {
250
+ if (!item || this.disabled())
251
+ return;
252
+ item.el.focus();
253
+ if (openOnMove) {
254
+ item.open();
255
+ this.activateItem(item.id);
256
+ }
257
+ }
258
+ updateTriggerTabStops() {
259
+ this.items.forEach((item) => item.el.setAttribute('tabindex', '-1'));
260
+ }
261
+ enabledItems() {
262
+ return this.items.filter((item) => !item.disabled());
263
+ }
264
+ hasOpenMenu() {
265
+ return this.items.some((item) => item.root?.open());
266
+ }
267
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarRoot, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
268
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.9", type: RdxMenubarRoot, isStandalone: true, selector: "[rdxMenubarRoot]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loopFocus: { classPropertyName: "loopFocus", publicName: "loopFocus", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "menubar", "tabindex": "0" }, listeners: { "keydown.arrowleft": "handleArrowLeft($event)", "keydown.arrowright": "handleArrowRight($event)" }, properties: { "attr.aria-orientation": "orientation()", "attr.data-orientation": "orientation()", "attr.data-disabled": "disabled() ? \"\" : undefined", "attr.data-has-submenu-open": "isAnyOpen() ? \"\" : undefined" } }, providers: [provideRdxMenubarContext(contextFactory)], queries: [{ propertyName: "menuRoots", predicate: RdxMenuRoot, isSignal: true }], exportAs: ["rdxMenubarRoot"], ngImport: i0 }); }
99
269
  }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenuBarRootDirective, decorators: [{
270
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarRoot, decorators: [{
101
271
  type: Directive,
102
272
  args: [{
103
- selector: '[RdxMenuBarRoot]',
104
- hostDirectives: [CdkMenuBar],
273
+ selector: '[rdxMenubarRoot]',
274
+ exportAs: 'rdxMenubarRoot',
275
+ providers: [provideRdxMenubarContext(contextFactory)],
105
276
  host: {
277
+ role: 'menubar',
106
278
  tabindex: '0',
107
- '[attr.data-orientation]': '"horizontal"'
279
+ '[attr.aria-orientation]': 'orientation()',
280
+ '[attr.data-orientation]': 'orientation()',
281
+ '[attr.data-disabled]': 'disabled() ? "" : undefined',
282
+ '[attr.data-has-submenu-open]': 'isAnyOpen() ? "" : undefined',
283
+ '(keydown.arrowleft)': 'handleArrowLeft($event)',
284
+ '(keydown.arrowright)': 'handleArrowRight($event)'
108
285
  }
109
286
  }]
110
- }] });
111
-
112
- class RdxMenubarSeparatorDirective {
113
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
114
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: RdxMenubarSeparatorDirective, isStandalone: true, selector: "[RdxMenuBarSeparator]", hostDirectives: [{ directive: i1.RdxMenuSeparatorDirective }], ngImport: i0 }); }
115
- }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarSeparatorDirective, decorators: [{
117
- type: Directive,
118
- args: [{
119
- selector: '[RdxMenuBarSeparator]',
120
- hostDirectives: [RdxMenuSeparatorDirective]
121
- }]
122
- }] });
287
+ }], ctorParameters: () => [], propDecorators: { menuRoots: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => RdxMenuRoot), { isSignal: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loopFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "loopFocus", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }] } });
123
288
 
124
- class RdxMenuBarTriggerDirective {
125
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenuBarTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
126
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: RdxMenuBarTriggerDirective, isStandalone: true, selector: "[RdxMenuBarTrigger]", hostDirectives: [{ directive: i1.RdxMenuTriggerDirective, inputs: ["disabled", "disabled", "menuTriggerFor", "menuTriggerFor", "sideOffset", "sideOffset", "side", "side", "align", "align", "alignOffset", "alignOffset"] }], ngImport: i0 }); }
127
- }
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenuBarTriggerDirective, decorators: [{
129
- type: Directive,
130
- args: [{
131
- selector: '[RdxMenuBarTrigger]',
132
- hostDirectives: [
133
- {
134
- directive: RdxMenuTriggerDirective,
135
- inputs: ['disabled', 'menuTriggerFor', 'sideOffset', 'side', 'align', 'alignOffset']
136
- }
137
- ]
138
- }]
139
- }] });
140
-
141
- const menubarImports = [
142
- RdxMenuBarContentDirective,
143
- RdxMenuBarTriggerDirective,
144
- RdxMenubarSeparatorDirective,
145
- RdxMenubarItemCheckboxDirective,
146
- RdxMenuBarRootDirective,
147
- RdxMenuBarItemDirective,
148
- RdxMenubarItemIndicatorDirective,
149
- RdxMenubarItemRadioDirective,
150
- RdxMenubarRadioGroupDirective
151
- ];
152
- class MenubarModule {
153
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MenubarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
154
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: MenubarModule, imports: [RdxMenuBarContentDirective,
155
- RdxMenuBarTriggerDirective,
156
- RdxMenubarSeparatorDirective,
157
- RdxMenubarItemCheckboxDirective,
158
- RdxMenuBarRootDirective,
159
- RdxMenuBarItemDirective,
160
- RdxMenubarItemIndicatorDirective,
161
- RdxMenubarItemRadioDirective,
162
- RdxMenubarRadioGroupDirective], exports: [RdxMenuBarContentDirective,
163
- RdxMenuBarTriggerDirective,
164
- RdxMenubarSeparatorDirective,
165
- RdxMenubarItemCheckboxDirective,
166
- RdxMenuBarRootDirective,
167
- RdxMenuBarItemDirective,
168
- RdxMenubarItemIndicatorDirective,
169
- RdxMenubarItemRadioDirective,
170
- RdxMenubarRadioGroupDirective] }); }
171
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MenubarModule }); }
289
+ /**
290
+ * Menubar-specific parts. Triggers use the standard `rdxMenuTrigger` from
291
+ * `@radix-ng/primitives/menu`; the menubar root wires them for roving focus,
292
+ * hover switching, and ArrowLeft / ArrowRight navigation. The menu popup, items,
293
+ * checkbox/radio, submenu, separator, etc. also come from `RdxMenuModule`.
294
+ */
295
+ const menubarImports = [RdxMenubarRoot];
296
+ class RdxMenubarModule {
297
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
298
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarModule, imports: [RdxMenubarRoot], exports: [RdxMenubarRoot] }); }
299
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarModule }); }
172
300
  }
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MenubarModule, decorators: [{
301
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxMenubarModule, decorators: [{
174
302
  type: NgModule,
175
303
  args: [{
176
304
  imports: [...menubarImports],
@@ -182,5 +310,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
182
310
  * Generated bundle index. Do not edit.
183
311
  */
184
312
 
185
- export { MenubarModule, RdxMenuBarContentDirective, RdxMenuBarItemDirective, RdxMenuBarRootDirective, RdxMenuBarTriggerDirective, RdxMenubarItemCheckboxDirective, RdxMenubarItemIndicatorDirective, RdxMenubarItemRadioDirective, RdxMenubarRadioGroupDirective, RdxMenubarSeparatorDirective };
313
+ export { RdxMenubarModule, RdxMenubarRoot, injectRdxMenubarContext, provideRdxMenubarContext };
186
314
  //# sourceMappingURL=radix-ng-primitives-menubar.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radix-ng-primitives-menubar.mjs","sources":["../../../packages/primitives/menubar/src/menubar-content.directive.ts","../../../packages/primitives/menubar/src/menubar-item-checkbox.directive.ts","../../../packages/primitives/menubar/src/menubar-item-indicator.directive.ts","../../../packages/primitives/menubar/src/menubar-item-radio.directive.ts","../../../packages/primitives/menubar/src/menubar-item.directive.ts","../../../packages/primitives/menubar/src/menubar-radio-group.directive.ts","../../../packages/primitives/menubar/src/menubar-root.directive.ts","../../../packages/primitives/menubar/src/menubar-separator.directive.ts","../../../packages/primitives/menubar/src/menubar-trigger.directive.ts","../../../packages/primitives/menubar/index.ts","../../../packages/primitives/menubar/radix-ng-primitives-menubar.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { RdxMenuContentDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[RdxMenuBarContent]',\n hostDirectives: [RdxMenuContentDirective]\n})\nexport class RdxMenuBarContentDirective {}\n","import { Directive } from '@angular/core';\nimport { RdxMenuItemCheckboxDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[RdxMenuBarCheckboxItem]',\n hostDirectives: [\n {\n directive: RdxMenuItemCheckboxDirective,\n inputs: ['checked', 'disabled']\n }\n ]\n})\nexport class RdxMenubarItemCheckboxDirective {}\n","import { Directive } from '@angular/core';\nimport { RdxMenuItemIndicatorDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[RdxMenuBarItemIndicator]',\n hostDirectives: [RdxMenuItemIndicatorDirective]\n})\nexport class RdxMenubarItemIndicatorDirective {}\n","import { Directive } from '@angular/core';\nimport { RdxMenuItemRadioDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[RdxMenuBarItemRadio]',\n hostDirectives: [\n {\n directive: RdxMenuItemRadioDirective,\n inputs: ['disabled', 'checked']\n }\n ]\n})\nexport class RdxMenubarItemRadioDirective {}\n","import { Directive } from '@angular/core';\nimport { RdxMenuItemDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[RdxMenuBarItem]',\n hostDirectives: [\n {\n directive: RdxMenuItemDirective,\n inputs: ['disabled'],\n outputs: ['onSelect']\n }\n ]\n})\nexport class RdxMenuBarItemDirective {}\n","import { CdkMenuGroup } from '@angular/cdk/menu';\nimport { Directive } from '@angular/core';\n\n@Directive({\n selector: '[RdxMenuBarRadioGroup]',\n hostDirectives: [CdkMenuGroup]\n})\nexport class RdxMenubarRadioGroupDirective {}\n","import { CdkMenuBar } from '@angular/cdk/menu';\nimport { Directive } from '@angular/core';\n\n@Directive({\n selector: '[RdxMenuBarRoot]',\n hostDirectives: [CdkMenuBar],\n host: {\n tabindex: '0',\n '[attr.data-orientation]': '\"horizontal\"'\n }\n})\nexport class RdxMenuBarRootDirective {}\n","import { Directive } from '@angular/core';\nimport { RdxMenuSeparatorDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[RdxMenuBarSeparator]',\n hostDirectives: [RdxMenuSeparatorDirective]\n})\nexport class RdxMenubarSeparatorDirective {}\n","import { Directive } from '@angular/core';\nimport { RdxMenuTriggerDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[RdxMenuBarTrigger]',\n hostDirectives: [\n {\n directive: RdxMenuTriggerDirective,\n inputs: ['disabled', 'menuTriggerFor', 'sideOffset', 'side', 'align', 'alignOffset']\n }\n ]\n})\nexport class RdxMenuBarTriggerDirective {}\n","import { NgModule } from '@angular/core';\nimport { RdxMenuBarContentDirective } from './src/menubar-content.directive';\nimport { RdxMenubarItemCheckboxDirective } from './src/menubar-item-checkbox.directive';\nimport { RdxMenubarItemIndicatorDirective } from './src/menubar-item-indicator.directive';\nimport { RdxMenubarItemRadioDirective } from './src/menubar-item-radio.directive';\nimport { RdxMenuBarItemDirective } from './src/menubar-item.directive';\nimport { RdxMenubarRadioGroupDirective } from './src/menubar-radio-group.directive';\nimport { RdxMenuBarRootDirective } from './src/menubar-root.directive';\nimport { RdxMenubarSeparatorDirective } from './src/menubar-separator.directive';\nimport { RdxMenuBarTriggerDirective } from './src/menubar-trigger.directive';\n\nexport * from './src/menubar-content.directive';\nexport * from './src/menubar-item-checkbox.directive';\nexport * from './src/menubar-item-indicator.directive';\nexport * from './src/menubar-item-radio.directive';\nexport * from './src/menubar-item.directive';\nexport * from './src/menubar-radio-group.directive';\nexport * from './src/menubar-root.directive';\nexport * from './src/menubar-separator.directive';\nexport * from './src/menubar-trigger.directive';\n\nconst menubarImports = [\n RdxMenuBarContentDirective,\n RdxMenuBarTriggerDirective,\n RdxMenubarSeparatorDirective,\n RdxMenubarItemCheckboxDirective,\n RdxMenuBarRootDirective,\n RdxMenuBarItemDirective,\n RdxMenubarItemIndicatorDirective,\n RdxMenubarItemRadioDirective,\n RdxMenubarRadioGroupDirective\n];\n\n@NgModule({\n imports: [...menubarImports],\n exports: [...menubarImports]\n})\nexport class MenubarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;MAOa,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,uBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qBAAqB;oBAC/B,cAAc,EAAE,CAAC,uBAAuB;AAC3C,iBAAA;;;MCMY,+BAA+B,CAAA;8GAA/B,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA/B,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,4BAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,SAAA,EAAA,UAAA,EAAA,U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,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAftB,0BAA0B;YAC1B,0BAA0B;YAC1B,4BAA4B;YAC5B,+BAA+B;YAC/B,uBAAuB;YACvB,uBAAuB;YACvB,gCAAgC;YAChC,4BAA4B;AAC5B,YAAA,6BAA6B,aAR7B,0BAA0B;YAC1B,0BAA0B;YAC1B,4BAA4B;YAC5B,+BAA+B;YAC/B,uBAAuB;YACvB,uBAAuB;YACvB,gCAAgC;YAChC,4BAA4B;YAC5B,6BAA6B,CAAA,EAAA,CAAA,CAAA;+GAOpB,aAAa,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,cAAc,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,cAAc;AAC9B,iBAAA;;;ACpCD;;AAEG;;;;"}
1
+ {"version":3,"file":"radix-ng-primitives-menubar.mjs","sources":["../../../packages/primitives/menubar/src/menubar-root.ts","../../../packages/primitives/menubar/index.ts","../../../packages/primitives/menubar/radix-ng-primitives-menubar.ts"],"sourcesContent":["import {\n booleanAttribute,\n computed,\n contentChildren,\n Directive,\n effect,\n inject,\n input,\n signal,\n Signal\n} from '@angular/core';\nimport { BooleanInput, createContext } from '@radix-ng/primitives/core';\nimport { RdxMenuRoot, RdxMenuTriggerInteraction } from '@radix-ng/primitives/menu';\n\nexport type RdxMenubarOrientation = 'horizontal' | 'vertical';\n\ninterface RdxMenubarItem {\n id: string;\n el: HTMLElement;\n root: RdxMenuRoot;\n open: () => void;\n close: () => void;\n disabled: () => boolean;\n}\n\nexport interface RdxMenubarContext {\n activeId: Signal<string | null>;\n isAnyOpen: Signal<boolean>;\n disabled: Signal<boolean>;\n orientation: Signal<RdxMenubarOrientation>;\n registerItem: (\n id: string,\n el: HTMLElement,\n open: () => void,\n close: () => void,\n disabled: () => boolean\n ) => () => void;\n activateItem: (id: string) => void;\n deactivateAll: () => void;\n focusAdjacent: (currentId: string, offset: 1 | -1, openOnMove: boolean) => void;\n focusBoundary: (boundary: 'first' | 'last', openOnMove: boolean) => void;\n}\n\nexport const [injectRdxMenubarContext, provideRdxMenubarContext] =\n createContext<RdxMenubarContext>('RdxMenubarContext');\n\nconst contextFactory = () => buildContext(inject(RdxMenubarRoot));\n\nfunction buildContext(root: RdxMenubarRoot): RdxMenubarContext {\n return {\n activeId: root.activeId.asReadonly(),\n isAnyOpen: root.isAnyOpen,\n disabled: root.disabled,\n orientation: root.orientation,\n registerItem: (id, el, open, close, disabled) => root.registerItem(id, el, open, close, disabled),\n activateItem: (id) => root.activateItem(id),\n deactivateAll: () => root.deactivateAll(),\n focusAdjacent: (id, offset, open) => root.focusAdjacent(id, offset, open),\n focusBoundary: (boundary, open) => root.focusBoundary(boundary, open)\n };\n}\n\nlet nextMenubarItemId = 0;\n\n/**\n * Container for a horizontal application menu bar.\n * Coordinates open/close state across multiple menus and provides arrow-key navigation.\n */\n@Directive({\n selector: '[rdxMenubarRoot]',\n exportAs: 'rdxMenubarRoot',\n providers: [provideRdxMenubarContext(contextFactory)],\n host: {\n role: 'menubar',\n tabindex: '0',\n '[attr.aria-orientation]': 'orientation()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-disabled]': 'disabled() ? \"\" : undefined',\n '[attr.data-has-submenu-open]': 'isAnyOpen() ? \"\" : undefined',\n '(keydown.arrowleft)': 'handleArrowLeft($event)',\n '(keydown.arrowright)': 'handleArrowRight($event)'\n }\n})\nexport class RdxMenubarRoot {\n private readonly menuRoots = contentChildren(RdxMenuRoot);\n private readonly ids = new WeakMap<RdxMenuRoot, string>();\n private items: RdxMenubarItem[] = [];\n\n /** Whether every menubar trigger is disabled. */\n readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** Whether arrow-key navigation wraps at the first/last trigger. */\n readonly loopFocus = input<boolean, BooleanInput>(true, { transform: booleanAttribute });\n\n /** The menubar orientation. */\n readonly orientation = input<RdxMenubarOrientation>('horizontal');\n\n readonly activeId = signal<string | null>(null);\n readonly isAnyOpen = computed(() => this.activeId() !== null);\n\n constructor() {\n effect((onCleanup) => {\n const roots = this.menuRoots();\n const registered: Array<() => void> = [];\n\n roots.forEach((root) => {\n const trigger = root.trigger();\n\n if (!trigger || trigger.closest('[rdxMenuPopup]')) {\n return;\n }\n\n registered.push(this.registerMenuRoot(root, trigger));\n });\n\n onCleanup(() => {\n registered.forEach((cleanup) => cleanup());\n });\n });\n\n effect(() => {\n const activeId = this.activeId();\n\n if (!activeId) {\n return;\n }\n\n this.menuRoots().forEach((root) => {\n const trigger = root.trigger();\n\n if (!trigger || trigger.closest('[rdxMenuPopup]')) {\n return;\n }\n\n if (this.idFor(root) === activeId && !root.open()) {\n this.deactivateAll();\n }\n });\n });\n }\n\n registerItem(\n id: string,\n el: HTMLElement,\n open: () => void,\n close: () => void,\n disabled: () => boolean\n ): () => void {\n this.items.push({ id, el, root: undefined as never, open, close, disabled });\n // Keep items in DOM order\n this.items.sort((a, b) => (a.el.compareDocumentPosition(b.el) & 4 ? -1 : 1));\n return () => {\n this.items = this.items.filter((item) => item.id !== id);\n if (this.activeId() === id) this.activeId.set(null);\n };\n }\n\n activateItem(id: string): void {\n if (this.disabled()) {\n return;\n }\n\n // Close every other open menu\n this.items.forEach((item) => {\n if (item.id !== id) item.close();\n });\n this.activeId.set(id);\n }\n\n deactivateAll(): void {\n this.activeId.set(null);\n }\n\n focusBoundary(boundary: 'first' | 'last', openOnMove: boolean): void {\n const enabled = this.enabledItems();\n this.focusItem(boundary === 'first' ? enabled[0] : enabled[enabled.length - 1], openOnMove);\n }\n\n generateId(): string {\n return `rdx-menubar-item-${nextMenubarItemId++}`;\n }\n\n private idFor(root: RdxMenuRoot): string {\n let id = this.ids.get(root);\n\n if (!id) {\n id = this.generateId();\n this.ids.set(root, id);\n }\n\n return id;\n }\n\n private registerMenuRoot(root: RdxMenuRoot, trigger: HTMLElement): () => void {\n const id = this.idFor(root);\n const unregisterPopupArrowNavigation = root.registerPopupArrowNavigationHandler((offset) => {\n if (this.disabled()) {\n return false;\n }\n\n this.focusAdjacent(id, offset, true);\n return true;\n });\n const unregisterTriggerInteraction = root.registerTriggerInteractionHandler((interaction) =>\n this.handleTriggerInteraction(id, root, trigger, interaction)\n );\n const unregisterItem = this.registerResolvedItem(id, trigger, root);\n\n return () => {\n unregisterItem();\n unregisterTriggerInteraction();\n unregisterPopupArrowNavigation();\n };\n }\n\n private registerResolvedItem(id: string, el: HTMLElement, root: RdxMenuRoot): () => void {\n this.items.push({\n id,\n el,\n root,\n open: () => root.show(false),\n close: () => root.close(),\n disabled: () => this.disabled() || root.disabled() || el.hasAttribute('disabled')\n });\n this.items.sort((a, b) => (a.el.compareDocumentPosition(b.el) & 4 ? -1 : 1));\n this.updateTriggerTabStops();\n\n return () => {\n this.items = this.items.filter((item) => item.id !== id);\n if (this.activeId() === id) this.activeId.set(null);\n this.updateTriggerTabStops();\n };\n }\n\n private handleTriggerInteraction(\n id: string,\n root: RdxMenuRoot,\n trigger: HTMLElement,\n interaction: RdxMenuTriggerInteraction\n ): boolean {\n if (this.disabled()) {\n return false;\n }\n\n switch (interaction.type) {\n case 'click': {\n if (root.open()) {\n root.close();\n this.deactivateAll();\n } else {\n root.show();\n this.activateItem(id);\n }\n return true;\n }\n case 'pointerenter': {\n if (interaction.event.pointerType === 'touch' || !this.hasOpenMenu()) {\n return false;\n }\n\n if (root.open()) {\n return true;\n }\n\n trigger.focus({ preventScroll: true });\n root.show(false);\n this.activateItem(id);\n return true;\n }\n case 'arrowdown': {\n interaction.event.preventDefault();\n root.show('first');\n this.activateItem(id);\n return true;\n }\n case 'arrowup': {\n interaction.event.preventDefault();\n root.show('last');\n this.activateItem(id);\n return true;\n }\n case 'arrowleft': {\n this.handleTriggerArrow(interaction.event, id, -1, root.open());\n return true;\n }\n case 'arrowright': {\n this.handleTriggerArrow(interaction.event, id, 1, root.open());\n return true;\n }\n case 'home': {\n this.handleTriggerBoundary(interaction.event, 'first', root.open());\n return true;\n }\n case 'end': {\n this.handleTriggerBoundary(interaction.event, 'last', root.open());\n return true;\n }\n case 'escape': {\n interaction.event.preventDefault();\n interaction.event.stopPropagation();\n root.close();\n this.deactivateAll();\n trigger.focus({ preventScroll: true });\n return true;\n }\n }\n }\n\n private handleTriggerArrow(event: Event, id: string, offset: 1 | -1, openOnMove: boolean): void {\n event.preventDefault();\n event.stopPropagation();\n (event as KeyboardEvent).stopImmediatePropagation();\n this.focusAdjacent(id, offset, openOnMove);\n }\n\n private handleTriggerBoundary(event: Event, boundary: 'first' | 'last', openOnMove: boolean): void {\n event.preventDefault();\n event.stopPropagation();\n (event as KeyboardEvent).stopImmediatePropagation();\n this.focusBoundary(boundary, openOnMove);\n }\n\n focusAdjacent(currentId: string, offset: 1 | -1, openOnMove: boolean): void {\n const enabled = this.enabledItems();\n const currentIndex = enabled.findIndex((item) => item.id === currentId);\n if (currentIndex === -1 || enabled.length === 0) return;\n\n const nextIndex = currentIndex + offset;\n if (!this.loopFocus() && (nextIndex < 0 || nextIndex >= enabled.length)) {\n return;\n }\n\n const next = enabled[(nextIndex + enabled.length) % enabled.length];\n this.focusItem(next, openOnMove);\n }\n\n protected handleArrowLeft(event: Event): void {\n this.handleOpenMenuNavigation(event, -1);\n }\n\n protected handleArrowRight(event: Event): void {\n this.handleOpenMenuNavigation(event, 1);\n }\n\n private handleOpenMenuNavigation(event: Event, offset: 1 | -1): void {\n const activeId = this.activeId();\n\n if (!activeId || this.disabled() || !this.hasOpenMenu()) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n (event as KeyboardEvent).stopImmediatePropagation();\n this.focusAdjacent(activeId, offset, true);\n }\n\n private focusItem(item: RdxMenubarItem | undefined, openOnMove: boolean): void {\n if (!item || this.disabled()) return;\n\n item.el.focus();\n if (openOnMove) {\n item.open();\n this.activateItem(item.id);\n }\n }\n\n private updateTriggerTabStops(): void {\n this.items.forEach((item) => item.el.setAttribute('tabindex', '-1'));\n }\n\n private enabledItems(): RdxMenubarItem[] {\n return this.items.filter((item) => !item.disabled());\n }\n\n private hasOpenMenu(): boolean {\n return this.items.some((item) => item.root?.open());\n }\n}\n","import { NgModule } from '@angular/core';\nimport { RdxMenubarRoot } from './src/menubar-root';\n\nexport * from './src/menubar-root';\n\n/**\n * Menubar-specific parts. Triggers use the standard `rdxMenuTrigger` from\n * `@radix-ng/primitives/menu`; the menubar root wires them for roving focus,\n * hover switching, and ArrowLeft / ArrowRight navigation. The menu popup, items,\n * checkbox/radio, submenu, separator, etc. also come from `RdxMenuModule`.\n */\nconst menubarImports = [RdxMenubarRoot];\n\n@NgModule({\n imports: [...menubarImports],\n exports: [...menubarImports]\n})\nexport class RdxMenubarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AA2CO,MAAM,CAAC,uBAAuB,EAAE,wBAAwB,CAAC,GAC5D,aAAa,CAAoB,mBAAmB;AAExD,MAAM,cAAc,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AAEjE,SAAS,YAAY,CAAC,IAAoB,EAAA;IACtC,OAAO;AACH,QAAA,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;QACpC,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC;QACjG,YAAY,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,YAAY,CAAC,EA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