@loomui-ng/ui 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +46 -2
  3. package/accordion/README.md +38 -0
  4. package/alert/README.md +32 -0
  5. package/alert-dialog/README.md +37 -0
  6. package/aspect-ratio/README.md +24 -0
  7. package/attachment/README.md +40 -0
  8. package/avatar/README.md +34 -0
  9. package/badge/README.md +29 -0
  10. package/breadcrumb/README.md +33 -0
  11. package/bubble/README.md +32 -0
  12. package/button/README.md +31 -0
  13. package/button-group/README.md +30 -0
  14. package/calendar/README.md +35 -0
  15. package/card/README.md +41 -0
  16. package/carousel/README.md +41 -0
  17. package/chart/README.md +25 -0
  18. package/checkbox/README.md +31 -0
  19. package/collapsible/README.md +31 -0
  20. package/combobox/README.md +47 -0
  21. package/command/README.md +44 -0
  22. package/context-menu/README.md +36 -0
  23. package/data-table/README.md +39 -0
  24. package/date-picker/README.md +23 -0
  25. package/dialog/README.md +52 -0
  26. package/direction/README.md +19 -0
  27. package/drawer/README.md +37 -0
  28. package/dropdown-menu/README.md +46 -0
  29. package/empty/README.md +38 -0
  30. package/fesm2022/loomui-ng-ui-accordion.mjs +555 -0
  31. package/fesm2022/loomui-ng-ui-accordion.mjs.map +1 -0
  32. package/fesm2022/loomui-ng-ui-alert-dialog.mjs +652 -0
  33. package/fesm2022/loomui-ng-ui-alert-dialog.mjs.map +1 -0
  34. package/fesm2022/loomui-ng-ui-alert.mjs +286 -0
  35. package/fesm2022/loomui-ng-ui-alert.mjs.map +1 -0
  36. package/fesm2022/loomui-ng-ui-aspect-ratio.mjs +97 -0
  37. package/fesm2022/loomui-ng-ui-aspect-ratio.mjs.map +1 -0
  38. package/fesm2022/loomui-ng-ui-attachment.mjs +713 -0
  39. package/fesm2022/loomui-ng-ui-attachment.mjs.map +1 -0
  40. package/fesm2022/loomui-ng-ui-avatar.mjs +561 -0
  41. package/fesm2022/loomui-ng-ui-avatar.mjs.map +1 -0
  42. package/fesm2022/loomui-ng-ui-badge.mjs +102 -0
  43. package/fesm2022/loomui-ng-ui-badge.mjs.map +1 -0
  44. package/fesm2022/loomui-ng-ui-breadcrumb.mjs +520 -0
  45. package/fesm2022/loomui-ng-ui-breadcrumb.mjs.map +1 -0
  46. package/fesm2022/loomui-ng-ui-bubble.mjs +386 -0
  47. package/fesm2022/loomui-ng-ui-bubble.mjs.map +1 -0
  48. package/fesm2022/loomui-ng-ui-button-group.mjs +193 -0
  49. package/fesm2022/loomui-ng-ui-button-group.mjs.map +1 -0
  50. package/fesm2022/loomui-ng-ui-button.mjs +162 -0
  51. package/fesm2022/loomui-ng-ui-button.mjs.map +1 -0
  52. package/fesm2022/loomui-ng-ui-calendar.mjs +681 -0
  53. package/fesm2022/loomui-ng-ui-calendar.mjs.map +1 -0
  54. package/fesm2022/loomui-ng-ui-card.mjs +461 -0
  55. package/fesm2022/loomui-ng-ui-card.mjs.map +1 -0
  56. package/fesm2022/loomui-ng-ui-carousel.mjs +532 -0
  57. package/fesm2022/loomui-ng-ui-carousel.mjs.map +1 -0
  58. package/fesm2022/loomui-ng-ui-chart.mjs +373 -0
  59. package/fesm2022/loomui-ng-ui-chart.mjs.map +1 -0
  60. package/fesm2022/loomui-ng-ui-checkbox.mjs +265 -0
  61. package/fesm2022/loomui-ng-ui-checkbox.mjs.map +1 -0
  62. package/fesm2022/loomui-ng-ui-collapsible.mjs +274 -0
  63. package/fesm2022/loomui-ng-ui-collapsible.mjs.map +1 -0
  64. package/fesm2022/loomui-ng-ui-combobox.mjs +971 -0
  65. package/fesm2022/loomui-ng-ui-combobox.mjs.map +1 -0
  66. package/fesm2022/loomui-ng-ui-command.mjs +982 -0
  67. package/fesm2022/loomui-ng-ui-command.mjs.map +1 -0
  68. package/fesm2022/loomui-ng-ui-context-menu.mjs +1359 -0
  69. package/fesm2022/loomui-ng-ui-context-menu.mjs.map +1 -0
  70. package/fesm2022/loomui-ng-ui-data-table.mjs +535 -0
  71. package/fesm2022/loomui-ng-ui-data-table.mjs.map +1 -0
  72. package/fesm2022/loomui-ng-ui-date-picker.mjs +312 -0
  73. package/fesm2022/loomui-ng-ui-date-picker.mjs.map +1 -0
  74. package/fesm2022/loomui-ng-ui-dialog.mjs +508 -0
  75. package/fesm2022/loomui-ng-ui-dialog.mjs.map +1 -0
  76. package/fesm2022/loomui-ng-ui-direction.mjs +112 -0
  77. package/fesm2022/loomui-ng-ui-direction.mjs.map +1 -0
  78. package/fesm2022/loomui-ng-ui-drawer.mjs +590 -0
  79. package/fesm2022/loomui-ng-ui-drawer.mjs.map +1 -0
  80. package/fesm2022/loomui-ng-ui-dropdown-menu.mjs +1322 -0
  81. package/fesm2022/loomui-ng-ui-dropdown-menu.mjs.map +1 -0
  82. package/fesm2022/loomui-ng-ui-empty.mjs +408 -0
  83. package/fesm2022/loomui-ng-ui-empty.mjs.map +1 -0
  84. package/fesm2022/loomui-ng-ui-field.mjs +630 -0
  85. package/fesm2022/loomui-ng-ui-field.mjs.map +1 -0
  86. package/fesm2022/loomui-ng-ui-hover-card.mjs +230 -0
  87. package/fesm2022/loomui-ng-ui-hover-card.mjs.map +1 -0
  88. package/fesm2022/loomui-ng-ui-icon.mjs +498 -0
  89. package/fesm2022/loomui-ng-ui-icon.mjs.map +1 -0
  90. package/fesm2022/loomui-ng-ui-input-group.mjs +463 -0
  91. package/fesm2022/loomui-ng-ui-input-group.mjs.map +1 -0
  92. package/fesm2022/loomui-ng-ui-input-otp.mjs +586 -0
  93. package/fesm2022/loomui-ng-ui-input-otp.mjs.map +1 -0
  94. package/fesm2022/loomui-ng-ui-input.mjs +289 -0
  95. package/fesm2022/loomui-ng-ui-input.mjs.map +1 -0
  96. package/fesm2022/loomui-ng-ui-item.mjs +598 -0
  97. package/fesm2022/loomui-ng-ui-item.mjs.map +1 -0
  98. package/fesm2022/loomui-ng-ui-kbd.mjs +129 -0
  99. package/fesm2022/loomui-ng-ui-kbd.mjs.map +1 -0
  100. package/fesm2022/loomui-ng-ui-label.mjs +68 -0
  101. package/fesm2022/loomui-ng-ui-label.mjs.map +1 -0
  102. package/fesm2022/loomui-ng-ui-marker.mjs +234 -0
  103. package/fesm2022/loomui-ng-ui-marker.mjs.map +1 -0
  104. package/fesm2022/loomui-ng-ui-menubar.mjs +1523 -0
  105. package/fesm2022/loomui-ng-ui-menubar.mjs.map +1 -0
  106. package/fesm2022/loomui-ng-ui-message-scroller.mjs +519 -0
  107. package/fesm2022/loomui-ng-ui-message-scroller.mjs.map +1 -0
  108. package/fesm2022/loomui-ng-ui-message.mjs +408 -0
  109. package/fesm2022/loomui-ng-ui-message.mjs.map +1 -0
  110. package/fesm2022/loomui-ng-ui-native-select.mjs +389 -0
  111. package/fesm2022/loomui-ng-ui-native-select.mjs.map +1 -0
  112. package/fesm2022/loomui-ng-ui-navigation-menu.mjs +609 -0
  113. package/fesm2022/loomui-ng-ui-navigation-menu.mjs.map +1 -0
  114. package/fesm2022/loomui-ng-ui-pagination.mjs +611 -0
  115. package/fesm2022/loomui-ng-ui-pagination.mjs.map +1 -0
  116. package/fesm2022/loomui-ng-ui-popover.mjs +358 -0
  117. package/fesm2022/loomui-ng-ui-popover.mjs.map +1 -0
  118. package/fesm2022/loomui-ng-ui-progress.mjs +159 -0
  119. package/fesm2022/loomui-ng-ui-progress.mjs.map +1 -0
  120. package/fesm2022/loomui-ng-ui-questionnaire.mjs +1012 -0
  121. package/fesm2022/loomui-ng-ui-questionnaire.mjs.map +1 -0
  122. package/fesm2022/loomui-ng-ui-radio-group.mjs +399 -0
  123. package/fesm2022/loomui-ng-ui-radio-group.mjs.map +1 -0
  124. package/fesm2022/loomui-ng-ui-resizable.mjs +518 -0
  125. package/fesm2022/loomui-ng-ui-resizable.mjs.map +1 -0
  126. package/fesm2022/loomui-ng-ui-scroll-area.mjs +135 -0
  127. package/fesm2022/loomui-ng-ui-scroll-area.mjs.map +1 -0
  128. package/fesm2022/loomui-ng-ui-select.mjs +863 -0
  129. package/fesm2022/loomui-ng-ui-select.mjs.map +1 -0
  130. package/fesm2022/loomui-ng-ui-separator.mjs +114 -0
  131. package/fesm2022/loomui-ng-ui-separator.mjs.map +1 -0
  132. package/fesm2022/loomui-ng-ui-sheet.mjs +530 -0
  133. package/fesm2022/loomui-ng-ui-sheet.mjs.map +1 -0
  134. package/fesm2022/loomui-ng-ui-sidebar.mjs +1918 -0
  135. package/fesm2022/loomui-ng-ui-sidebar.mjs.map +1 -0
  136. package/fesm2022/loomui-ng-ui-skeleton.mjs +69 -0
  137. package/fesm2022/loomui-ng-ui-skeleton.mjs.map +1 -0
  138. package/fesm2022/loomui-ng-ui-slider.mjs +390 -0
  139. package/fesm2022/loomui-ng-ui-slider.mjs.map +1 -0
  140. package/fesm2022/loomui-ng-ui-spinner.mjs +85 -0
  141. package/fesm2022/loomui-ng-ui-spinner.mjs.map +1 -0
  142. package/fesm2022/loomui-ng-ui-switch.mjs +212 -0
  143. package/fesm2022/loomui-ng-ui-switch.mjs.map +1 -0
  144. package/fesm2022/loomui-ng-ui-table.mjs +559 -0
  145. package/fesm2022/loomui-ng-ui-table.mjs.map +1 -0
  146. package/fesm2022/loomui-ng-ui-tabs.mjs +544 -0
  147. package/fesm2022/loomui-ng-ui-tabs.mjs.map +1 -0
  148. package/fesm2022/loomui-ng-ui-textarea.mjs +206 -0
  149. package/fesm2022/loomui-ng-ui-textarea.mjs.map +1 -0
  150. package/fesm2022/loomui-ng-ui-toast.mjs +432 -0
  151. package/fesm2022/loomui-ng-ui-toast.mjs.map +1 -0
  152. package/fesm2022/loomui-ng-ui-toggle-group.mjs +477 -0
  153. package/fesm2022/loomui-ng-ui-toggle-group.mjs.map +1 -0
  154. package/fesm2022/loomui-ng-ui-toggle.mjs +219 -0
  155. package/fesm2022/loomui-ng-ui-toggle.mjs.map +1 -0
  156. package/fesm2022/loomui-ng-ui-tooltip.mjs +240 -0
  157. package/fesm2022/loomui-ng-ui-tooltip.mjs.map +1 -0
  158. package/fesm2022/loomui-ng-ui-typography.mjs +129 -0
  159. package/fesm2022/loomui-ng-ui-typography.mjs.map +1 -0
  160. package/fesm2022/loomui-ng-ui-utils.mjs +1533 -0
  161. package/fesm2022/loomui-ng-ui-utils.mjs.map +1 -0
  162. package/fesm2022/loomui-ng-ui.mjs +4 -0
  163. package/fesm2022/loomui-ng-ui.mjs.map +1 -0
  164. package/field/README.md +43 -0
  165. package/hover-card/README.md +31 -0
  166. package/icon/README.md +42 -0
  167. package/input/README.md +26 -0
  168. package/input-group/README.md +40 -0
  169. package/input-otp/README.md +35 -0
  170. package/item/README.md +33 -0
  171. package/kbd/README.md +21 -0
  172. package/label/README.md +24 -0
  173. package/marker/README.md +24 -0
  174. package/menubar/README.md +40 -0
  175. package/message/README.md +32 -0
  176. package/message-scroller/README.md +40 -0
  177. package/native-select/README.md +26 -0
  178. package/navigation-menu/README.md +39 -0
  179. package/package.json +325 -3
  180. package/pagination/README.md +37 -0
  181. package/popover/README.md +37 -0
  182. package/progress/README.md +25 -0
  183. package/questionnaire/README.md +52 -0
  184. package/radio-group/README.md +33 -0
  185. package/resizable/README.md +37 -0
  186. package/scroll-area/README.md +25 -0
  187. package/select/README.md +45 -0
  188. package/separator/README.md +28 -0
  189. package/sheet/README.md +38 -0
  190. package/sidebar/README.md +60 -0
  191. package/skeleton/README.md +21 -0
  192. package/slider/README.md +29 -0
  193. package/spinner/README.md +15 -0
  194. package/styles/loomui.css +330 -0
  195. package/switch/README.md +29 -0
  196. package/table/README.md +31 -0
  197. package/tabs/README.md +42 -0
  198. package/textarea/README.md +28 -0
  199. package/toast/README.md +27 -0
  200. package/toggle/README.md +27 -0
  201. package/toggle-group/README.md +37 -0
  202. package/tooltip/README.md +31 -0
  203. package/types/loomui-ng-ui-accordion.d.ts +141 -0
  204. package/types/loomui-ng-ui-alert-dialog.d.ts +175 -0
  205. package/types/loomui-ng-ui-alert.d.ts +77 -0
  206. package/types/loomui-ng-ui-aspect-ratio.d.ts +31 -0
  207. package/types/loomui-ng-ui-attachment.d.ts +192 -0
  208. package/types/loomui-ng-ui-avatar.d.ts +147 -0
  209. package/types/loomui-ng-ui-badge.d.ts +32 -0
  210. package/types/loomui-ng-ui-breadcrumb.d.ts +118 -0
  211. package/types/loomui-ng-ui-bubble.d.ts +100 -0
  212. package/types/loomui-ng-ui-button-group.d.ts +51 -0
  213. package/types/loomui-ng-ui-button.d.ts +57 -0
  214. package/types/loomui-ng-ui-calendar.d.ts +171 -0
  215. package/types/loomui-ng-ui-card.d.ts +123 -0
  216. package/types/loomui-ng-ui-carousel.d.ts +140 -0
  217. package/types/loomui-ng-ui-chart.d.ts +95 -0
  218. package/types/loomui-ng-ui-checkbox.d.ts +62 -0
  219. package/types/loomui-ng-ui-collapsible.d.ts +74 -0
  220. package/types/loomui-ng-ui-combobox.d.ts +229 -0
  221. package/types/loomui-ng-ui-command.d.ts +231 -0
  222. package/types/loomui-ng-ui-context-menu.d.ts +288 -0
  223. package/types/loomui-ng-ui-data-table.d.ts +111 -0
  224. package/types/loomui-ng-ui-date-picker.d.ts +63 -0
  225. package/types/loomui-ng-ui-dialog.d.ts +127 -0
  226. package/types/loomui-ng-ui-direction.d.ts +42 -0
  227. package/types/loomui-ng-ui-drawer.d.ts +149 -0
  228. package/types/loomui-ng-ui-dropdown-menu.d.ts +258 -0
  229. package/types/loomui-ng-ui-empty.d.ts +109 -0
  230. package/types/loomui-ng-ui-field.d.ts +169 -0
  231. package/types/loomui-ng-ui-hover-card.d.ts +62 -0
  232. package/types/loomui-ng-ui-icon.d.ts +156 -0
  233. package/types/loomui-ng-ui-input-group.d.ts +130 -0
  234. package/types/loomui-ng-ui-input-otp.d.ts +149 -0
  235. package/types/loomui-ng-ui-input.d.ts +89 -0
  236. package/types/loomui-ng-ui-item.d.ts +157 -0
  237. package/types/loomui-ng-ui-kbd.d.ts +36 -0
  238. package/types/loomui-ng-ui-label.d.ts +19 -0
  239. package/types/loomui-ng-ui-marker.d.ts +61 -0
  240. package/types/loomui-ng-ui-menubar.d.ts +321 -0
  241. package/types/loomui-ng-ui-message-scroller.d.ts +138 -0
  242. package/types/loomui-ng-ui-message.d.ts +109 -0
  243. package/types/loomui-ng-ui-native-select.d.ts +84 -0
  244. package/types/loomui-ng-ui-navigation-menu.d.ts +160 -0
  245. package/types/loomui-ng-ui-pagination.d.ts +130 -0
  246. package/types/loomui-ng-ui-popover.d.ts +90 -0
  247. package/types/loomui-ng-ui-progress.d.ts +39 -0
  248. package/types/loomui-ng-ui-questionnaire.d.ts +274 -0
  249. package/types/loomui-ng-ui-radio-group.d.ts +109 -0
  250. package/types/loomui-ng-ui-resizable.d.ts +121 -0
  251. package/types/loomui-ng-ui-scroll-area.d.ts +44 -0
  252. package/types/loomui-ng-ui-select.d.ts +204 -0
  253. package/types/loomui-ng-ui-separator.d.ts +35 -0
  254. package/types/loomui-ng-ui-sheet.d.ts +124 -0
  255. package/types/loomui-ng-ui-sidebar.d.ts +485 -0
  256. package/types/loomui-ng-ui-skeleton.d.ts +20 -0
  257. package/types/loomui-ng-ui-slider.d.ts +103 -0
  258. package/types/loomui-ng-ui-spinner.d.ts +19 -0
  259. package/types/loomui-ng-ui-switch.d.ts +56 -0
  260. package/types/loomui-ng-ui-table.d.ts +148 -0
  261. package/types/loomui-ng-ui-tabs.d.ts +148 -0
  262. package/types/loomui-ng-ui-textarea.d.ts +52 -0
  263. package/types/loomui-ng-ui-toast.d.ts +97 -0
  264. package/types/loomui-ng-ui-toggle-group.d.ts +138 -0
  265. package/types/loomui-ng-ui-toggle.d.ts +63 -0
  266. package/types/loomui-ng-ui-tooltip.d.ts +63 -0
  267. package/types/loomui-ng-ui-typography.d.ts +42 -0
  268. package/types/loomui-ng-ui-utils.d.ts +392 -0
  269. package/types/loomui-ng-ui.d.ts +5 -0
  270. package/typography/README.md +29 -0
@@ -0,0 +1,1523 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, ElementRef, booleanAttribute, computed, contentChildren, effect, forwardRef, inject, input, model, signal, untracked } from "@angular/core";
3
+ import * as i1 from "@loomui-ng/ui/utils";
4
+ import { UI_MENU_CTX, UI_MENU_ITEM, UI_MENU_SUB, UiElementHost, UiMenuContentBase, UiMenuItemBase, UiMenuRootBase, UiMenuSelectEvent, UiMenuSubBase, UiMenuSubTriggerBase, cn } from "@loomui-ng/ui/utils";
5
+ import { UiIconSvg } from "@loomui-ng/ui/icon";
6
+ import { contextMenuCheckboxItemClass, contextMenuLabelClass, contextMenuRadioItemClass } from "@loomui-ng/ui/context-menu";
7
+ const menubarClass = "flex h-8 items-center gap-0.5 rounded-lg border p-[3px]";
8
+ const menubarTriggerClass = "flex items-center rounded-sm px-1.5 py-[2px] text-sm font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted";
9
+ const menubarContentClass = "z-50 min-w-36 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95";
10
+ const menubarItemClass = "group/menubar-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!";
11
+ const menubarSubTriggerClass = "flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-inset:ps-7 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4";
12
+ const menubarSeparatorClass = "-mx-1 my-1 h-px bg-border";
13
+ const menubarShortcutClass = "ms-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground";
14
+ const UI_MENUBAR_GENERATED = [];
15
+ const ITEM_CLASS = menubarItemClass;
16
+ const SUB_TRIGGER_CLASS = menubarSubTriggerClass;
17
+ const CHECKBOX_CLASS = contextMenuCheckboxItemClass.replace(/context-menu/g, "menubar");
18
+ const RADIO_CLASS = contextMenuRadioItemClass.replace(/context-menu/g, "menubar");
19
+ const LABEL_CLASS = contextMenuLabelClass.replace(/context-menu/g, "menubar");
20
+ const SEPARATOR_CLASS = menubarSeparatorClass;
21
+ const SHORTCUT_CLASS = menubarShortcutClass;
22
+ const CONTENT_CLASS = menubarContentClass;
23
+ var UiMenubarItem = class UiMenubarItem extends UiMenuItemBase {
24
+ variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
25
+ inset = input(false, {
26
+ ...ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {},
27
+ transform: booleanAttribute
28
+ });
29
+ classes = computed(() => cn(ITEM_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
30
+ static ɵfac = i0.ɵɵngDeclareFactory({
31
+ minVersion: "12.0.0",
32
+ version: "22.2.2",
33
+ ngImport: i0,
34
+ type: UiMenubarItem,
35
+ deps: null,
36
+ target: i0.ɵɵFactoryTarget.Directive
37
+ });
38
+ static ɵdir = i0.ɵɵngDeclareDirective({
39
+ minVersion: "17.1.0",
40
+ version: "22.2.2",
41
+ type: UiMenubarItem,
42
+ isStandalone: true,
43
+ selector: "[uiMenubarItem], ui-menubar-item",
44
+ inputs: {
45
+ variant: {
46
+ classPropertyName: "variant",
47
+ publicName: "variant",
48
+ isSignal: true,
49
+ isRequired: false,
50
+ transformFunction: null
51
+ },
52
+ inset: {
53
+ classPropertyName: "inset",
54
+ publicName: "inset",
55
+ isSignal: true,
56
+ isRequired: false,
57
+ transformFunction: null
58
+ }
59
+ },
60
+ host: {
61
+ attributes: {
62
+ "tabindex": "-1",
63
+ "data-slot": "menubar-item",
64
+ "role": "menuitem"
65
+ },
66
+ listeners: {
67
+ "focus": "onFocus()",
68
+ "blur": "onBlur()",
69
+ "pointermove": "onPointerMove()",
70
+ "pointerleave": "onPointerLeave()",
71
+ "click": "activate()"
72
+ },
73
+ properties: {
74
+ "attr.data-disabled": "disabled ? \"\" : null",
75
+ "attr.aria-disabled": "disabled ? \"true\" : null",
76
+ "attr.data-highlighted": "highlighted() ? \"\" : null",
77
+ "attr.data-variant": "variant()",
78
+ "attr.data-inset": "inset() ? \"\" : null",
79
+ "attr.class": "classes()"
80
+ }
81
+ },
82
+ providers: [{
83
+ provide: UI_MENU_ITEM,
84
+ useExisting: forwardRef(() => UiMenubarItem)
85
+ }],
86
+ usesInheritance: true,
87
+ hostDirectives: [{ directive: i1.UiElementHost }],
88
+ ngImport: i0
89
+ });
90
+ };
91
+ i0.ɵɵngDeclareClassMetadata({
92
+ minVersion: "12.0.0",
93
+ version: "22.2.2",
94
+ ngImport: i0,
95
+ type: UiMenubarItem,
96
+ decorators: [{
97
+ type: Directive,
98
+ args: [{
99
+ selector: "[uiMenubarItem], ui-menubar-item",
100
+ hostDirectives: [UiElementHost],
101
+ providers: [{
102
+ provide: UI_MENU_ITEM,
103
+ useExisting: forwardRef(() => UiMenubarItem)
104
+ }],
105
+ host: {
106
+ tabindex: "-1",
107
+ "[attr.data-disabled]": "disabled ? \"\" : null",
108
+ "[attr.aria-disabled]": "disabled ? \"true\" : null",
109
+ "[attr.data-highlighted]": "highlighted() ? \"\" : null",
110
+ "(focus)": "onFocus()",
111
+ "(blur)": "onBlur()",
112
+ "(pointermove)": "onPointerMove()",
113
+ "(pointerleave)": "onPointerLeave()",
114
+ "(click)": "activate()",
115
+ "data-slot": "menubar-item",
116
+ role: "menuitem",
117
+ "[attr.data-variant]": "variant()",
118
+ "[attr.data-inset]": "inset() ? \"\" : null",
119
+ "[attr.class]": "classes()"
120
+ }
121
+ }]
122
+ }],
123
+ propDecorators: {
124
+ variant: [{
125
+ type: i0.Input,
126
+ args: [{
127
+ isSignal: true,
128
+ alias: "variant",
129
+ required: false
130
+ }]
131
+ }],
132
+ inset: [{
133
+ type: i0.Input,
134
+ args: [{
135
+ isSignal: true,
136
+ alias: "inset",
137
+ required: false
138
+ }]
139
+ }]
140
+ }
141
+ });
142
+ const CHECK = "<svg uiIcon=\"check\" class=\"size-4\"></svg>";
143
+ var UiMenubarCheckboxItem = class UiMenubarCheckboxItem extends UiMenuItemBase {
144
+ checked = model(false, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
145
+ inset = input(false, {
146
+ ...ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {},
147
+ transform: booleanAttribute
148
+ });
149
+ classes = computed(() => cn(CHECKBOX_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
150
+ beforeSelect() {
151
+ this.checked.update((v) => !v);
152
+ }
153
+ static ɵfac = i0.ɵɵngDeclareFactory({
154
+ minVersion: "12.0.0",
155
+ version: "22.2.2",
156
+ ngImport: i0,
157
+ type: UiMenubarCheckboxItem,
158
+ deps: null,
159
+ target: i0.ɵɵFactoryTarget.Component
160
+ });
161
+ static ɵcmp = i0.ɵɵngDeclareComponent({
162
+ minVersion: "17.0.0",
163
+ version: "22.2.2",
164
+ type: UiMenubarCheckboxItem,
165
+ isStandalone: true,
166
+ selector: "[uiMenubarCheckboxItem], ui-menubar-checkbox-item",
167
+ inputs: {
168
+ checked: {
169
+ classPropertyName: "checked",
170
+ publicName: "checked",
171
+ isSignal: true,
172
+ isRequired: false,
173
+ transformFunction: null
174
+ },
175
+ inset: {
176
+ classPropertyName: "inset",
177
+ publicName: "inset",
178
+ isSignal: true,
179
+ isRequired: false,
180
+ transformFunction: null
181
+ }
182
+ },
183
+ outputs: { checked: "checkedChange" },
184
+ host: {
185
+ attributes: {
186
+ "tabindex": "-1",
187
+ "data-slot": "menubar-checkbox-item",
188
+ "role": "menuitemcheckbox"
189
+ },
190
+ listeners: {
191
+ "focus": "onFocus()",
192
+ "blur": "onBlur()",
193
+ "pointermove": "onPointerMove()",
194
+ "pointerleave": "onPointerLeave()",
195
+ "click": "activate()"
196
+ },
197
+ properties: {
198
+ "attr.data-disabled": "disabled ? \"\" : null",
199
+ "attr.aria-disabled": "disabled ? \"true\" : null",
200
+ "attr.data-highlighted": "highlighted() ? \"\" : null",
201
+ "attr.aria-checked": "checked()",
202
+ "attr.data-state": "checked() ? \"checked\" : \"unchecked\"",
203
+ "attr.data-inset": "inset() ? \"\" : null",
204
+ "attr.class": "classes()"
205
+ }
206
+ },
207
+ providers: [{
208
+ provide: UI_MENU_ITEM,
209
+ useExisting: forwardRef(() => UiMenubarCheckboxItem)
210
+ }],
211
+ usesInheritance: true,
212
+ hostDirectives: [{ directive: i1.UiElementHost }],
213
+ ngImport: i0,
214
+ template: "\n <ng-content />\n <span class=\"pointer-events-none absolute end-2 flex items-center justify-center\" data-slot=\"menubar-checkbox-item-indicator\">\n @if (checked()) { <svg uiIcon=\"check\" class=\"size-4\"></svg> }\n </span>\n ",
215
+ isInline: true,
216
+ dependencies: [{
217
+ kind: "directive",
218
+ type: UiIconSvg,
219
+ selector: "svg[uiIcon]",
220
+ inputs: [
221
+ "uiIcon",
222
+ "icon",
223
+ "size",
224
+ "strokeWidth",
225
+ "absoluteStrokeWidth",
226
+ "color",
227
+ "label",
228
+ "class"
229
+ ]
230
+ }],
231
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
232
+ });
233
+ };
234
+ i0.ɵɵngDeclareClassMetadata({
235
+ minVersion: "12.0.0",
236
+ version: "22.2.2",
237
+ ngImport: i0,
238
+ type: UiMenubarCheckboxItem,
239
+ decorators: [{
240
+ type: Component,
241
+ args: [{
242
+ selector: "[uiMenubarCheckboxItem], ui-menubar-checkbox-item",
243
+ hostDirectives: [UiElementHost],
244
+ imports: [UiIconSvg],
245
+ changeDetection: ChangeDetectionStrategy.OnPush,
246
+ providers: [{
247
+ provide: UI_MENU_ITEM,
248
+ useExisting: forwardRef(() => UiMenubarCheckboxItem)
249
+ }],
250
+ host: {
251
+ tabindex: "-1",
252
+ "[attr.data-disabled]": "disabled ? \"\" : null",
253
+ "[attr.aria-disabled]": "disabled ? \"true\" : null",
254
+ "[attr.data-highlighted]": "highlighted() ? \"\" : null",
255
+ "(focus)": "onFocus()",
256
+ "(blur)": "onBlur()",
257
+ "(pointermove)": "onPointerMove()",
258
+ "(pointerleave)": "onPointerLeave()",
259
+ "(click)": "activate()",
260
+ "data-slot": "menubar-checkbox-item",
261
+ role: "menuitemcheckbox",
262
+ "[attr.aria-checked]": "checked()",
263
+ "[attr.data-state]": "checked() ? \"checked\" : \"unchecked\"",
264
+ "[attr.data-inset]": "inset() ? \"\" : null",
265
+ "[attr.class]": "classes()"
266
+ },
267
+ template: `
268
+ <ng-content />
269
+ <span class="pointer-events-none absolute end-2 flex items-center justify-center" data-slot="menubar-checkbox-item-indicator">
270
+ @if (checked()) { ${CHECK} }
271
+ </span>
272
+ `
273
+ }]
274
+ }],
275
+ propDecorators: {
276
+ checked: [{
277
+ type: i0.Input,
278
+ args: [{
279
+ isSignal: true,
280
+ alias: "checked",
281
+ required: false
282
+ }]
283
+ }, {
284
+ type: i0.Output,
285
+ args: ["checkedChange"]
286
+ }],
287
+ inset: [{
288
+ type: i0.Input,
289
+ args: [{
290
+ isSignal: true,
291
+ alias: "inset",
292
+ required: false
293
+ }]
294
+ }]
295
+ }
296
+ });
297
+ var UiMenubarRadioGroup = class UiMenubarRadioGroup {
298
+ value = model(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
299
+ static ɵfac = i0.ɵɵngDeclareFactory({
300
+ minVersion: "12.0.0",
301
+ version: "22.2.2",
302
+ ngImport: i0,
303
+ type: UiMenubarRadioGroup,
304
+ deps: [],
305
+ target: i0.ɵɵFactoryTarget.Directive
306
+ });
307
+ static ɵdir = i0.ɵɵngDeclareDirective({
308
+ minVersion: "17.1.0",
309
+ version: "22.2.2",
310
+ type: UiMenubarRadioGroup,
311
+ isStandalone: true,
312
+ selector: "[uiMenubarRadioGroup], ui-menubar-radio-group",
313
+ inputs: { value: {
314
+ classPropertyName: "value",
315
+ publicName: "value",
316
+ isSignal: true,
317
+ isRequired: false,
318
+ transformFunction: null
319
+ } },
320
+ outputs: { value: "valueChange" },
321
+ host: { attributes: {
322
+ "role": "group",
323
+ "data-slot": "menubar-radio-group"
324
+ } },
325
+ hostDirectives: [{ directive: i1.UiElementHost }],
326
+ ngImport: i0
327
+ });
328
+ };
329
+ i0.ɵɵngDeclareClassMetadata({
330
+ minVersion: "12.0.0",
331
+ version: "22.2.2",
332
+ ngImport: i0,
333
+ type: UiMenubarRadioGroup,
334
+ decorators: [{
335
+ type: Directive,
336
+ args: [{
337
+ selector: "[uiMenubarRadioGroup], ui-menubar-radio-group",
338
+ hostDirectives: [UiElementHost],
339
+ host: {
340
+ role: "group",
341
+ "data-slot": "menubar-radio-group"
342
+ }
343
+ }]
344
+ }],
345
+ propDecorators: { value: [{
346
+ type: i0.Input,
347
+ args: [{
348
+ isSignal: true,
349
+ alias: "value",
350
+ required: false
351
+ }]
352
+ }, {
353
+ type: i0.Output,
354
+ args: ["valueChange"]
355
+ }] }
356
+ });
357
+ var UiMenubarRadioItem = class UiMenubarRadioItem extends UiMenuItemBase {
358
+ group = inject(UiMenubarRadioGroup);
359
+ value = input("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
360
+ inset = input(false, {
361
+ ...ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {},
362
+ transform: booleanAttribute
363
+ });
364
+ checked = computed(() => this.group.value() === this.value(), ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
365
+ classes = computed(() => cn(RADIO_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
366
+ beforeSelect() {
367
+ this.group.value.set(this.value());
368
+ }
369
+ static ɵfac = i0.ɵɵngDeclareFactory({
370
+ minVersion: "12.0.0",
371
+ version: "22.2.2",
372
+ ngImport: i0,
373
+ type: UiMenubarRadioItem,
374
+ deps: null,
375
+ target: i0.ɵɵFactoryTarget.Component
376
+ });
377
+ static ɵcmp = i0.ɵɵngDeclareComponent({
378
+ minVersion: "17.0.0",
379
+ version: "22.2.2",
380
+ type: UiMenubarRadioItem,
381
+ isStandalone: true,
382
+ selector: "[uiMenubarRadioItem], ui-menubar-radio-item",
383
+ inputs: {
384
+ value: {
385
+ classPropertyName: "value",
386
+ publicName: "value",
387
+ isSignal: true,
388
+ isRequired: false,
389
+ transformFunction: null
390
+ },
391
+ inset: {
392
+ classPropertyName: "inset",
393
+ publicName: "inset",
394
+ isSignal: true,
395
+ isRequired: false,
396
+ transformFunction: null
397
+ }
398
+ },
399
+ host: {
400
+ attributes: {
401
+ "tabindex": "-1",
402
+ "data-slot": "menubar-radio-item",
403
+ "role": "menuitemradio"
404
+ },
405
+ listeners: {
406
+ "focus": "onFocus()",
407
+ "blur": "onBlur()",
408
+ "pointermove": "onPointerMove()",
409
+ "pointerleave": "onPointerLeave()",
410
+ "click": "activate()"
411
+ },
412
+ properties: {
413
+ "attr.data-disabled": "disabled ? \"\" : null",
414
+ "attr.aria-disabled": "disabled ? \"true\" : null",
415
+ "attr.data-highlighted": "highlighted() ? \"\" : null",
416
+ "attr.aria-checked": "checked()",
417
+ "attr.data-state": "checked() ? \"checked\" : \"unchecked\"",
418
+ "attr.data-inset": "inset() ? \"\" : null",
419
+ "attr.class": "classes()"
420
+ }
421
+ },
422
+ providers: [{
423
+ provide: UI_MENU_ITEM,
424
+ useExisting: forwardRef(() => UiMenubarRadioItem)
425
+ }],
426
+ usesInheritance: true,
427
+ hostDirectives: [{ directive: i1.UiElementHost }],
428
+ ngImport: i0,
429
+ template: "\n <ng-content />\n <span class=\"pointer-events-none absolute end-2 flex items-center justify-center\" data-slot=\"menubar-radio-item-indicator\">\n @if (checked()) { <svg uiIcon=\"check\" class=\"size-4\"></svg> }\n </span>\n ",
430
+ isInline: true,
431
+ dependencies: [{
432
+ kind: "directive",
433
+ type: UiIconSvg,
434
+ selector: "svg[uiIcon]",
435
+ inputs: [
436
+ "uiIcon",
437
+ "icon",
438
+ "size",
439
+ "strokeWidth",
440
+ "absoluteStrokeWidth",
441
+ "color",
442
+ "label",
443
+ "class"
444
+ ]
445
+ }],
446
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
447
+ });
448
+ };
449
+ i0.ɵɵngDeclareClassMetadata({
450
+ minVersion: "12.0.0",
451
+ version: "22.2.2",
452
+ ngImport: i0,
453
+ type: UiMenubarRadioItem,
454
+ decorators: [{
455
+ type: Component,
456
+ args: [{
457
+ selector: "[uiMenubarRadioItem], ui-menubar-radio-item",
458
+ hostDirectives: [UiElementHost],
459
+ imports: [UiIconSvg],
460
+ changeDetection: ChangeDetectionStrategy.OnPush,
461
+ providers: [{
462
+ provide: UI_MENU_ITEM,
463
+ useExisting: forwardRef(() => UiMenubarRadioItem)
464
+ }],
465
+ host: {
466
+ tabindex: "-1",
467
+ "[attr.data-disabled]": "disabled ? \"\" : null",
468
+ "[attr.aria-disabled]": "disabled ? \"true\" : null",
469
+ "[attr.data-highlighted]": "highlighted() ? \"\" : null",
470
+ "(focus)": "onFocus()",
471
+ "(blur)": "onBlur()",
472
+ "(pointermove)": "onPointerMove()",
473
+ "(pointerleave)": "onPointerLeave()",
474
+ "(click)": "activate()",
475
+ "data-slot": "menubar-radio-item",
476
+ role: "menuitemradio",
477
+ "[attr.aria-checked]": "checked()",
478
+ "[attr.data-state]": "checked() ? \"checked\" : \"unchecked\"",
479
+ "[attr.data-inset]": "inset() ? \"\" : null",
480
+ "[attr.class]": "classes()"
481
+ },
482
+ template: `
483
+ <ng-content />
484
+ <span class="pointer-events-none absolute end-2 flex items-center justify-center" data-slot="menubar-radio-item-indicator">
485
+ @if (checked()) { ${CHECK} }
486
+ </span>
487
+ `
488
+ }]
489
+ }],
490
+ propDecorators: {
491
+ value: [{
492
+ type: i0.Input,
493
+ args: [{
494
+ isSignal: true,
495
+ alias: "value",
496
+ required: false
497
+ }]
498
+ }],
499
+ inset: [{
500
+ type: i0.Input,
501
+ args: [{
502
+ isSignal: true,
503
+ alias: "inset",
504
+ required: false
505
+ }]
506
+ }]
507
+ }
508
+ });
509
+ var UiMenubarSub = class UiMenubarSub extends UiMenuSubBase {
510
+ static ɵfac = i0.ɵɵngDeclareFactory({
511
+ minVersion: "12.0.0",
512
+ version: "22.2.2",
513
+ ngImport: i0,
514
+ type: UiMenubarSub,
515
+ deps: null,
516
+ target: i0.ɵɵFactoryTarget.Directive
517
+ });
518
+ static ɵdir = i0.ɵɵngDeclareDirective({
519
+ minVersion: "14.0.0",
520
+ version: "22.2.2",
521
+ type: UiMenubarSub,
522
+ isStandalone: true,
523
+ selector: "[uiMenubarSub], ui-menubar-sub",
524
+ providers: [{
525
+ provide: UI_MENU_CTX,
526
+ useExisting: forwardRef(() => UiMenubarSub)
527
+ }, {
528
+ provide: UI_MENU_SUB,
529
+ useExisting: forwardRef(() => UiMenubarSub)
530
+ }],
531
+ usesInheritance: true,
532
+ hostDirectives: [{ directive: i1.UiElementHost }],
533
+ ngImport: i0
534
+ });
535
+ };
536
+ i0.ɵɵngDeclareClassMetadata({
537
+ minVersion: "12.0.0",
538
+ version: "22.2.2",
539
+ ngImport: i0,
540
+ type: UiMenubarSub,
541
+ decorators: [{
542
+ type: Directive,
543
+ args: [{
544
+ selector: "[uiMenubarSub], ui-menubar-sub",
545
+ hostDirectives: [UiElementHost],
546
+ providers: [{
547
+ provide: UI_MENU_CTX,
548
+ useExisting: forwardRef(() => UiMenubarSub)
549
+ }, {
550
+ provide: UI_MENU_SUB,
551
+ useExisting: forwardRef(() => UiMenubarSub)
552
+ }]
553
+ }]
554
+ }]
555
+ });
556
+ var UiMenubarSubTrigger = class UiMenubarSubTrigger extends UiMenuSubTriggerBase {
557
+ inset = input(false, {
558
+ ...ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {},
559
+ transform: booleanAttribute
560
+ });
561
+ classes = computed(() => cn(SUB_TRIGGER_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
562
+ static ɵfac = i0.ɵɵngDeclareFactory({
563
+ minVersion: "12.0.0",
564
+ version: "22.2.2",
565
+ ngImport: i0,
566
+ type: UiMenubarSubTrigger,
567
+ deps: null,
568
+ target: i0.ɵɵFactoryTarget.Component
569
+ });
570
+ static ɵcmp = i0.ɵɵngDeclareComponent({
571
+ minVersion: "17.1.0",
572
+ version: "22.2.2",
573
+ type: UiMenubarSubTrigger,
574
+ isStandalone: true,
575
+ selector: "[uiMenubarSubTrigger], ui-menubar-sub-trigger",
576
+ inputs: { inset: {
577
+ classPropertyName: "inset",
578
+ publicName: "inset",
579
+ isSignal: true,
580
+ isRequired: false,
581
+ transformFunction: null
582
+ } },
583
+ host: {
584
+ attributes: {
585
+ "tabindex": "-1",
586
+ "data-slot": "menubar-sub-trigger",
587
+ "role": "menuitem",
588
+ "aria-haspopup": "menu"
589
+ },
590
+ listeners: {
591
+ "focus": "onFocus()",
592
+ "blur": "onBlur()",
593
+ "pointermove": "onPointerMove()",
594
+ "pointerleave": "onPointerLeave()",
595
+ "click": "activate()"
596
+ },
597
+ properties: {
598
+ "attr.data-disabled": "disabled ? \"\" : null",
599
+ "attr.aria-disabled": "disabled ? \"true\" : null",
600
+ "attr.data-highlighted": "highlighted() ? \"\" : null",
601
+ "attr.aria-expanded": "sub.open()",
602
+ "attr.data-state": "sub.open() ? \"open\" : \"closed\"",
603
+ "attr.data-inset": "inset() ? \"\" : null",
604
+ "attr.class": "classes()"
605
+ }
606
+ },
607
+ providers: [{
608
+ provide: UI_MENU_ITEM,
609
+ useExisting: forwardRef(() => UiMenubarSubTrigger)
610
+ }],
611
+ usesInheritance: true,
612
+ hostDirectives: [{ directive: i1.UiElementHost }],
613
+ ngImport: i0,
614
+ template: `
615
+ <ng-content />
616
+ <svg uiIcon="chevron-right" class="ms-auto rtl:rotate-180"></svg>
617
+ `,
618
+ isInline: true,
619
+ dependencies: [{
620
+ kind: "directive",
621
+ type: UiIconSvg,
622
+ selector: "svg[uiIcon]",
623
+ inputs: [
624
+ "uiIcon",
625
+ "icon",
626
+ "size",
627
+ "strokeWidth",
628
+ "absoluteStrokeWidth",
629
+ "color",
630
+ "label",
631
+ "class"
632
+ ]
633
+ }],
634
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
635
+ });
636
+ };
637
+ i0.ɵɵngDeclareClassMetadata({
638
+ minVersion: "12.0.0",
639
+ version: "22.2.2",
640
+ ngImport: i0,
641
+ type: UiMenubarSubTrigger,
642
+ decorators: [{
643
+ type: Component,
644
+ args: [{
645
+ selector: "[uiMenubarSubTrigger], ui-menubar-sub-trigger",
646
+ hostDirectives: [UiElementHost],
647
+ imports: [UiIconSvg],
648
+ changeDetection: ChangeDetectionStrategy.OnPush,
649
+ providers: [{
650
+ provide: UI_MENU_ITEM,
651
+ useExisting: forwardRef(() => UiMenubarSubTrigger)
652
+ }],
653
+ host: {
654
+ tabindex: "-1",
655
+ "[attr.data-disabled]": "disabled ? \"\" : null",
656
+ "[attr.aria-disabled]": "disabled ? \"true\" : null",
657
+ "[attr.data-highlighted]": "highlighted() ? \"\" : null",
658
+ "(focus)": "onFocus()",
659
+ "(blur)": "onBlur()",
660
+ "(pointermove)": "onPointerMove()",
661
+ "(pointerleave)": "onPointerLeave()",
662
+ "(click)": "activate()",
663
+ "data-slot": "menubar-sub-trigger",
664
+ role: "menuitem",
665
+ "aria-haspopup": "menu",
666
+ "[attr.aria-expanded]": "sub.open()",
667
+ "[attr.data-state]": "sub.open() ? \"open\" : \"closed\"",
668
+ "[attr.data-inset]": "inset() ? \"\" : null",
669
+ "[attr.class]": "classes()"
670
+ },
671
+ template: `
672
+ <ng-content />
673
+ <svg uiIcon="chevron-right" class="ms-auto rtl:rotate-180"></svg>
674
+ `
675
+ }]
676
+ }],
677
+ propDecorators: { inset: [{
678
+ type: i0.Input,
679
+ args: [{
680
+ isSignal: true,
681
+ alias: "inset",
682
+ required: false
683
+ }]
684
+ }] }
685
+ });
686
+ var UiMenubarSubContent = class UiMenubarSubContent extends UiMenuContentBase {
687
+ root = inject(UiMenubarSub);
688
+ menu = this.root;
689
+ varPrefix = "--radix-menubar";
690
+ side = input("right", ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
691
+ align = input("start", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
692
+ sideOffset = input(0, ...ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []);
693
+ items = contentChildren(UI_MENU_ITEM, {
694
+ ...ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {},
695
+ descendants: true
696
+ });
697
+ classes = computed(() => cn(CONTENT_CLASS, "w-auto", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
698
+ menuItems() {
699
+ return this.items();
700
+ }
701
+ constructor() {
702
+ super();
703
+ this.isSub = true;
704
+ this.init();
705
+ }
706
+ static ɵfac = i0.ɵɵngDeclareFactory({
707
+ minVersion: "12.0.0",
708
+ version: "22.2.2",
709
+ ngImport: i0,
710
+ type: UiMenubarSubContent,
711
+ deps: [],
712
+ target: i0.ɵɵFactoryTarget.Directive
713
+ });
714
+ static ɵdir = i0.ɵɵngDeclareDirective({
715
+ minVersion: "17.2.0",
716
+ version: "22.2.2",
717
+ type: UiMenubarSubContent,
718
+ isStandalone: true,
719
+ selector: "[uiMenubarSubContent], ui-menubar-sub-content",
720
+ inputs: {
721
+ side: {
722
+ classPropertyName: "side",
723
+ publicName: "side",
724
+ isSignal: true,
725
+ isRequired: false,
726
+ transformFunction: null
727
+ },
728
+ align: {
729
+ classPropertyName: "align",
730
+ publicName: "align",
731
+ isSignal: true,
732
+ isRequired: false,
733
+ transformFunction: null
734
+ },
735
+ sideOffset: {
736
+ classPropertyName: "sideOffset",
737
+ publicName: "sideOffset",
738
+ isSignal: true,
739
+ isRequired: false,
740
+ transformFunction: null
741
+ }
742
+ },
743
+ host: {
744
+ attributes: {
745
+ "role": "menu",
746
+ "aria-orientation": "vertical",
747
+ "data-slot": "menubar-sub-content",
748
+ "tabindex": "-1"
749
+ },
750
+ listeners: { "keydown": "onMenuKeydown($event)" },
751
+ properties: {
752
+ "attr.data-state": "root.state()",
753
+ "attr.dir": "dir.value",
754
+ "attr.class": "classes()"
755
+ }
756
+ },
757
+ queries: [{
758
+ propertyName: "items",
759
+ predicate: UI_MENU_ITEM,
760
+ descendants: true,
761
+ isSignal: true
762
+ }],
763
+ usesInheritance: true,
764
+ hostDirectives: [{ directive: i1.UiElementHost }],
765
+ ngImport: i0
766
+ });
767
+ };
768
+ i0.ɵɵngDeclareClassMetadata({
769
+ minVersion: "12.0.0",
770
+ version: "22.2.2",
771
+ ngImport: i0,
772
+ type: UiMenubarSubContent,
773
+ decorators: [{
774
+ type: Directive,
775
+ args: [{
776
+ selector: "[uiMenubarSubContent], ui-menubar-sub-content",
777
+ hostDirectives: [UiElementHost],
778
+ host: {
779
+ role: "menu",
780
+ "aria-orientation": "vertical",
781
+ "data-slot": "menubar-sub-content",
782
+ tabindex: "-1",
783
+ "[attr.data-state]": "root.state()",
784
+ "[attr.dir]": "dir.value",
785
+ "[attr.class]": "classes()",
786
+ "(keydown)": "onMenuKeydown($event)"
787
+ }
788
+ }]
789
+ }],
790
+ ctorParameters: () => [],
791
+ propDecorators: {
792
+ side: [{
793
+ type: i0.Input,
794
+ args: [{
795
+ isSignal: true,
796
+ alias: "side",
797
+ required: false
798
+ }]
799
+ }],
800
+ align: [{
801
+ type: i0.Input,
802
+ args: [{
803
+ isSignal: true,
804
+ alias: "align",
805
+ required: false
806
+ }]
807
+ }],
808
+ sideOffset: [{
809
+ type: i0.Input,
810
+ args: [{
811
+ isSignal: true,
812
+ alias: "sideOffset",
813
+ required: false
814
+ }]
815
+ }],
816
+ items: [{
817
+ type: i0.ContentChildren,
818
+ args: [i0.forwardRef(() => UI_MENU_ITEM), {
819
+ descendants: true,
820
+ isSignal: true
821
+ }]
822
+ }]
823
+ }
824
+ });
825
+ var UiMenubarLabel = class UiMenubarLabel {
826
+ inset = input(false, {
827
+ ...ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {},
828
+ transform: booleanAttribute
829
+ });
830
+ userClass = input("", {
831
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
832
+ alias: "class"
833
+ });
834
+ classes = computed(() => cn(LABEL_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
835
+ static ɵfac = i0.ɵɵngDeclareFactory({
836
+ minVersion: "12.0.0",
837
+ version: "22.2.2",
838
+ ngImport: i0,
839
+ type: UiMenubarLabel,
840
+ deps: [],
841
+ target: i0.ɵɵFactoryTarget.Directive
842
+ });
843
+ static ɵdir = i0.ɵɵngDeclareDirective({
844
+ minVersion: "17.1.0",
845
+ version: "22.2.2",
846
+ type: UiMenubarLabel,
847
+ isStandalone: true,
848
+ selector: "[uiMenubarLabel], ui-menubar-label",
849
+ inputs: {
850
+ inset: {
851
+ classPropertyName: "inset",
852
+ publicName: "inset",
853
+ isSignal: true,
854
+ isRequired: false,
855
+ transformFunction: null
856
+ },
857
+ userClass: {
858
+ classPropertyName: "userClass",
859
+ publicName: "class",
860
+ isSignal: true,
861
+ isRequired: false,
862
+ transformFunction: null
863
+ }
864
+ },
865
+ host: {
866
+ attributes: { "data-slot": "menubar-label" },
867
+ properties: {
868
+ "attr.data-inset": "inset() ? \"\" : null",
869
+ "attr.class": "classes()"
870
+ }
871
+ },
872
+ hostDirectives: [{ directive: i1.UiElementHost }],
873
+ ngImport: i0
874
+ });
875
+ };
876
+ i0.ɵɵngDeclareClassMetadata({
877
+ minVersion: "12.0.0",
878
+ version: "22.2.2",
879
+ ngImport: i0,
880
+ type: UiMenubarLabel,
881
+ decorators: [{
882
+ type: Directive,
883
+ args: [{
884
+ selector: "[uiMenubarLabel], ui-menubar-label",
885
+ hostDirectives: [UiElementHost],
886
+ host: {
887
+ "data-slot": "menubar-label",
888
+ "[attr.data-inset]": "inset() ? \"\" : null",
889
+ "[attr.class]": "classes()"
890
+ }
891
+ }]
892
+ }],
893
+ propDecorators: {
894
+ inset: [{
895
+ type: i0.Input,
896
+ args: [{
897
+ isSignal: true,
898
+ alias: "inset",
899
+ required: false
900
+ }]
901
+ }],
902
+ userClass: [{
903
+ type: i0.Input,
904
+ args: [{
905
+ isSignal: true,
906
+ alias: "class",
907
+ required: false
908
+ }]
909
+ }]
910
+ }
911
+ });
912
+ var UiMenubarSeparator = class UiMenubarSeparator {
913
+ userClass = input("", {
914
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
915
+ alias: "class"
916
+ });
917
+ classes = computed(() => cn(SEPARATOR_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
918
+ static ɵfac = i0.ɵɵngDeclareFactory({
919
+ minVersion: "12.0.0",
920
+ version: "22.2.2",
921
+ ngImport: i0,
922
+ type: UiMenubarSeparator,
923
+ deps: [],
924
+ target: i0.ɵɵFactoryTarget.Directive
925
+ });
926
+ static ɵdir = i0.ɵɵngDeclareDirective({
927
+ minVersion: "17.1.0",
928
+ version: "22.2.2",
929
+ type: UiMenubarSeparator,
930
+ isStandalone: true,
931
+ selector: "[uiMenubarSeparator], ui-menubar-separator",
932
+ inputs: { userClass: {
933
+ classPropertyName: "userClass",
934
+ publicName: "class",
935
+ isSignal: true,
936
+ isRequired: false,
937
+ transformFunction: null
938
+ } },
939
+ host: {
940
+ attributes: {
941
+ "role": "separator",
942
+ "aria-orientation": "horizontal",
943
+ "data-slot": "menubar-separator"
944
+ },
945
+ properties: { "attr.class": "classes()" }
946
+ },
947
+ hostDirectives: [{ directive: i1.UiElementHost }],
948
+ ngImport: i0
949
+ });
950
+ };
951
+ i0.ɵɵngDeclareClassMetadata({
952
+ minVersion: "12.0.0",
953
+ version: "22.2.2",
954
+ ngImport: i0,
955
+ type: UiMenubarSeparator,
956
+ decorators: [{
957
+ type: Directive,
958
+ args: [{
959
+ selector: "[uiMenubarSeparator], ui-menubar-separator",
960
+ hostDirectives: [UiElementHost],
961
+ host: {
962
+ role: "separator",
963
+ "aria-orientation": "horizontal",
964
+ "data-slot": "menubar-separator",
965
+ "[attr.class]": "classes()"
966
+ }
967
+ }]
968
+ }],
969
+ propDecorators: { userClass: [{
970
+ type: i0.Input,
971
+ args: [{
972
+ isSignal: true,
973
+ alias: "class",
974
+ required: false
975
+ }]
976
+ }] }
977
+ });
978
+ var UiMenubarShortcut = class UiMenubarShortcut {
979
+ userClass = input("", {
980
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
981
+ alias: "class"
982
+ });
983
+ classes = computed(() => cn(SHORTCUT_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
984
+ static ɵfac = i0.ɵɵngDeclareFactory({
985
+ minVersion: "12.0.0",
986
+ version: "22.2.2",
987
+ ngImport: i0,
988
+ type: UiMenubarShortcut,
989
+ deps: [],
990
+ target: i0.ɵɵFactoryTarget.Directive
991
+ });
992
+ static ɵdir = i0.ɵɵngDeclareDirective({
993
+ minVersion: "17.1.0",
994
+ version: "22.2.2",
995
+ type: UiMenubarShortcut,
996
+ isStandalone: true,
997
+ selector: "[uiMenubarShortcut], ui-menubar-shortcut",
998
+ inputs: { userClass: {
999
+ classPropertyName: "userClass",
1000
+ publicName: "class",
1001
+ isSignal: true,
1002
+ isRequired: false,
1003
+ transformFunction: null
1004
+ } },
1005
+ host: {
1006
+ attributes: { "data-slot": "menubar-shortcut" },
1007
+ properties: { "attr.class": "classes()" }
1008
+ },
1009
+ hostDirectives: [{ directive: i1.UiElementHost }],
1010
+ ngImport: i0
1011
+ });
1012
+ };
1013
+ i0.ɵɵngDeclareClassMetadata({
1014
+ minVersion: "12.0.0",
1015
+ version: "22.2.2",
1016
+ ngImport: i0,
1017
+ type: UiMenubarShortcut,
1018
+ decorators: [{
1019
+ type: Directive,
1020
+ args: [{
1021
+ selector: "[uiMenubarShortcut], ui-menubar-shortcut",
1022
+ hostDirectives: [UiElementHost],
1023
+ host: {
1024
+ "data-slot": "menubar-shortcut",
1025
+ "[attr.class]": "classes()"
1026
+ }
1027
+ }]
1028
+ }],
1029
+ propDecorators: { userClass: [{
1030
+ type: i0.Input,
1031
+ args: [{
1032
+ isSignal: true,
1033
+ alias: "class",
1034
+ required: false
1035
+ }]
1036
+ }] }
1037
+ });
1038
+ var UiMenubarGroup = class UiMenubarGroup {
1039
+ static ɵfac = i0.ɵɵngDeclareFactory({
1040
+ minVersion: "12.0.0",
1041
+ version: "22.2.2",
1042
+ ngImport: i0,
1043
+ type: UiMenubarGroup,
1044
+ deps: [],
1045
+ target: i0.ɵɵFactoryTarget.Directive
1046
+ });
1047
+ static ɵdir = i0.ɵɵngDeclareDirective({
1048
+ minVersion: "14.0.0",
1049
+ version: "22.2.2",
1050
+ type: UiMenubarGroup,
1051
+ isStandalone: true,
1052
+ selector: "[uiMenubarGroup], ui-menubar-group",
1053
+ host: { attributes: {
1054
+ "role": "group",
1055
+ "data-slot": "menubar-group"
1056
+ } },
1057
+ hostDirectives: [{ directive: i1.UiElementHost }],
1058
+ ngImport: i0
1059
+ });
1060
+ };
1061
+ i0.ɵɵngDeclareClassMetadata({
1062
+ minVersion: "12.0.0",
1063
+ version: "22.2.2",
1064
+ ngImport: i0,
1065
+ type: UiMenubarGroup,
1066
+ decorators: [{
1067
+ type: Directive,
1068
+ args: [{
1069
+ selector: "[uiMenubarGroup], ui-menubar-group",
1070
+ hostDirectives: [UiElementHost],
1071
+ host: {
1072
+ role: "group",
1073
+ "data-slot": "menubar-group"
1074
+ }
1075
+ }]
1076
+ }]
1077
+ });
1078
+ const MENUBAR_SHARED = [
1079
+ UiMenubarItem,
1080
+ UiMenubarCheckboxItem,
1081
+ UiMenubarRadioGroup,
1082
+ UiMenubarRadioItem,
1083
+ UiMenubarSub,
1084
+ UiMenubarSubTrigger,
1085
+ UiMenubarSubContent,
1086
+ UiMenubarLabel,
1087
+ UiMenubarSeparator,
1088
+ UiMenubarShortcut,
1089
+ UiMenubarGroup
1090
+ ];
1091
+ var UiMenubar = class UiMenubar {
1092
+ userClass = input("", {
1093
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1094
+ alias: "class"
1095
+ });
1096
+ menus = contentChildren(forwardRef(() => UiMenubarMenu), {
1097
+ ...ngDevMode ? { debugName: "menus" } : /* istanbul ignore next */ {},
1098
+ descendants: true
1099
+ });
1100
+ active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
1101
+ lastActive = signal(null, ...ngDevMode ? [{ debugName: "lastActive" }] : /* istanbul ignore next */ []);
1102
+ classes = computed(() => cn(menubarClass, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1103
+ activate(menu) {
1104
+ this.active.set(menu);
1105
+ if (menu) this.lastActive.set(menu);
1106
+ for (const m of this.menus()) if (m !== menu && m.open()) m.open.set(false);
1107
+ }
1108
+ step(from, dir, open) {
1109
+ const menus = this.menus();
1110
+ const target = menus[(menus.indexOf(from) + (dir === "next" ? 1 : -1) + menus.length) % menus.length];
1111
+ if (!target) return;
1112
+ target.keyboardOpen = open ? "first" : null;
1113
+ target.triggerEl()?.focus();
1114
+ if (open) {
1115
+ this.activate(target);
1116
+ target.open.set(true);
1117
+ }
1118
+ }
1119
+ tabStop = computed(() => this.active() ?? this.lastActive() ?? this.menus()[0] ?? null, ...ngDevMode ? [{ debugName: "tabStop" }] : /* istanbul ignore next */ []);
1120
+ static ɵfac = i0.ɵɵngDeclareFactory({
1121
+ minVersion: "12.0.0",
1122
+ version: "22.2.2",
1123
+ ngImport: i0,
1124
+ type: UiMenubar,
1125
+ deps: [],
1126
+ target: i0.ɵɵFactoryTarget.Directive
1127
+ });
1128
+ static ɵdir = i0.ɵɵngDeclareDirective({
1129
+ minVersion: "17.2.0",
1130
+ version: "22.2.2",
1131
+ type: UiMenubar,
1132
+ isStandalone: true,
1133
+ selector: "[uiMenubar], ui-menubar",
1134
+ inputs: { userClass: {
1135
+ classPropertyName: "userClass",
1136
+ publicName: "class",
1137
+ isSignal: true,
1138
+ isRequired: false,
1139
+ transformFunction: null
1140
+ } },
1141
+ host: {
1142
+ attributes: {
1143
+ "role": "menubar",
1144
+ "data-slot": "menubar",
1145
+ "data-orientation": "horizontal"
1146
+ },
1147
+ properties: { "attr.class": "classes()" }
1148
+ },
1149
+ queries: [{
1150
+ propertyName: "menus",
1151
+ predicate: i0.forwardRef(() => UiMenubarMenu),
1152
+ descendants: true,
1153
+ isSignal: true
1154
+ }],
1155
+ exportAs: ["uiMenubar"],
1156
+ hostDirectives: [{ directive: i1.UiElementHost }],
1157
+ ngImport: i0
1158
+ });
1159
+ };
1160
+ i0.ɵɵngDeclareClassMetadata({
1161
+ minVersion: "12.0.0",
1162
+ version: "22.2.2",
1163
+ ngImport: i0,
1164
+ type: UiMenubar,
1165
+ decorators: [{
1166
+ type: Directive,
1167
+ args: [{
1168
+ selector: "[uiMenubar], ui-menubar",
1169
+ hostDirectives: [UiElementHost],
1170
+ exportAs: "uiMenubar",
1171
+ host: {
1172
+ role: "menubar",
1173
+ "data-slot": "menubar",
1174
+ "data-orientation": "horizontal",
1175
+ "[attr.class]": "classes()"
1176
+ }
1177
+ }]
1178
+ }],
1179
+ propDecorators: {
1180
+ userClass: [{
1181
+ type: i0.Input,
1182
+ args: [{
1183
+ isSignal: true,
1184
+ alias: "class",
1185
+ required: false
1186
+ }]
1187
+ }],
1188
+ menus: [{
1189
+ type: i0.ContentChildren,
1190
+ args: [forwardRef(() => UiMenubarMenu), {
1191
+ descendants: true,
1192
+ isSignal: true
1193
+ }]
1194
+ }]
1195
+ }
1196
+ });
1197
+ var UiMenubarMenu = class UiMenubarMenu extends UiMenuRootBase {
1198
+ bar = inject(UiMenubar);
1199
+ triggerEl = this.trigger;
1200
+ constructor() {
1201
+ super();
1202
+ effect(() => {
1203
+ const open = this.open();
1204
+ untracked(() => {
1205
+ if (open) this.bar.activate(this);
1206
+ else if (this.bar.active() === this) this.bar.active.set(null);
1207
+ });
1208
+ });
1209
+ }
1210
+ horizontal(dir) {
1211
+ this.bar.step(this, dir, true);
1212
+ }
1213
+ static ɵfac = i0.ɵɵngDeclareFactory({
1214
+ minVersion: "12.0.0",
1215
+ version: "22.2.2",
1216
+ ngImport: i0,
1217
+ type: UiMenubarMenu,
1218
+ deps: [],
1219
+ target: i0.ɵɵFactoryTarget.Directive
1220
+ });
1221
+ static ɵdir = i0.ɵɵngDeclareDirective({
1222
+ minVersion: "14.0.0",
1223
+ version: "22.2.2",
1224
+ type: UiMenubarMenu,
1225
+ isStandalone: true,
1226
+ selector: "[uiMenubarMenu], ui-menubar-menu",
1227
+ providers: [{
1228
+ provide: UI_MENU_CTX,
1229
+ useExisting: forwardRef(() => UiMenubarMenu)
1230
+ }],
1231
+ exportAs: ["uiMenubarMenu"],
1232
+ usesInheritance: true,
1233
+ hostDirectives: [{ directive: i1.UiElementHost }],
1234
+ ngImport: i0
1235
+ });
1236
+ };
1237
+ i0.ɵɵngDeclareClassMetadata({
1238
+ minVersion: "12.0.0",
1239
+ version: "22.2.2",
1240
+ ngImport: i0,
1241
+ type: UiMenubarMenu,
1242
+ decorators: [{
1243
+ type: Directive,
1244
+ args: [{
1245
+ selector: "[uiMenubarMenu], ui-menubar-menu",
1246
+ hostDirectives: [UiElementHost],
1247
+ exportAs: "uiMenubarMenu",
1248
+ providers: [{
1249
+ provide: UI_MENU_CTX,
1250
+ useExisting: forwardRef(() => UiMenubarMenu)
1251
+ }]
1252
+ }]
1253
+ }],
1254
+ ctorParameters: () => []
1255
+ });
1256
+ var UiMenubarTrigger = class UiMenubarTrigger {
1257
+ menu = inject(UiMenubarMenu);
1258
+ userClass = input("", {
1259
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1260
+ alias: "class"
1261
+ });
1262
+ classes = computed(() => cn(menubarTriggerClass, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1263
+ constructor() {
1264
+ const el = inject(ElementRef).nativeElement;
1265
+ this.menu.trigger.set(el);
1266
+ this.menu.triggerId.set(el.id || `${this.menu.id}-trigger`);
1267
+ }
1268
+ onClick() {
1269
+ this.menu.keyboardOpen = null;
1270
+ this.menu.toggle();
1271
+ }
1272
+ onEnter() {
1273
+ const active = this.menu.bar.active();
1274
+ if (active && active !== this.menu) {
1275
+ this.menu.keyboardOpen = null;
1276
+ this.menu.open.set(true);
1277
+ }
1278
+ }
1279
+ onKeydown(e) {
1280
+ const rtl = this.menu.dirIsRtl();
1281
+ const next = rtl ? "ArrowLeft" : "ArrowRight";
1282
+ const prev = rtl ? "ArrowRight" : "ArrowLeft";
1283
+ if (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") {
1284
+ e.preventDefault();
1285
+ this.menu.keyboardOpen = "first";
1286
+ this.menu.open.set(true);
1287
+ } else if (e.key === "ArrowUp") {
1288
+ e.preventDefault();
1289
+ this.menu.keyboardOpen = "last";
1290
+ this.menu.open.set(true);
1291
+ } else if (e.key === next) {
1292
+ e.preventDefault();
1293
+ this.menu.bar.step(this.menu, "next", false);
1294
+ } else if (e.key === prev) {
1295
+ e.preventDefault();
1296
+ this.menu.bar.step(this.menu, "prev", false);
1297
+ }
1298
+ }
1299
+ static ɵfac = i0.ɵɵngDeclareFactory({
1300
+ minVersion: "12.0.0",
1301
+ version: "22.2.2",
1302
+ ngImport: i0,
1303
+ type: UiMenubarTrigger,
1304
+ deps: [],
1305
+ target: i0.ɵɵFactoryTarget.Directive
1306
+ });
1307
+ static ɵdir = i0.ɵɵngDeclareDirective({
1308
+ minVersion: "17.1.0",
1309
+ version: "22.2.2",
1310
+ type: UiMenubarTrigger,
1311
+ isStandalone: true,
1312
+ selector: "[uiMenubarTrigger], ui-menubar-trigger",
1313
+ inputs: { userClass: {
1314
+ classPropertyName: "userClass",
1315
+ publicName: "class",
1316
+ isSignal: true,
1317
+ isRequired: false,
1318
+ transformFunction: null
1319
+ } },
1320
+ host: {
1321
+ attributes: {
1322
+ "role": "menuitem",
1323
+ "aria-haspopup": "menu",
1324
+ "data-slot": "menubar-trigger",
1325
+ "data-orientation": "horizontal"
1326
+ },
1327
+ listeners: {
1328
+ "click": "onClick()",
1329
+ "focus": "menu.bar.lastActive.set(menu)",
1330
+ "pointerenter": "onEnter()",
1331
+ "keydown": "onKeydown($event)"
1332
+ },
1333
+ properties: {
1334
+ "attr.id": "menu.triggerId()",
1335
+ "attr.aria-expanded": "menu.open()",
1336
+ "attr.aria-controls": "menu.open() ? menu.id : null",
1337
+ "attr.data-state": "menu.open() ? \"open\" : \"closed\"",
1338
+ "attr.tabindex": "menu.bar.tabStop() === menu ? 0 : -1",
1339
+ "attr.class": "classes()"
1340
+ }
1341
+ },
1342
+ hostDirectives: [{ directive: i1.UiElementHost }],
1343
+ ngImport: i0
1344
+ });
1345
+ };
1346
+ i0.ɵɵngDeclareClassMetadata({
1347
+ minVersion: "12.0.0",
1348
+ version: "22.2.2",
1349
+ ngImport: i0,
1350
+ type: UiMenubarTrigger,
1351
+ decorators: [{
1352
+ type: Directive,
1353
+ args: [{
1354
+ selector: "[uiMenubarTrigger], ui-menubar-trigger",
1355
+ hostDirectives: [UiElementHost],
1356
+ host: {
1357
+ role: "menuitem",
1358
+ "aria-haspopup": "menu",
1359
+ "data-slot": "menubar-trigger",
1360
+ "data-orientation": "horizontal",
1361
+ "[attr.id]": "menu.triggerId()",
1362
+ "[attr.aria-expanded]": "menu.open()",
1363
+ "[attr.aria-controls]": "menu.open() ? menu.id : null",
1364
+ "[attr.data-state]": "menu.open() ? \"open\" : \"closed\"",
1365
+ "[attr.tabindex]": "menu.bar.tabStop() === menu ? 0 : -1",
1366
+ "[attr.class]": "classes()",
1367
+ "(click)": "onClick()",
1368
+ "(focus)": "menu.bar.lastActive.set(menu)",
1369
+ "(pointerenter)": "onEnter()",
1370
+ "(keydown)": "onKeydown($event)"
1371
+ }
1372
+ }]
1373
+ }],
1374
+ ctorParameters: () => [],
1375
+ propDecorators: { userClass: [{
1376
+ type: i0.Input,
1377
+ args: [{
1378
+ isSignal: true,
1379
+ alias: "class",
1380
+ required: false
1381
+ }]
1382
+ }] }
1383
+ });
1384
+ var UiMenubarContent = class UiMenubarContent extends UiMenuContentBase {
1385
+ root = inject(UiMenubarMenu);
1386
+ menu = this.root;
1387
+ varPrefix = "--radix-menubar";
1388
+ align = input("start", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
1389
+ sideOffset = input(8, ...ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []);
1390
+ items = contentChildren(UI_MENU_ITEM, {
1391
+ ...ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {},
1392
+ descendants: true
1393
+ });
1394
+ classes = computed(() => cn(menubarContentClass, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1395
+ menuItems() {
1396
+ return this.items();
1397
+ }
1398
+ constructor() {
1399
+ super();
1400
+ this.init();
1401
+ }
1402
+ static ɵfac = i0.ɵɵngDeclareFactory({
1403
+ minVersion: "12.0.0",
1404
+ version: "22.2.2",
1405
+ ngImport: i0,
1406
+ type: UiMenubarContent,
1407
+ deps: [],
1408
+ target: i0.ɵɵFactoryTarget.Directive
1409
+ });
1410
+ static ɵdir = i0.ɵɵngDeclareDirective({
1411
+ minVersion: "17.2.0",
1412
+ version: "22.2.2",
1413
+ type: UiMenubarContent,
1414
+ isStandalone: true,
1415
+ selector: "[uiMenubarContent], ui-menubar-content",
1416
+ inputs: {
1417
+ align: {
1418
+ classPropertyName: "align",
1419
+ publicName: "align",
1420
+ isSignal: true,
1421
+ isRequired: false,
1422
+ transformFunction: null
1423
+ },
1424
+ sideOffset: {
1425
+ classPropertyName: "sideOffset",
1426
+ publicName: "sideOffset",
1427
+ isSignal: true,
1428
+ isRequired: false,
1429
+ transformFunction: null
1430
+ }
1431
+ },
1432
+ host: {
1433
+ attributes: {
1434
+ "role": "menu",
1435
+ "aria-orientation": "vertical",
1436
+ "data-slot": "menubar-content",
1437
+ "data-orientation": "vertical",
1438
+ "data-radix-menubar-content": "",
1439
+ "tabindex": "-1"
1440
+ },
1441
+ listeners: { "keydown": "onMenuKeydown($event)" },
1442
+ properties: {
1443
+ "id": "root.id",
1444
+ "attr.aria-labelledby": "root.triggerId()",
1445
+ "attr.data-state": "root.state()",
1446
+ "attr.dir": "dir.value",
1447
+ "attr.class": "classes()"
1448
+ }
1449
+ },
1450
+ queries: [{
1451
+ propertyName: "items",
1452
+ predicate: UI_MENU_ITEM,
1453
+ descendants: true,
1454
+ isSignal: true
1455
+ }],
1456
+ usesInheritance: true,
1457
+ hostDirectives: [{ directive: i1.UiElementHost }],
1458
+ ngImport: i0
1459
+ });
1460
+ };
1461
+ i0.ɵɵngDeclareClassMetadata({
1462
+ minVersion: "12.0.0",
1463
+ version: "22.2.2",
1464
+ ngImport: i0,
1465
+ type: UiMenubarContent,
1466
+ decorators: [{
1467
+ type: Directive,
1468
+ args: [{
1469
+ selector: "[uiMenubarContent], ui-menubar-content",
1470
+ hostDirectives: [UiElementHost],
1471
+ host: {
1472
+ role: "menu",
1473
+ "aria-orientation": "vertical",
1474
+ "data-slot": "menubar-content",
1475
+ "data-orientation": "vertical",
1476
+ "data-radix-menubar-content": "",
1477
+ tabindex: "-1",
1478
+ "[id]": "root.id",
1479
+ "[attr.aria-labelledby]": "root.triggerId()",
1480
+ "[attr.data-state]": "root.state()",
1481
+ "[attr.dir]": "dir.value",
1482
+ "[attr.class]": "classes()",
1483
+ "(keydown)": "onMenuKeydown($event)"
1484
+ }
1485
+ }]
1486
+ }],
1487
+ ctorParameters: () => [],
1488
+ propDecorators: {
1489
+ align: [{
1490
+ type: i0.Input,
1491
+ args: [{
1492
+ isSignal: true,
1493
+ alias: "align",
1494
+ required: false
1495
+ }]
1496
+ }],
1497
+ sideOffset: [{
1498
+ type: i0.Input,
1499
+ args: [{
1500
+ isSignal: true,
1501
+ alias: "sideOffset",
1502
+ required: false
1503
+ }]
1504
+ }],
1505
+ items: [{
1506
+ type: i0.ContentChildren,
1507
+ args: [i0.forwardRef(() => UI_MENU_ITEM), {
1508
+ descendants: true,
1509
+ isSignal: true
1510
+ }]
1511
+ }]
1512
+ }
1513
+ });
1514
+ const UI_MENUBAR = [
1515
+ UiMenubar,
1516
+ UiMenubarMenu,
1517
+ UiMenubarTrigger,
1518
+ UiMenubarContent,
1519
+ ...MENUBAR_SHARED
1520
+ ];
1521
+ export { MENUBAR_SHARED, UI_MENUBAR, UI_MENUBAR_GENERATED, UiMenuSelectEvent, UiMenubar, UiMenubarCheckboxItem, UiMenubarContent, UiMenubarGroup, UiMenubarItem, UiMenubarLabel, UiMenubarMenu, UiMenubarRadioGroup, UiMenubarRadioItem, UiMenubarSeparator, UiMenubarShortcut, UiMenubarSub, UiMenubarSubContent, UiMenubarSubTrigger, UiMenubarTrigger, menubarClass, menubarContentClass, menubarItemClass, menubarSeparatorClass, menubarShortcutClass, menubarSubTriggerClass, menubarTriggerClass };
1522
+
1523
+ //# sourceMappingURL=loomui-ng-ui-menubar.mjs.map