@ojiepermana/angular 22.0.1 → 22.0.29

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 (513) hide show
  1. package/README.md +61 -311
  2. package/fesm2022/ojiepermana-angular-chart.mjs +10 -0
  3. package/fesm2022/ojiepermana-angular-component.mjs +10 -0
  4. package/fesm2022/ojiepermana-angular-navigation.mjs +10 -0
  5. package/fesm2022/ojiepermana-angular-sdk.mjs +10 -0
  6. package/fesm2022/ojiepermana-angular-theme.mjs +4 -384
  7. package/fesm2022/ojiepermana-angular.mjs +15 -16
  8. package/package.json +25 -425
  9. package/types/ojiepermana-angular-chart.d.ts +1 -0
  10. package/types/ojiepermana-angular-component.d.ts +1 -0
  11. package/types/ojiepermana-angular-navigation.d.ts +1 -0
  12. package/types/ojiepermana-angular-sdk.d.ts +1 -0
  13. package/types/ojiepermana-angular-theme.d.ts +1 -116
  14. package/types/ojiepermana-angular.d.ts +5 -3
  15. package/.npmignore +0 -2
  16. package/collection.json +0 -30
  17. package/component/accordion/README.md +0 -195
  18. package/component/accordion/package.json +0 -4
  19. package/component/alert/README.md +0 -182
  20. package/component/alert/package.json +0 -4
  21. package/component/alert-dialog/README.md +0 -239
  22. package/component/alert-dialog/package.json +0 -4
  23. package/component/aspect-ratio/README.md +0 -112
  24. package/component/aspect-ratio/package.json +0 -4
  25. package/component/avatar/README.md +0 -176
  26. package/component/avatar/package.json +0 -4
  27. package/component/badge/README.md +0 -133
  28. package/component/badge/package.json +0 -4
  29. package/component/breadcrumb/README.md +0 -216
  30. package/component/breadcrumb/package.json +0 -4
  31. package/component/button/README.md +0 -139
  32. package/component/button/package.json +0 -4
  33. package/component/button-group/README.md +0 -208
  34. package/component/button-group/package.json +0 -4
  35. package/component/calendar/README.md +0 -132
  36. package/component/calendar/package.json +0 -4
  37. package/component/card/README.md +0 -220
  38. package/component/card/package.json +0 -4
  39. package/component/carousel/README.md +0 -276
  40. package/component/carousel/package.json +0 -4
  41. package/component/chart/README.md +0 -249
  42. package/component/chart/area/package.json +0 -4
  43. package/component/chart/bar/package.json +0 -4
  44. package/component/chart/line/package.json +0 -4
  45. package/component/chart/package.json +0 -4
  46. package/component/chart/pie/package.json +0 -4
  47. package/component/chart/radar/package.json +0 -4
  48. package/component/chart/radial/package.json +0 -4
  49. package/component/chart/scatter/package.json +0 -4
  50. package/component/checkbox/README.md +0 -149
  51. package/component/checkbox/package.json +0 -4
  52. package/component/collapsible/README.md +0 -195
  53. package/component/collapsible/package.json +0 -4
  54. package/component/combobox/README.md +0 -198
  55. package/component/combobox/package.json +0 -4
  56. package/component/command/README.md +0 -275
  57. package/component/command/package.json +0 -4
  58. package/component/composer/README.md +0 -235
  59. package/component/composer/package.json +0 -4
  60. package/component/context-menu/README.md +0 -267
  61. package/component/context-menu/package.json +0 -4
  62. package/component/date-picker/README.md +0 -177
  63. package/component/date-picker/package.json +0 -4
  64. package/component/dialog/README.md +0 -237
  65. package/component/dialog/package.json +0 -4
  66. package/component/drawer/README.md +0 -145
  67. package/component/drawer/package.json +0 -4
  68. package/component/dropdown-menu/README.md +0 -311
  69. package/component/dropdown-menu/package.json +0 -4
  70. package/component/editor/README.md +0 -136
  71. package/component/editor/package.json +0 -4
  72. package/component/empty/README.md +0 -183
  73. package/component/empty/package.json +0 -4
  74. package/component/form/README.md +0 -210
  75. package/component/form/package.json +0 -4
  76. package/component/hover-card/README.md +0 -146
  77. package/component/hover-card/package.json +0 -4
  78. package/component/input/README.md +0 -159
  79. package/component/input/package.json +0 -4
  80. package/component/input-group/README.md +0 -239
  81. package/component/input-group/package.json +0 -4
  82. package/component/input-otp/README.md +0 -278
  83. package/component/input-otp/package.json +0 -4
  84. package/component/item/README.md +0 -247
  85. package/component/item/package.json +0 -4
  86. package/component/kanban/README.md +0 -81
  87. package/component/kanban/package.json +0 -4
  88. package/component/kbd/README.md +0 -139
  89. package/component/kbd/package.json +0 -4
  90. package/component/label/README.md +0 -136
  91. package/component/label/package.json +0 -4
  92. package/component/menubar/README.md +0 -269
  93. package/component/menubar/package.json +0 -4
  94. package/component/native-select/README.md +0 -176
  95. package/component/native-select/package.json +0 -4
  96. package/component/navigation-menu/README.md +0 -160
  97. package/component/navigation-menu/package.json +0 -4
  98. package/component/pagination/README.md +0 -144
  99. package/component/pagination/package.json +0 -4
  100. package/component/pillbox/README.md +0 -67
  101. package/component/pillbox/package.json +0 -4
  102. package/component/popover/README.md +0 -43
  103. package/component/popover/package.json +0 -4
  104. package/component/progress/README.md +0 -160
  105. package/component/progress/package.json +0 -4
  106. package/component/radio/README.md +0 -209
  107. package/component/radio/package.json +0 -4
  108. package/component/resizable/README.md +0 -168
  109. package/component/resizable/package.json +0 -4
  110. package/component/scroll-area/README.md +0 -143
  111. package/component/scroll-area/package.json +0 -4
  112. package/component/select/README.md +0 -174
  113. package/component/select/package.json +0 -4
  114. package/component/separator/README.md +0 -170
  115. package/component/separator/package.json +0 -4
  116. package/component/sheet/README.md +0 -183
  117. package/component/sheet/package.json +0 -4
  118. package/component/skeleton/README.md +0 -158
  119. package/component/skeleton/package.json +0 -4
  120. package/component/slider/README.md +0 -207
  121. package/component/slider/package.json +0 -4
  122. package/component/spinner/README.md +0 -160
  123. package/component/spinner/package.json +0 -4
  124. package/component/switch/README.md +0 -166
  125. package/component/switch/package.json +0 -4
  126. package/component/table/README.md +0 -291
  127. package/component/table/package.json +0 -4
  128. package/component/tabs/README.md +0 -219
  129. package/component/tabs/package.json +0 -4
  130. package/component/textarea/README.md +0 -154
  131. package/component/textarea/package.json +0 -4
  132. package/component/timeline/README.md +0 -94
  133. package/component/timeline/package.json +0 -4
  134. package/component/toast/README.md +0 -321
  135. package/component/toast/package.json +0 -4
  136. package/component/toggle/README.md +0 -131
  137. package/component/toggle/package.json +0 -4
  138. package/component/toggle-group/README.md +0 -206
  139. package/component/toggle-group/package.json +0 -4
  140. package/component/tooltip/README.md +0 -211
  141. package/component/tooltip/package.json +0 -4
  142. package/component/utils/package.json +0 -4
  143. package/fesm2022/ojiepermana-angular-component-accordion.mjs +0 -189
  144. package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +0 -1
  145. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +0 -276
  146. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +0 -1
  147. package/fesm2022/ojiepermana-angular-component-alert.mjs +0 -99
  148. package/fesm2022/ojiepermana-angular-component-alert.mjs.map +0 -1
  149. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +0 -37
  150. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +0 -1
  151. package/fesm2022/ojiepermana-angular-component-avatar.mjs +0 -139
  152. package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +0 -1
  153. package/fesm2022/ojiepermana-angular-component-badge.mjs +0 -50
  154. package/fesm2022/ojiepermana-angular-component-badge.mjs.map +0 -1
  155. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +0 -200
  156. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +0 -1
  157. package/fesm2022/ojiepermana-angular-component-button-group.mjs +0 -103
  158. package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +0 -1
  159. package/fesm2022/ojiepermana-angular-component-button.mjs +0 -68
  160. package/fesm2022/ojiepermana-angular-component-button.mjs.map +0 -1
  161. package/fesm2022/ojiepermana-angular-component-calendar.mjs +0 -88
  162. package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +0 -1
  163. package/fesm2022/ojiepermana-angular-component-card.mjs +0 -152
  164. package/fesm2022/ojiepermana-angular-component-card.mjs.map +0 -1
  165. package/fesm2022/ojiepermana-angular-component-carousel.mjs +0 -334
  166. package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +0 -1
  167. package/fesm2022/ojiepermana-angular-component-chart-area.mjs +0 -6
  168. package/fesm2022/ojiepermana-angular-component-chart-area.mjs.map +0 -1
  169. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs +0 -6
  170. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs.map +0 -1
  171. package/fesm2022/ojiepermana-angular-component-chart-line.mjs +0 -6
  172. package/fesm2022/ojiepermana-angular-component-chart-line.mjs.map +0 -1
  173. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs +0 -6
  174. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs.map +0 -1
  175. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs +0 -6
  176. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs.map +0 -1
  177. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs +0 -6
  178. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs.map +0 -1
  179. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs +0 -6
  180. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs.map +0 -1
  181. package/fesm2022/ojiepermana-angular-component-chart.mjs +0 -3925
  182. package/fesm2022/ojiepermana-angular-component-chart.mjs.map +0 -1
  183. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +0 -114
  184. package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +0 -1
  185. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +0 -124
  186. package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +0 -1
  187. package/fesm2022/ojiepermana-angular-component-combobox.mjs +0 -272
  188. package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +0 -1
  189. package/fesm2022/ojiepermana-angular-component-command.mjs +0 -293
  190. package/fesm2022/ojiepermana-angular-component-command.mjs.map +0 -1
  191. package/fesm2022/ojiepermana-angular-component-composer.mjs +0 -352
  192. package/fesm2022/ojiepermana-angular-component-composer.mjs.map +0 -1
  193. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +0 -103
  194. package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +0 -1
  195. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +0 -170
  196. package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +0 -1
  197. package/fesm2022/ojiepermana-angular-component-dialog.mjs +0 -279
  198. package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +0 -1
  199. package/fesm2022/ojiepermana-angular-component-drawer.mjs +0 -6
  200. package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +0 -1
  201. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +0 -492
  202. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +0 -1
  203. package/fesm2022/ojiepermana-angular-component-editor.mjs +0 -717
  204. package/fesm2022/ojiepermana-angular-component-editor.mjs.map +0 -1
  205. package/fesm2022/ojiepermana-angular-component-empty.mjs +0 -145
  206. package/fesm2022/ojiepermana-angular-component-empty.mjs.map +0 -1
  207. package/fesm2022/ojiepermana-angular-component-form.mjs +0 -366
  208. package/fesm2022/ojiepermana-angular-component-form.mjs.map +0 -1
  209. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +0 -297
  210. package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +0 -1
  211. package/fesm2022/ojiepermana-angular-component-input-group.mjs +0 -179
  212. package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +0 -1
  213. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +0 -514
  214. package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +0 -1
  215. package/fesm2022/ojiepermana-angular-component-input.mjs +0 -45
  216. package/fesm2022/ojiepermana-angular-component-input.mjs.map +0 -1
  217. package/fesm2022/ojiepermana-angular-component-item.mjs +0 -264
  218. package/fesm2022/ojiepermana-angular-component-item.mjs.map +0 -1
  219. package/fesm2022/ojiepermana-angular-component-kanban.mjs +0 -314
  220. package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +0 -1
  221. package/fesm2022/ojiepermana-angular-component-kbd.mjs +0 -55
  222. package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +0 -1
  223. package/fesm2022/ojiepermana-angular-component-label.mjs +0 -33
  224. package/fesm2022/ojiepermana-angular-component-label.mjs.map +0 -1
  225. package/fesm2022/ojiepermana-angular-component-menubar.mjs +0 -308
  226. package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +0 -1
  227. package/fesm2022/ojiepermana-angular-component-native-select.mjs +0 -67
  228. package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +0 -1
  229. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +0 -413
  230. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +0 -1
  231. package/fesm2022/ojiepermana-angular-component-pagination.mjs +0 -226
  232. package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +0 -1
  233. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +0 -812
  234. package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +0 -1
  235. package/fesm2022/ojiepermana-angular-component-popover.mjs +0 -169
  236. package/fesm2022/ojiepermana-angular-component-popover.mjs.map +0 -1
  237. package/fesm2022/ojiepermana-angular-component-progress.mjs +0 -60
  238. package/fesm2022/ojiepermana-angular-component-progress.mjs.map +0 -1
  239. package/fesm2022/ojiepermana-angular-component-radio.mjs +0 -122
  240. package/fesm2022/ojiepermana-angular-component-radio.mjs.map +0 -1
  241. package/fesm2022/ojiepermana-angular-component-resizable.mjs +0 -481
  242. package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +0 -1
  243. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +0 -54
  244. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +0 -1
  245. package/fesm2022/ojiepermana-angular-component-select.mjs +0 -176
  246. package/fesm2022/ojiepermana-angular-component-select.mjs.map +0 -1
  247. package/fesm2022/ojiepermana-angular-component-separator.mjs +0 -37
  248. package/fesm2022/ojiepermana-angular-component-separator.mjs.map +0 -1
  249. package/fesm2022/ojiepermana-angular-component-sheet.mjs +0 -284
  250. package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +0 -1
  251. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +0 -31
  252. package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +0 -1
  253. package/fesm2022/ojiepermana-angular-component-slider.mjs +0 -423
  254. package/fesm2022/ojiepermana-angular-component-slider.mjs.map +0 -1
  255. package/fesm2022/ojiepermana-angular-component-spinner.mjs +0 -60
  256. package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +0 -1
  257. package/fesm2022/ojiepermana-angular-component-switch.mjs +0 -116
  258. package/fesm2022/ojiepermana-angular-component-switch.mjs.map +0 -1
  259. package/fesm2022/ojiepermana-angular-component-table.mjs +0 -155
  260. package/fesm2022/ojiepermana-angular-component-table.mjs.map +0 -1
  261. package/fesm2022/ojiepermana-angular-component-tabs.mjs +0 -272
  262. package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +0 -1
  263. package/fesm2022/ojiepermana-angular-component-textarea.mjs +0 -39
  264. package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +0 -1
  265. package/fesm2022/ojiepermana-angular-component-timeline.mjs +0 -237
  266. package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +0 -1
  267. package/fesm2022/ojiepermana-angular-component-toast.mjs +0 -71
  268. package/fesm2022/ojiepermana-angular-component-toast.mjs.map +0 -1
  269. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +0 -289
  270. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +0 -1
  271. package/fesm2022/ojiepermana-angular-component-toggle.mjs +0 -82
  272. package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +0 -1
  273. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +0 -354
  274. package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +0 -1
  275. package/fesm2022/ojiepermana-angular-component-utils.mjs +0 -13
  276. package/fesm2022/ojiepermana-angular-component-utils.mjs.map +0 -1
  277. package/fesm2022/ojiepermana-angular-generator-api.mjs +0 -68
  278. package/fesm2022/ojiepermana-angular-generator-api.mjs.map +0 -1
  279. package/fesm2022/ojiepermana-angular-layout-component.mjs +0 -602
  280. package/fesm2022/ojiepermana-angular-layout-component.mjs.map +0 -1
  281. package/fesm2022/ojiepermana-angular-layout-provider.mjs +0 -21
  282. package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +0 -1
  283. package/fesm2022/ojiepermana-angular-layout-services.mjs +0 -116
  284. package/fesm2022/ojiepermana-angular-layout-services.mjs.map +0 -1
  285. package/fesm2022/ojiepermana-angular-layout-shell.mjs +0 -48
  286. package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +0 -1
  287. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +0 -30
  288. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +0 -1
  289. package/fesm2022/ojiepermana-angular-layout-token.mjs +0 -33
  290. package/fesm2022/ojiepermana-angular-layout-token.mjs.map +0 -1
  291. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs +0 -49
  292. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +0 -1
  293. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs +0 -128
  294. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +0 -1
  295. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs +0 -123
  296. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +0 -1
  297. package/fesm2022/ojiepermana-angular-layout.mjs +0 -485
  298. package/fesm2022/ojiepermana-angular-layout.mjs.map +0 -1
  299. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs +0 -334
  300. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +0 -1
  301. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +0 -63
  302. package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +0 -1
  303. package/fesm2022/ojiepermana-angular-navigation-item.mjs +0 -559
  304. package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +0 -1
  305. package/fesm2022/ojiepermana-angular-navigation-service.mjs +0 -213
  306. package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +0 -1
  307. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +0 -401
  308. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +0 -1
  309. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +0 -670
  310. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +0 -1
  311. package/fesm2022/ojiepermana-angular-navigation-types.mjs +0 -4
  312. package/fesm2022/ojiepermana-angular-navigation-types.mjs.map +0 -1
  313. package/fesm2022/ojiepermana-angular-theme-provider.mjs +0 -35
  314. package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +0 -1
  315. package/fesm2022/ojiepermana-angular-theme-services.mjs +0 -294
  316. package/fesm2022/ojiepermana-angular-theme-services.mjs.map +0 -1
  317. package/fesm2022/ojiepermana-angular-theme-token.mjs +0 -56
  318. package/fesm2022/ojiepermana-angular-theme-token.mjs.map +0 -1
  319. package/fesm2022/ojiepermana-angular-theme.mjs.map +0 -1
  320. package/fesm2022/ojiepermana-angular.mjs.map +0 -1
  321. package/generator/api/README.md +0 -252
  322. package/generator/api/bin/package.json +0 -3
  323. package/generator/api/bin/schematics/init/index.js +0 -90
  324. package/generator/api/bin/schematics/ng-add/index.js +0 -131
  325. package/generator/api/bin/schematics/sdk/index.js +0 -76
  326. package/generator/api/bin/src/config/loader.js +0 -41
  327. package/generator/api/bin/src/config/schema.js +0 -57
  328. package/generator/api/bin/src/emit/client.js +0 -248
  329. package/generator/api/bin/src/emit/metadata.js +0 -295
  330. package/generator/api/bin/src/emit/models.js +0 -106
  331. package/generator/api/bin/src/emit/navigation.js +0 -56
  332. package/generator/api/bin/src/emit/operations.js +0 -122
  333. package/generator/api/bin/src/emit/public-api.js +0 -54
  334. package/generator/api/bin/src/emit/services.js +0 -87
  335. package/generator/api/bin/src/engine.js +0 -65
  336. package/generator/api/bin/src/layout/per-domain.js +0 -359
  337. package/generator/api/bin/src/parser/bundle.js +0 -25
  338. package/generator/api/bin/src/parser/ir.js +0 -320
  339. package/generator/api/bin/src/parser/types.js +0 -7
  340. package/generator/api/bin/src/render/template.js +0 -58
  341. package/generator/api/bin/src/writer/index.js +0 -278
  342. package/generator/api/package.json +0 -4
  343. package/generator/api/schematics/init/schema.json +0 -19
  344. package/generator/api/schematics/ng-add/schema.json +0 -14
  345. package/generator/api/schematics/sdk/schema.json +0 -19
  346. package/generator/api/sdk.config.example.json +0 -24
  347. package/generator/guide/README.md +0 -84
  348. package/generator/guide/bin/package.json +0 -3
  349. package/generator/guide/bin/schematics/build/index.js +0 -36
  350. package/generator/guide/bin/schematics/init/index.js +0 -70
  351. package/generator/guide/bin/src/config/loader.js +0 -50
  352. package/generator/guide/bin/src/config/schema.js +0 -12
  353. package/generator/guide/bin/src/engine/component.js +0 -74
  354. package/generator/guide/bin/src/engine/frontmatter.js +0 -42
  355. package/generator/guide/bin/src/engine/index.js +0 -42
  356. package/generator/guide/bin/src/engine/naming.js +0 -39
  357. package/generator/guide/bin/src/engine/render.js +0 -36
  358. package/generator/guide/bin/src/engine/routes.js +0 -106
  359. package/generator/guide/bin/src/engine/walk.js +0 -35
  360. package/generator/guide/guide.config.example.json +0 -9
  361. package/generator/guide/schematics/build/schema.json +0 -14
  362. package/generator/guide/schematics/init/schema.json +0 -19
  363. package/layout/component/package.json +0 -4
  364. package/layout/package.json +0 -4
  365. package/layout/provider/package.json +0 -4
  366. package/layout/services/package.json +0 -4
  367. package/layout/shell/package.json +0 -4
  368. package/layout/token/directive/package.json +0 -4
  369. package/layout/token/package.json +0 -4
  370. package/layout/type/empty/package.json +0 -4
  371. package/layout/type/horizontal/package.json +0 -4
  372. package/layout/type/vertical/package.json +0 -4
  373. package/navigation/demo-data/package.json +0 -4
  374. package/navigation/icon/package.json +0 -4
  375. package/navigation/item/package.json +0 -4
  376. package/navigation/service/package.json +0 -4
  377. package/navigation/sidebar/package.json +0 -4
  378. package/navigation/topbar/README.md +0 -196
  379. package/navigation/topbar/package.json +0 -4
  380. package/navigation/types/package.json +0 -4
  381. package/theme/README.md +0 -174
  382. package/theme/package.json +0 -4
  383. package/theme/provider/package.json +0 -4
  384. package/theme/services/package.json +0 -4
  385. package/theme/styles/foundation/components.css +0 -81
  386. package/theme/styles/foundation/layers.css +0 -15
  387. package/theme/styles/foundation/tokens.css +0 -55
  388. package/theme/styles/index.css +0 -37
  389. package/theme/styles/integrations/material/autocomplete.css +0 -178
  390. package/theme/styles/integrations/material/button.css +0 -468
  391. package/theme/styles/integrations/material/dialog.css +0 -152
  392. package/theme/styles/integrations/material/select.css +0 -175
  393. package/theme/styles/integrations/material/slide-toggle.css +0 -234
  394. package/theme/styles/integrations/material/slider.css +0 -194
  395. package/theme/styles/integrations/material/tabs.css +0 -229
  396. package/theme/styles/integrations/material.css +0 -264
  397. package/theme/styles/integrations/tailwind.css +0 -114
  398. package/theme/styles/variants/color/amber.css +0 -31
  399. package/theme/styles/variants/color/base.css +0 -36
  400. package/theme/styles/variants/color/blue.css +0 -31
  401. package/theme/styles/variants/color/cyan.css +0 -31
  402. package/theme/styles/variants/color/emerald.css +0 -31
  403. package/theme/styles/variants/color/fuchsia.css +0 -31
  404. package/theme/styles/variants/color/green.css +0 -31
  405. package/theme/styles/variants/color/index.css +0 -22
  406. package/theme/styles/variants/color/indigo.css +0 -31
  407. package/theme/styles/variants/color/lime.css +0 -31
  408. package/theme/styles/variants/color/orange.css +0 -31
  409. package/theme/styles/variants/color/pink.css +0 -31
  410. package/theme/styles/variants/color/purple.css +0 -31
  411. package/theme/styles/variants/color/red.css +0 -31
  412. package/theme/styles/variants/color/rose.css +0 -31
  413. package/theme/styles/variants/color/sky.css +0 -31
  414. package/theme/styles/variants/color/teal.css +0 -31
  415. package/theme/styles/variants/color/violet.css +0 -31
  416. package/theme/styles/variants/color/yellow.css +0 -31
  417. package/theme/styles/variants/mode/dark.css +0 -20
  418. package/theme/styles/variants/mode/index.css +0 -6
  419. package/theme/styles/variants/mode/light.css +0 -24
  420. package/theme/styles/variants/style/brutal.css +0 -50
  421. package/theme/styles/variants/style/default.css +0 -54
  422. package/theme/styles/variants/style/index.css +0 -8
  423. package/theme/styles/variants/style/sharp.css +0 -50
  424. package/theme/styles/variants/style/soft.css +0 -50
  425. package/theme/token/package.json +0 -4
  426. package/types/ojiepermana-angular-component-accordion.d.ts +0 -51
  427. package/types/ojiepermana-angular-component-alert-dialog.d.ts +0 -93
  428. package/types/ojiepermana-angular-component-alert.d.ts +0 -37
  429. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +0 -12
  430. package/types/ojiepermana-angular-component-avatar.d.ts +0 -51
  431. package/types/ojiepermana-angular-component-badge.d.ts +0 -19
  432. package/types/ojiepermana-angular-component-breadcrumb.d.ts +0 -46
  433. package/types/ojiepermana-angular-component-button-group.d.ts +0 -26
  434. package/types/ojiepermana-angular-component-button.d.ts +0 -22
  435. package/types/ojiepermana-angular-component-calendar.d.ts +0 -33
  436. package/types/ojiepermana-angular-component-card.d.ts +0 -60
  437. package/types/ojiepermana-angular-component-carousel.d.ts +0 -86
  438. package/types/ojiepermana-angular-component-chart-area.d.ts +0 -1
  439. package/types/ojiepermana-angular-component-chart-bar.d.ts +0 -1
  440. package/types/ojiepermana-angular-component-chart-line.d.ts +0 -1
  441. package/types/ojiepermana-angular-component-chart-pie.d.ts +0 -1
  442. package/types/ojiepermana-angular-component-chart-radar.d.ts +0 -1
  443. package/types/ojiepermana-angular-component-chart-radial.d.ts +0 -1
  444. package/types/ojiepermana-angular-component-chart-scatter.d.ts +0 -1
  445. package/types/ojiepermana-angular-component-chart.d.ts +0 -1094
  446. package/types/ojiepermana-angular-component-checkbox.d.ts +0 -35
  447. package/types/ojiepermana-angular-component-collapsible.d.ts +0 -42
  448. package/types/ojiepermana-angular-component-combobox.d.ts +0 -50
  449. package/types/ojiepermana-angular-component-command.d.ts +0 -99
  450. package/types/ojiepermana-angular-component-composer.d.ts +0 -90
  451. package/types/ojiepermana-angular-component-context-menu.d.ts +0 -35
  452. package/types/ojiepermana-angular-component-date-picker.d.ts +0 -41
  453. package/types/ojiepermana-angular-component-dialog.d.ts +0 -87
  454. package/types/ojiepermana-angular-component-drawer.d.ts +0 -1
  455. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +0 -137
  456. package/types/ojiepermana-angular-component-editor.d.ts +0 -123
  457. package/types/ojiepermana-angular-component-empty.d.ts +0 -50
  458. package/types/ojiepermana-angular-component-form.d.ts +0 -141
  459. package/types/ojiepermana-angular-component-hover-card.d.ts +0 -74
  460. package/types/ojiepermana-angular-component-input-group.d.ts +0 -51
  461. package/types/ojiepermana-angular-component-input-otp.d.ts +0 -136
  462. package/types/ojiepermana-angular-component-input.d.ts +0 -16
  463. package/types/ojiepermana-angular-component-item.d.ts +0 -88
  464. package/types/ojiepermana-angular-component-kanban.d.ts +0 -70
  465. package/types/ojiepermana-angular-component-kbd.d.ts +0 -16
  466. package/types/ojiepermana-angular-component-label.d.ts +0 -11
  467. package/types/ojiepermana-angular-component-menubar.d.ts +0 -67
  468. package/types/ojiepermana-angular-component-native-select.d.ts +0 -26
  469. package/types/ojiepermana-angular-component-navigation-menu.d.ts +0 -96
  470. package/types/ojiepermana-angular-component-pagination.d.ts +0 -33
  471. package/types/ojiepermana-angular-component-pillbox.d.ts +0 -157
  472. package/types/ojiepermana-angular-component-popover.d.ts +0 -43
  473. package/types/ojiepermana-angular-component-progress.d.ts +0 -17
  474. package/types/ojiepermana-angular-component-radio.d.ts +0 -40
  475. package/types/ojiepermana-angular-component-resizable.d.ts +0 -99
  476. package/types/ojiepermana-angular-component-scroll-area.d.ts +0 -19
  477. package/types/ojiepermana-angular-component-select.d.ts +0 -57
  478. package/types/ojiepermana-angular-component-separator.d.ts +0 -14
  479. package/types/ojiepermana-angular-component-sheet.d.ts +0 -76
  480. package/types/ojiepermana-angular-component-skeleton.d.ts +0 -10
  481. package/types/ojiepermana-angular-component-slider.d.ts +0 -74
  482. package/types/ojiepermana-angular-component-spinner.d.ts +0 -13
  483. package/types/ojiepermana-angular-component-switch.d.ts +0 -40
  484. package/types/ojiepermana-angular-component-table.d.ts +0 -52
  485. package/types/ojiepermana-angular-component-tabs.d.ts +0 -92
  486. package/types/ojiepermana-angular-component-textarea.d.ts +0 -12
  487. package/types/ojiepermana-angular-component-timeline.d.ts +0 -63
  488. package/types/ojiepermana-angular-component-toast.d.ts +0 -38
  489. package/types/ojiepermana-angular-component-toggle-group.d.ts +0 -89
  490. package/types/ojiepermana-angular-component-toggle.d.ts +0 -25
  491. package/types/ojiepermana-angular-component-tooltip.d.ts +0 -89
  492. package/types/ojiepermana-angular-component-utils.d.ts +0 -5
  493. package/types/ojiepermana-angular-generator-api.d.ts +0 -86
  494. package/types/ojiepermana-angular-layout-component.d.ts +0 -205
  495. package/types/ojiepermana-angular-layout-provider.d.ts +0 -6
  496. package/types/ojiepermana-angular-layout-services.d.ts +0 -25
  497. package/types/ojiepermana-angular-layout-shell.d.ts +0 -8
  498. package/types/ojiepermana-angular-layout-token-directive.d.ts +0 -13
  499. package/types/ojiepermana-angular-layout-token.d.ts +0 -36
  500. package/types/ojiepermana-angular-layout-type-empty.d.ts +0 -22
  501. package/types/ojiepermana-angular-layout-type-horizontal.d.ts +0 -36
  502. package/types/ojiepermana-angular-layout-type-vertical.d.ts +0 -38
  503. package/types/ojiepermana-angular-layout.d.ts +0 -164
  504. package/types/ojiepermana-angular-navigation-demo-data.d.ts +0 -5
  505. package/types/ojiepermana-angular-navigation-icon.d.ts +0 -17
  506. package/types/ojiepermana-angular-navigation-item.d.ts +0 -54
  507. package/types/ojiepermana-angular-navigation-service.d.ts +0 -77
  508. package/types/ojiepermana-angular-navigation-sidebar.d.ts +0 -75
  509. package/types/ojiepermana-angular-navigation-topbar.d.ts +0 -74
  510. package/types/ojiepermana-angular-navigation-types.d.ts +0 -135
  511. package/types/ojiepermana-angular-theme-provider.d.ts +0 -11
  512. package/types/ojiepermana-angular-theme-services.d.ts +0 -55
  513. package/types/ojiepermana-angular-theme-token.d.ts +0 -57
@@ -1,413 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { TemplatePortal } from '@angular/cdk/portal';
3
- import * as i0 from '@angular/core';
4
- import { inject, ElementRef, input, Directive, contentChildren, signal, computed, ChangeDetectionStrategy, Component, TemplateRef, output, ViewContainerRef, DestroyRef, forwardRef } from '@angular/core';
5
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
- import { cn } from '@ojiepermana/angular/component/utils';
7
- import { merge } from 'rxjs';
8
- import { filter } from 'rxjs/operators';
9
-
10
- function position(align, side) {
11
- const originX = align === 'start' ? 'start' : align === 'end' ? 'end' : 'center';
12
- if (side === 'bottom') {
13
- return {
14
- originX,
15
- originY: 'bottom',
16
- overlayX: originX,
17
- overlayY: 'top',
18
- offsetY: 8,
19
- };
20
- }
21
- return {
22
- originX,
23
- originY: 'top',
24
- overlayX: originX,
25
- overlayY: 'bottom',
26
- offsetY: -8,
27
- };
28
- }
29
- class NavigationMenuRootItem {
30
- elementRef = inject(ElementRef);
31
- disabled = input(false, /* @ts-ignore */
32
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
33
- isWithin(container) {
34
- return container.contains(this.elementRef.nativeElement);
35
- }
36
- focus() {
37
- this.elementRef.nativeElement.focus();
38
- }
39
- containsTarget(target) {
40
- return target instanceof Node && this.elementRef.nativeElement.contains(target);
41
- }
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuRootItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
43
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: NavigationMenuRootItem, isStandalone: true, inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
44
- }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuRootItem, decorators: [{
46
- type: Directive
47
- }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
48
- class NavigationMenuComponent {
49
- class = input('', /* @ts-ignore */
50
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
51
- ariaLabel = input('Main navigation', /* @ts-ignore */
52
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
53
- loop = input(true, /* @ts-ignore */
54
- ...(ngDevMode ? [{ debugName: "loop" }] : /* istanbul ignore next */ []));
55
- items = contentChildren(NavigationMenuRootItem, { ...(ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {}), descendants: true });
56
- host = inject(ElementRef);
57
- activeItem = signal(null, /* @ts-ignore */
58
- ...(ngDevMode ? [{ debugName: "activeItem" }] : /* istanbul ignore next */ []));
59
- openTrigger = signal(null, /* @ts-ignore */
60
- ...(ngDevMode ? [{ debugName: "openTrigger" }] : /* istanbul ignore next */ []));
61
- classes = computed(() => cn('relative z-10 flex max-w-max flex-1 items-center justify-center', this.class()), /* @ts-ignore */
62
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
63
- setActiveItem(item) {
64
- if (item.disabled()) {
65
- return;
66
- }
67
- this.activeItem.set(item);
68
- }
69
- tabIndexFor(item) {
70
- if (item.disabled()) {
71
- return -1;
72
- }
73
- const enabledItems = this.enabledItems();
74
- if (enabledItems.length === 0) {
75
- return -1;
76
- }
77
- const activeItem = this.activeItem();
78
- const resolvedActiveItem = activeItem && enabledItems.includes(activeItem) ? activeItem : enabledItems[0];
79
- return resolvedActiveItem === item ? 0 : -1;
80
- }
81
- hasOpenTrigger(except) {
82
- const currentOpenTrigger = this.openTrigger();
83
- return !!currentOpenTrigger && currentOpenTrigger !== except;
84
- }
85
- notifyOpen(trigger) {
86
- const currentOpenTrigger = this.openTrigger();
87
- if (currentOpenTrigger && currentOpenTrigger !== trigger) {
88
- currentOpenTrigger.close({ restoreFocus: false });
89
- }
90
- this.openTrigger.set(trigger);
91
- this.setActiveItem(trigger);
92
- }
93
- notifyClosed(trigger) {
94
- if (this.openTrigger() === trigger) {
95
- this.openTrigger.set(null);
96
- }
97
- }
98
- onKeydown(event) {
99
- const currentItem = this.resolveItem(event.target);
100
- if (!currentItem) {
101
- return;
102
- }
103
- if (event.key === 'ArrowDown' && currentItem instanceof NavigationMenuTriggerDirective) {
104
- event.preventDefault();
105
- currentItem.open({ focusFirstItem: true });
106
- return;
107
- }
108
- if (event.key === 'Home' || event.key === 'End') {
109
- event.preventDefault();
110
- this.moveFocus(currentItem, event.key === 'Home' ? 'start' : 'end');
111
- return;
112
- }
113
- if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {
114
- event.preventDefault();
115
- this.moveFocus(currentItem, event.key === 'ArrowRight' ? 'next' : 'previous');
116
- }
117
- }
118
- enabledItems() {
119
- return this.items().filter((item) => !item.disabled() && item.isWithin(this.host.nativeElement));
120
- }
121
- resolveItem(target) {
122
- return this.enabledItems().find((item) => item.containsTarget(target)) ?? null;
123
- }
124
- moveFocus(currentItem, direction) {
125
- const enabledItems = this.enabledItems();
126
- if (enabledItems.length === 0) {
127
- return;
128
- }
129
- const currentIndex = enabledItems.indexOf(currentItem);
130
- if (currentIndex === -1) {
131
- enabledItems[0]?.focus();
132
- return;
133
- }
134
- const nextItem = direction === 'start'
135
- ? enabledItems[0]
136
- : direction === 'end'
137
- ? enabledItems[enabledItems.length - 1]
138
- : enabledItems[this.nextIndex(currentIndex, direction === 'next' ? this.horizontalStep() : -this.horizontalStep(), enabledItems.length)];
139
- if (!nextItem || nextItem === currentItem) {
140
- return;
141
- }
142
- const currentOpenTrigger = this.openTrigger();
143
- if (!currentOpenTrigger) {
144
- nextItem.focus();
145
- this.setActiveItem(nextItem);
146
- return;
147
- }
148
- if (nextItem instanceof NavigationMenuTriggerDirective) {
149
- nextItem.open({ focusFirstItem: true });
150
- return;
151
- }
152
- currentOpenTrigger.close({ restoreFocus: false });
153
- this.setActiveItem(nextItem);
154
- queueMicrotask(() => nextItem.focus());
155
- }
156
- nextIndex(currentIndex, delta, length) {
157
- const rawIndex = currentIndex + delta;
158
- if (this.loop()) {
159
- return (rawIndex + length) % length;
160
- }
161
- return Math.max(0, Math.min(length - 1, rawIndex));
162
- }
163
- horizontalStep() {
164
- return getComputedStyle(this.host.nativeElement).direction === 'rtl' ? -1 : 1;
165
- }
166
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
167
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: NavigationMenuComponent, isStandalone: true, selector: "ui-navigation-menu", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeydown($any($event))" }, properties: { "class": "classes()", "attr.role": "\"navigation\"", "attr.aria-label": "ariaLabel() || null" } }, queries: [{ propertyName: "items", predicate: NavigationMenuRootItem, descendants: true, isSignal: true }], ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
168
- }
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuComponent, decorators: [{
170
- type: Component,
171
- args: [{
172
- selector: 'ui-navigation-menu',
173
- changeDetection: ChangeDetectionStrategy.OnPush,
174
- host: {
175
- '[class]': 'classes()',
176
- '[attr.role]': '"navigation"',
177
- '[attr.aria-label]': 'ariaLabel() || null',
178
- '(keydown)': 'onKeydown($any($event))',
179
- },
180
- template: `<ng-content />`,
181
- }]
182
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => NavigationMenuRootItem), { ...{ descendants: true }, isSignal: true }] }] } });
183
- class NavigationMenuListComponent {
184
- class = input('', /* @ts-ignore */
185
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
186
- classes = computed(() => cn('group flex flex-1 list-none items-center justify-center gap-1', this.class()), /* @ts-ignore */
187
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
188
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
189
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: NavigationMenuListComponent, isStandalone: true, selector: "ui-navigation-menu-list", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"menubar\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
190
- }
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuListComponent, decorators: [{
192
- type: Component,
193
- args: [{
194
- selector: 'ui-navigation-menu-list',
195
- changeDetection: ChangeDetectionStrategy.OnPush,
196
- host: {
197
- '[class]': 'classes()',
198
- '[attr.role]': '"menubar"',
199
- },
200
- template: `<ng-content />`,
201
- }]
202
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
203
- class NavigationMenuItemComponent {
204
- class = input('', /* @ts-ignore */
205
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
206
- classes = computed(() => cn('relative', this.class()), /* @ts-ignore */
207
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
208
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
209
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: NavigationMenuItemComponent, isStandalone: true, selector: "ui-navigation-menu-item", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
210
- }
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuItemComponent, decorators: [{
212
- type: Component,
213
- args: [{
214
- selector: 'ui-navigation-menu-item',
215
- changeDetection: ChangeDetectionStrategy.OnPush,
216
- host: {
217
- '[class]': 'classes()',
218
- },
219
- template: `<ng-content />`,
220
- }]
221
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
222
- class NavigationMenuContentDirective {
223
- template = inject(TemplateRef);
224
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
225
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: NavigationMenuContentDirective, isStandalone: true, selector: "ng-template[uiNavigationMenuContent]", exportAs: ["uiNavigationMenuContent"], ngImport: i0 });
226
- }
227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuContentDirective, decorators: [{
228
- type: Directive,
229
- args: [{
230
- selector: 'ng-template[uiNavigationMenuContent]',
231
- exportAs: 'uiNavigationMenuContent',
232
- }]
233
- }] });
234
- class NavigationMenuTriggerDirective extends NavigationMenuRootItem {
235
- uiNavigationMenuTrigger = input.required(/* @ts-ignore */
236
- ...(ngDevMode ? [{ debugName: "uiNavigationMenuTrigger" }] : /* istanbul ignore next */ []));
237
- align = input('start', /* @ts-ignore */
238
- ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
239
- class = input('', /* @ts-ignore */
240
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
241
- openedChange = output();
242
- isOpen = signal(false, /* @ts-ignore */
243
- ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
244
- overlay = inject(Overlay);
245
- vcr = inject(ViewContainerRef);
246
- navigationMenu = inject(NavigationMenuComponent, { optional: true });
247
- destroyRef = inject(DestroyRef);
248
- overlayRef = null;
249
- classes = computed(() => cn('group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors', 'after:mb-0.5 after:ml-2 after:inline-block after:h-2 after:w-2 after:shrink-0 after:rotate-45 after:border-b after:border-r after:border-current after:transition-transform after:content-[""]', 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', 'disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:after:-rotate-135', this.class()), /* @ts-ignore */
250
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
251
- toggle() {
252
- if (this.disabled()) {
253
- return;
254
- }
255
- this.isOpen() ? this.close() : this.open();
256
- }
257
- open(options = {}) {
258
- if (this.isOpen() || this.disabled()) {
259
- return;
260
- }
261
- this.navigationMenu?.notifyOpen(this);
262
- const overlayRef = this.overlay.create({
263
- positionStrategy: this.overlay
264
- .position()
265
- .flexibleConnectedTo(this.elementRef)
266
- .withFlexibleDimensions(false)
267
- .withPush(false)
268
- .withPositions([position(this.align(), 'bottom'), position(this.align(), 'top')]),
269
- scrollStrategy: this.overlay.scrollStrategies.reposition(),
270
- hasBackdrop: false,
271
- panelClass: 'ui-navigation-menu-panel',
272
- });
273
- const portal = new TemplatePortal(this.uiNavigationMenuTrigger().template, this.vcr);
274
- overlayRef.attach(portal);
275
- this.overlayRef = overlayRef;
276
- merge(overlayRef
277
- .outsidePointerEvents()
278
- .pipe(filter((event) => !this.elementRef.nativeElement.contains(event.target))), overlayRef.keydownEvents().pipe(filter((event) => event.key === 'Escape')), overlayRef.detachments())
279
- .pipe(takeUntilDestroyed(this.destroyRef))
280
- .subscribe(() => this.close());
281
- this.isOpen.set(true);
282
- this.openedChange.emit(true);
283
- if (options.focusFirstItem) {
284
- queueMicrotask(() => this.focusFirstItem());
285
- }
286
- }
287
- close(options = {}) {
288
- const { restoreFocus = true } = options;
289
- if (!this.isOpen()) {
290
- return;
291
- }
292
- const overlayRef = this.overlayRef;
293
- this.overlayRef = null;
294
- this.isOpen.set(false);
295
- this.openedChange.emit(false);
296
- this.navigationMenu?.notifyClosed(this);
297
- overlayRef?.dispose();
298
- if (restoreFocus) {
299
- this.elementRef.nativeElement.focus();
300
- }
301
- }
302
- tabIndex() {
303
- return this.navigationMenu?.tabIndexFor(this) ?? (this.disabled() ? -1 : 0);
304
- }
305
- openFromKeyboard(event, focusFirstItem) {
306
- if (this.disabled()) {
307
- return;
308
- }
309
- event.preventDefault();
310
- this.open({ focusFirstItem });
311
- }
312
- syncActiveState() {
313
- this.navigationMenu?.setActiveItem(this);
314
- }
315
- openFromHover() {
316
- if (this.disabled() || !this.navigationMenu?.hasOpenTrigger(this)) {
317
- return;
318
- }
319
- this.open();
320
- }
321
- focusFirstItem() {
322
- const overlayElement = this.overlayRef?.overlayElement;
323
- if (!overlayElement) {
324
- return;
325
- }
326
- const firstItem = overlayElement.querySelector('a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])');
327
- firstItem?.focus();
328
- }
329
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuTriggerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
330
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: NavigationMenuTriggerDirective, isStandalone: true, selector: "[uiNavigationMenuTrigger]", inputs: { uiNavigationMenuTrigger: { classPropertyName: "uiNavigationMenuTrigger", publicName: "uiNavigationMenuTrigger", isSignal: true, isRequired: true, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openedChange: "openedChange" }, host: { listeners: { "click": "toggle()", "keydown.enter": "openFromKeyboard($any($event), false)", "keydown.space": "openFromKeyboard($any($event), false)", "keydown.arrowDown": "openFromKeyboard($any($event), true)", "focus": "syncActiveState()", "mouseenter": "openFromHover()" }, properties: { "class": "classes()", "attr.role": "\"menuitem\"", "attr.aria-haspopup": "\"menu\"", "attr.aria-expanded": "isOpen()", "attr.data-state": "isOpen() ? \"open\" : \"closed\"", "attr.tabindex": "tabIndex()", "attr.disabled": "disabled() ? \"\" : null" } }, providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuTriggerDirective) }], exportAs: ["uiNavigationMenuTrigger"], usesInheritance: true, ngImport: i0 });
331
- }
332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuTriggerDirective, decorators: [{
333
- type: Directive,
334
- args: [{
335
- selector: '[uiNavigationMenuTrigger]',
336
- exportAs: 'uiNavigationMenuTrigger',
337
- providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuTriggerDirective) }],
338
- host: {
339
- '[class]': 'classes()',
340
- '[attr.role]': '"menuitem"',
341
- '[attr.aria-haspopup]': '"menu"',
342
- '[attr.aria-expanded]': 'isOpen()',
343
- '[attr.data-state]': 'isOpen() ? "open" : "closed"',
344
- '[attr.tabindex]': 'tabIndex()',
345
- '[attr.disabled]': 'disabled() ? "" : null',
346
- '(click)': 'toggle()',
347
- '(keydown.enter)': 'openFromKeyboard($any($event), false)',
348
- '(keydown.space)': 'openFromKeyboard($any($event), false)',
349
- '(keydown.arrowDown)': 'openFromKeyboard($any($event), true)',
350
- '(focus)': 'syncActiveState()',
351
- '(mouseenter)': 'openFromHover()',
352
- },
353
- }]
354
- }], propDecorators: { uiNavigationMenuTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiNavigationMenuTrigger", required: true }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }] } });
355
- class NavigationMenuLinkDirective extends NavigationMenuRootItem {
356
- class = input('', /* @ts-ignore */
357
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
358
- variant = input('content', /* @ts-ignore */
359
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
360
- navigationMenu = inject(NavigationMenuComponent, { optional: true });
361
- classes = computed(() => this.variant() === 'trigger'
362
- ? cn('inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors', 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', 'aria-disabled:pointer-events-none aria-disabled:opacity-50', this.class())
363
- : cn('block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors', 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring', 'aria-disabled:pointer-events-none aria-disabled:opacity-50', this.class()), /* @ts-ignore */
364
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
365
- tabIndex() {
366
- if (this.variant() !== 'trigger') {
367
- return this.disabled() ? -1 : 0;
368
- }
369
- return this.navigationMenu?.tabIndexFor(this) ?? (this.disabled() ? -1 : 0);
370
- }
371
- focus() {
372
- if (this.variant() === 'trigger' && this.elementRef.nativeElement.tabIndex < 0) {
373
- this.elementRef.nativeElement.tabIndex = 0;
374
- }
375
- super.focus();
376
- }
377
- syncActiveState() {
378
- if (this.variant() === 'trigger') {
379
- this.navigationMenu?.setActiveItem(this);
380
- }
381
- }
382
- preventDisabled(event) {
383
- if (this.disabled()) {
384
- event.preventDefault();
385
- }
386
- }
387
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuLinkDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
388
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: NavigationMenuLinkDirective, isStandalone: true, selector: "a[uiNavigationMenuLink], button[uiNavigationMenuLink]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focus": "syncActiveState()", "click": "preventDisabled($any($event))" }, properties: { "class": "classes()", "attr.role": "\"menuitem\"", "attr.tabindex": "tabIndex()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.data-variant": "variant()" } }, providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuLinkDirective) }], exportAs: ["uiNavigationMenuLink"], usesInheritance: true, ngImport: i0 });
389
- }
390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuLinkDirective, decorators: [{
391
- type: Directive,
392
- args: [{
393
- selector: 'a[uiNavigationMenuLink], button[uiNavigationMenuLink]',
394
- exportAs: 'uiNavigationMenuLink',
395
- providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuLinkDirective) }],
396
- host: {
397
- '[class]': 'classes()',
398
- '[attr.role]': '"menuitem"',
399
- '[attr.tabindex]': 'tabIndex()',
400
- '[attr.aria-disabled]': 'disabled() ? "true" : null',
401
- '[attr.data-variant]': 'variant()',
402
- '(focus)': 'syncActiveState()',
403
- '(click)': 'preventDisabled($any($event))',
404
- },
405
- }]
406
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
407
-
408
- /**
409
- * Generated bundle index. Do not edit.
410
- */
411
-
412
- export { NavigationMenuComponent, NavigationMenuContentDirective, NavigationMenuItemComponent, NavigationMenuLinkDirective, NavigationMenuListComponent, NavigationMenuRootItem, NavigationMenuTriggerDirective };
413
- //# sourceMappingURL=ojiepermana-angular-component-navigation-menu.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-navigation-menu.mjs","sources":["../../../projects/angular/component/navigation-menu/navigation-menu.component.ts","../../../projects/angular/component/navigation-menu/ojiepermana-angular-component-navigation-menu.ts"],"sourcesContent":["import { ConnectedPosition, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Directive,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n computed,\n contentChildren,\n forwardRef,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { cn } from '@ojiepermana/angular/component/utils';\nimport { merge } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nexport type NavigationMenuAlign = 'start' | 'center' | 'end';\nexport type NavigationMenuLinkVariant = 'trigger' | 'content';\n\nfunction position(align: NavigationMenuAlign, side: 'bottom' | 'top'): ConnectedPosition {\n const originX = align === 'start' ? 'start' : align === 'end' ? 'end' : 'center';\n\n if (side === 'bottom') {\n return {\n originX,\n originY: 'bottom',\n overlayX: originX,\n overlayY: 'top',\n offsetY: 8,\n };\n }\n\n return {\n originX,\n originY: 'top',\n overlayX: originX,\n overlayY: 'bottom',\n offsetY: -8,\n };\n}\n\n@Directive()\nexport abstract class NavigationMenuRootItem {\n protected readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly disabled = input<boolean>(false);\n\n isWithin(container: HTMLElement): boolean {\n return container.contains(this.elementRef.nativeElement);\n }\n\n focus(): void {\n this.elementRef.nativeElement.focus();\n }\n\n containsTarget(target: EventTarget | null): boolean {\n return target instanceof Node && this.elementRef.nativeElement.contains(target);\n }\n}\n\n@Component({\n selector: 'ui-navigation-menu',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"navigation\"',\n '[attr.aria-label]': 'ariaLabel() || null',\n '(keydown)': 'onKeydown($any($event))',\n },\n template: `<ng-content />`,\n})\nexport class NavigationMenuComponent {\n readonly class = input<string>('');\n readonly ariaLabel = input<string>('Main navigation');\n readonly loop = input<boolean>(true);\n\n private readonly items = contentChildren(NavigationMenuRootItem, { descendants: true });\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly activeItem = signal<NavigationMenuRootItem | null>(null);\n private readonly openTrigger = signal<NavigationMenuTriggerDirective | null>(null);\n\n protected readonly classes = computed(() =>\n cn('relative z-10 flex max-w-max flex-1 items-center justify-center', this.class()),\n );\n\n setActiveItem(item: NavigationMenuRootItem): void {\n if (item.disabled()) {\n return;\n }\n\n this.activeItem.set(item);\n }\n\n tabIndexFor(item: NavigationMenuRootItem): number {\n if (item.disabled()) {\n return -1;\n }\n\n const enabledItems = this.enabledItems();\n\n if (enabledItems.length === 0) {\n return -1;\n }\n\n const activeItem = this.activeItem();\n const resolvedActiveItem = activeItem && enabledItems.includes(activeItem) ? activeItem : enabledItems[0];\n\n return resolvedActiveItem === item ? 0 : -1;\n }\n\n hasOpenTrigger(except?: NavigationMenuTriggerDirective): boolean {\n const currentOpenTrigger = this.openTrigger();\n return !!currentOpenTrigger && currentOpenTrigger !== except;\n }\n\n notifyOpen(trigger: NavigationMenuTriggerDirective): void {\n const currentOpenTrigger = this.openTrigger();\n\n if (currentOpenTrigger && currentOpenTrigger !== trigger) {\n currentOpenTrigger.close({ restoreFocus: false });\n }\n\n this.openTrigger.set(trigger);\n this.setActiveItem(trigger);\n }\n\n notifyClosed(trigger: NavigationMenuTriggerDirective): void {\n if (this.openTrigger() === trigger) {\n this.openTrigger.set(null);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const currentItem = this.resolveItem(event.target);\n\n if (!currentItem) {\n return;\n }\n\n if (event.key === 'ArrowDown' && currentItem instanceof NavigationMenuTriggerDirective) {\n event.preventDefault();\n currentItem.open({ focusFirstItem: true });\n return;\n }\n\n if (event.key === 'Home' || event.key === 'End') {\n event.preventDefault();\n this.moveFocus(currentItem, event.key === 'Home' ? 'start' : 'end');\n return;\n }\n\n if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.moveFocus(currentItem, event.key === 'ArrowRight' ? 'next' : 'previous');\n }\n }\n\n private enabledItems(): NavigationMenuRootItem[] {\n return this.items().filter((item) => !item.disabled() && item.isWithin(this.host.nativeElement));\n }\n\n private resolveItem(target: EventTarget | null): NavigationMenuRootItem | null {\n return this.enabledItems().find((item) => item.containsTarget(target)) ?? null;\n }\n\n private moveFocus(currentItem: NavigationMenuRootItem, direction: 'previous' | 'next' | 'start' | 'end'): void {\n const enabledItems = this.enabledItems();\n\n if (enabledItems.length === 0) {\n return;\n }\n\n const currentIndex = enabledItems.indexOf(currentItem);\n\n if (currentIndex === -1) {\n enabledItems[0]?.focus();\n return;\n }\n\n const nextItem =\n direction === 'start'\n ? enabledItems[0]\n : direction === 'end'\n ? enabledItems[enabledItems.length - 1]\n : enabledItems[\n this.nextIndex(\n currentIndex,\n direction === 'next' ? this.horizontalStep() : -this.horizontalStep(),\n enabledItems.length,\n )\n ];\n\n if (!nextItem || nextItem === currentItem) {\n return;\n }\n\n const currentOpenTrigger = this.openTrigger();\n\n if (!currentOpenTrigger) {\n nextItem.focus();\n this.setActiveItem(nextItem);\n return;\n }\n\n if (nextItem instanceof NavigationMenuTriggerDirective) {\n nextItem.open({ focusFirstItem: true });\n return;\n }\n\n currentOpenTrigger.close({ restoreFocus: false });\n this.setActiveItem(nextItem);\n queueMicrotask(() => nextItem.focus());\n }\n\n private nextIndex(currentIndex: number, delta: number, length: number): number {\n const rawIndex = currentIndex + delta;\n\n if (this.loop()) {\n return (rawIndex + length) % length;\n }\n\n return Math.max(0, Math.min(length - 1, rawIndex));\n }\n\n private horizontalStep(): number {\n return getComputedStyle(this.host.nativeElement).direction === 'rtl' ? -1 : 1;\n }\n}\n\n@Component({\n selector: 'ui-navigation-menu-list',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"menubar\"',\n },\n template: `<ng-content />`,\n})\nexport class NavigationMenuListComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn('group flex flex-1 list-none items-center justify-center gap-1', this.class()),\n );\n}\n\n@Component({\n selector: 'ui-navigation-menu-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n },\n template: `<ng-content />`,\n})\nexport class NavigationMenuItemComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() => cn('relative', this.class()));\n}\n\n@Directive({\n selector: 'ng-template[uiNavigationMenuContent]',\n exportAs: 'uiNavigationMenuContent',\n})\nexport class NavigationMenuContentDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n@Directive({\n selector: '[uiNavigationMenuTrigger]',\n exportAs: 'uiNavigationMenuTrigger',\n providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuTriggerDirective) }],\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"menuitem\"',\n '[attr.aria-haspopup]': '\"menu\"',\n '[attr.aria-expanded]': 'isOpen()',\n '[attr.data-state]': 'isOpen() ? \"open\" : \"closed\"',\n '[attr.tabindex]': 'tabIndex()',\n '[attr.disabled]': 'disabled() ? \"\" : null',\n '(click)': 'toggle()',\n '(keydown.enter)': 'openFromKeyboard($any($event), false)',\n '(keydown.space)': 'openFromKeyboard($any($event), false)',\n '(keydown.arrowDown)': 'openFromKeyboard($any($event), true)',\n '(focus)': 'syncActiveState()',\n '(mouseenter)': 'openFromHover()',\n },\n})\nexport class NavigationMenuTriggerDirective extends NavigationMenuRootItem {\n readonly uiNavigationMenuTrigger = input.required<NavigationMenuContentDirective>();\n readonly align = input<NavigationMenuAlign>('start');\n readonly class = input<string>('');\n\n readonly openedChange = output<boolean>();\n readonly isOpen = signal(false);\n\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly navigationMenu = inject(NavigationMenuComponent, { optional: true });\n private readonly destroyRef = inject(DestroyRef);\n\n private overlayRef: OverlayRef | null = null;\n\n protected readonly classes = computed(() =>\n cn(\n 'group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors',\n 'after:mb-0.5 after:ml-2 after:inline-block after:h-2 after:w-2 after:shrink-0 after:rotate-45 after:border-b after:border-r after:border-current after:transition-transform after:content-[\"\"]',\n 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',\n 'disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:after:-rotate-135',\n this.class(),\n ),\n );\n\n toggle(): void {\n if (this.disabled()) {\n return;\n }\n\n this.isOpen() ? this.close() : this.open();\n }\n\n open(options: { focusFirstItem?: boolean } = {}): void {\n if (this.isOpen() || this.disabled()) {\n return;\n }\n\n this.navigationMenu?.notifyOpen(this);\n\n const overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef)\n .withFlexibleDimensions(false)\n .withPush(false)\n .withPositions([position(this.align(), 'bottom'), position(this.align(), 'top')]),\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n hasBackdrop: false,\n panelClass: 'ui-navigation-menu-panel',\n });\n\n const portal = new TemplatePortal(this.uiNavigationMenuTrigger().template, this.vcr);\n\n overlayRef.attach(portal);\n this.overlayRef = overlayRef;\n\n merge(\n overlayRef\n .outsidePointerEvents()\n .pipe(filter((event) => !this.elementRef.nativeElement.contains(event.target as Node))),\n overlayRef.keydownEvents().pipe(filter((event) => event.key === 'Escape')),\n overlayRef.detachments(),\n )\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.close());\n\n this.isOpen.set(true);\n this.openedChange.emit(true);\n\n if (options.focusFirstItem) {\n queueMicrotask(() => this.focusFirstItem());\n }\n }\n\n close(options: { restoreFocus?: boolean } = {}): void {\n const { restoreFocus = true } = options;\n\n if (!this.isOpen()) {\n return;\n }\n\n const overlayRef = this.overlayRef;\n this.overlayRef = null;\n this.isOpen.set(false);\n this.openedChange.emit(false);\n this.navigationMenu?.notifyClosed(this);\n overlayRef?.dispose();\n\n if (restoreFocus) {\n this.elementRef.nativeElement.focus();\n }\n }\n\n protected tabIndex(): number {\n return this.navigationMenu?.tabIndexFor(this) ?? (this.disabled() ? -1 : 0);\n }\n\n protected openFromKeyboard(event: KeyboardEvent, focusFirstItem: boolean): void {\n if (this.disabled()) {\n return;\n }\n\n event.preventDefault();\n this.open({ focusFirstItem });\n }\n\n protected syncActiveState(): void {\n this.navigationMenu?.setActiveItem(this);\n }\n\n protected openFromHover(): void {\n if (this.disabled() || !this.navigationMenu?.hasOpenTrigger(this)) {\n return;\n }\n\n this.open();\n }\n\n private focusFirstItem(): void {\n const overlayElement = this.overlayRef?.overlayElement;\n\n if (!overlayElement) {\n return;\n }\n\n const firstItem = overlayElement.querySelector<HTMLElement>(\n 'a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])',\n );\n\n firstItem?.focus();\n }\n}\n\n@Directive({\n selector: 'a[uiNavigationMenuLink], button[uiNavigationMenuLink]',\n exportAs: 'uiNavigationMenuLink',\n providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuLinkDirective) }],\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"menuitem\"',\n '[attr.tabindex]': 'tabIndex()',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.data-variant]': 'variant()',\n '(focus)': 'syncActiveState()',\n '(click)': 'preventDisabled($any($event))',\n },\n})\nexport class NavigationMenuLinkDirective extends NavigationMenuRootItem {\n readonly class = input<string>('');\n readonly variant = input<NavigationMenuLinkVariant>('content');\n\n private readonly navigationMenu = inject(NavigationMenuComponent, { optional: true });\n\n protected readonly classes = computed(() =>\n this.variant() === 'trigger'\n ? cn(\n 'inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors',\n 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n this.class(),\n )\n : cn(\n 'block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors',\n 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n this.class(),\n ),\n );\n\n protected tabIndex(): number {\n if (this.variant() !== 'trigger') {\n return this.disabled() ? -1 : 0;\n }\n\n return this.navigationMenu?.tabIndexFor(this) ?? (this.disabled() ? -1 : 0);\n }\n\n override focus(): void {\n if (this.variant() === 'trigger' && this.elementRef.nativeElement.tabIndex < 0) {\n this.elementRef.nativeElement.tabIndex = 0;\n }\n\n super.focus();\n }\n\n protected syncActiveState(): void {\n if (this.variant() === 'trigger') {\n this.navigationMenu?.setActiveItem(this);\n }\n }\n\n protected preventDisabled(event: MouseEvent): void {\n if (this.disabled()) {\n event.preventDefault();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA0BA,SAAS,QAAQ,CA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