@edsis/angular 22.1.6 → 22.2.10

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 (366) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +87 -399
  3. package/SECURITY.md +18 -0
  4. package/SUPPORT.md +15 -0
  5. package/chart/README.md +275 -0
  6. package/component/README.md +89 -0
  7. package/component/accordion/README.md +195 -0
  8. package/component/alert/README.md +184 -0
  9. package/component/alert-dialog/README.md +255 -0
  10. package/component/aspect-ratio/README.md +116 -0
  11. package/component/avatar/README.md +182 -0
  12. package/component/badge/README.md +143 -0
  13. package/component/breadcrumb/README.md +223 -0
  14. package/component/button/README.md +141 -0
  15. package/component/button-group/README.md +214 -0
  16. package/component/calendar/README.md +125 -0
  17. package/component/card/README.md +232 -0
  18. package/component/carousel/README.md +276 -0
  19. package/component/checkbox/README.md +153 -0
  20. package/component/collapsible/README.md +216 -0
  21. package/component/combobox/README.md +202 -0
  22. package/component/command/README.md +287 -0
  23. package/component/composer/README.md +241 -0
  24. package/component/context-menu/README.md +268 -0
  25. package/component/date-picker/README.md +202 -0
  26. package/component/dialog/README.md +276 -0
  27. package/component/drawer/README.md +146 -0
  28. package/component/dropdown-menu/README.md +336 -0
  29. package/component/editor/README.md +152 -0
  30. package/component/empty/README.md +193 -0
  31. package/component/form/README.md +216 -0
  32. package/component/hover-card/README.md +150 -0
  33. package/component/icon/README.md +52 -0
  34. package/component/input/README.md +160 -0
  35. package/component/input-group/README.md +245 -0
  36. package/component/input-otp/README.md +331 -0
  37. package/component/item/README.md +254 -0
  38. package/component/kanban/README.md +81 -0
  39. package/component/kbd/README.md +141 -0
  40. package/component/label/README.md +137 -0
  41. package/component/menubar/README.md +270 -0
  42. package/component/native-select/README.md +176 -0
  43. package/component/navigation-menu/README.md +165 -0
  44. package/component/pagination/README.md +151 -0
  45. package/component/pillbox/README.md +68 -0
  46. package/component/popover/README.md +54 -0
  47. package/component/progress/README.md +160 -0
  48. package/component/radio/README.md +212 -0
  49. package/component/resizable/README.md +178 -0
  50. package/component/scroll-area/README.md +150 -0
  51. package/component/select/README.md +228 -0
  52. package/component/separator/README.md +175 -0
  53. package/component/sheet/README.md +190 -0
  54. package/component/skeleton/README.md +158 -0
  55. package/component/slider/README.md +207 -0
  56. package/component/spinner/README.md +160 -0
  57. package/component/switch/README.md +170 -0
  58. package/component/table/README.md +292 -0
  59. package/component/tabs/README.md +220 -0
  60. package/component/textarea/README.md +169 -0
  61. package/component/timeline/README.md +94 -0
  62. package/component/toast/README.md +173 -0
  63. package/component/toggle/README.md +133 -0
  64. package/component/toggle-group/README.md +234 -0
  65. package/component/tooltip/README.md +230 -0
  66. package/fesm2022/edsis-angular-chart-area.mjs +508 -0
  67. package/fesm2022/edsis-angular-chart-bar.mjs +946 -0
  68. package/fesm2022/edsis-angular-chart-core.mjs +1319 -0
  69. package/fesm2022/edsis-angular-chart-line.mjs +544 -0
  70. package/fesm2022/edsis-angular-chart-pie.mjs +531 -0
  71. package/fesm2022/edsis-angular-chart-primitives.mjs +1647 -0
  72. package/fesm2022/edsis-angular-chart-radar.mjs +693 -0
  73. package/fesm2022/edsis-angular-chart-radial.mjs +542 -0
  74. package/fesm2022/edsis-angular-chart-scatter.mjs +486 -0
  75. package/fesm2022/edsis-angular-chart.mjs +3 -0
  76. package/fesm2022/edsis-angular-component-accordion.mjs +513 -0
  77. package/fesm2022/edsis-angular-component-alert-dialog.mjs +1001 -0
  78. package/fesm2022/edsis-angular-component-alert.mjs +268 -0
  79. package/fesm2022/edsis-angular-component-aspect-ratio.mjs +80 -0
  80. package/fesm2022/edsis-angular-component-avatar.mjs +410 -0
  81. package/fesm2022/edsis-angular-component-badge.mjs +111 -0
  82. package/fesm2022/edsis-angular-component-breadcrumb.mjs +464 -0
  83. package/fesm2022/edsis-angular-component-button-group.mjs +252 -0
  84. package/fesm2022/edsis-angular-component-button.mjs +155 -0
  85. package/fesm2022/edsis-angular-component-calendar.mjs +835 -0
  86. package/fesm2022/edsis-angular-component-card.mjs +460 -0
  87. package/fesm2022/edsis-angular-component-carousel.mjs +700 -0
  88. package/fesm2022/edsis-angular-component-checkbox.mjs +398 -0
  89. package/fesm2022/edsis-angular-component-collapsible.mjs +305 -0
  90. package/fesm2022/edsis-angular-component-combobox.mjs +544 -0
  91. package/fesm2022/edsis-angular-component-command.mjs +815 -0
  92. package/fesm2022/edsis-angular-component-composer.mjs +840 -0
  93. package/fesm2022/edsis-angular-component-context-menu.mjs +197 -0
  94. package/fesm2022/edsis-angular-component-date-picker.mjs +798 -0
  95. package/fesm2022/edsis-angular-component-dialog.mjs +798 -0
  96. package/fesm2022/edsis-angular-component-drawer.mjs +1 -0
  97. package/fesm2022/edsis-angular-component-dropdown-menu.mjs +1259 -0
  98. package/fesm2022/edsis-angular-component-editor.mjs +1000 -0
  99. package/fesm2022/edsis-angular-component-empty.mjs +351 -0
  100. package/fesm2022/edsis-angular-component-form.mjs +821 -0
  101. package/fesm2022/edsis-angular-component-hover-card.mjs +486 -0
  102. package/fesm2022/edsis-angular-component-icon.mjs +253 -0
  103. package/fesm2022/edsis-angular-component-input-group.mjs +453 -0
  104. package/fesm2022/edsis-angular-component-input-otp.mjs +957 -0
  105. package/fesm2022/edsis-angular-component-input.mjs +87 -0
  106. package/fesm2022/edsis-angular-component-item.mjs +720 -0
  107. package/fesm2022/edsis-angular-component-kanban.mjs +812 -0
  108. package/fesm2022/edsis-angular-component-kbd.mjs +124 -0
  109. package/fesm2022/edsis-angular-component-label.mjs +82 -0
  110. package/fesm2022/edsis-angular-component-menubar.mjs +481 -0
  111. package/fesm2022/edsis-angular-component-native-select.mjs +168 -0
  112. package/fesm2022/edsis-angular-component-navigation-menu.mjs +685 -0
  113. package/fesm2022/edsis-angular-component-pagination.mjs +425 -0
  114. package/fesm2022/edsis-angular-component-pillbox.mjs +1679 -0
  115. package/fesm2022/edsis-angular-component-popover.mjs +292 -0
  116. package/fesm2022/edsis-angular-component-progress.mjs +184 -0
  117. package/fesm2022/edsis-angular-component-radio.mjs +491 -0
  118. package/fesm2022/edsis-angular-component-resizable.mjs +703 -0
  119. package/fesm2022/edsis-angular-component-scroll-area.mjs +133 -0
  120. package/fesm2022/edsis-angular-component-segmented-control.mjs +408 -0
  121. package/fesm2022/edsis-angular-component-select.mjs +743 -0
  122. package/fesm2022/edsis-angular-component-separator.mjs +102 -0
  123. package/fesm2022/edsis-angular-component-sheet.mjs +874 -0
  124. package/fesm2022/edsis-angular-component-skeleton.mjs +62 -0
  125. package/fesm2022/edsis-angular-component-slider.mjs +676 -0
  126. package/fesm2022/edsis-angular-component-spinner.mjs +157 -0
  127. package/fesm2022/edsis-angular-component-switch.mjs +361 -0
  128. package/fesm2022/edsis-angular-component-table.mjs +446 -0
  129. package/fesm2022/edsis-angular-component-tabs.mjs +592 -0
  130. package/fesm2022/edsis-angular-component-textarea.mjs +85 -0
  131. package/fesm2022/edsis-angular-component-timeline.mjs +619 -0
  132. package/fesm2022/edsis-angular-component-toast.mjs +231 -0
  133. package/fesm2022/edsis-angular-component-toggle-group.mjs +579 -0
  134. package/fesm2022/edsis-angular-component-toggle.mjs +189 -0
  135. package/fesm2022/edsis-angular-component-tooltip.mjs +804 -0
  136. package/fesm2022/edsis-angular-component-utils-core.mjs +181 -0
  137. package/fesm2022/edsis-angular-component-utils-overlay.mjs +54 -0
  138. package/fesm2022/edsis-angular-component-utils-scale.mjs +76 -0
  139. package/fesm2022/edsis-angular-component-utils.mjs +2 -0
  140. package/fesm2022/edsis-angular-component.mjs +0 -0
  141. package/fesm2022/edsis-angular-navigation-core.mjs +15 -0
  142. package/fesm2022/edsis-angular-navigation-icon.mjs +35 -0
  143. package/fesm2022/edsis-angular-navigation-navigation-badge-count.component-D70Ju6_f.mjs +234 -0
  144. package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-BaFnh48V.mjs +834 -0
  145. package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-D39W0FQZ.mjs +823 -0
  146. package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-CpmsY8hb.mjs +670 -0
  147. package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-D35IfX6r.mjs +689 -0
  148. package/fesm2022/edsis-angular-navigation-navigation-item.component-X6JFy-ya.mjs +1522 -0
  149. package/fesm2022/edsis-angular-navigation-navigation-list.component-D6Ms8H5g.mjs +346 -0
  150. package/fesm2022/edsis-angular-navigation-service.mjs +558 -0
  151. package/fesm2022/edsis-angular-navigation-types.mjs +151 -0
  152. package/fesm2022/edsis-angular-navigation.mjs +3338 -0
  153. package/fesm2022/edsis-angular-sdk.mjs +100 -0
  154. package/fesm2022/edsis-angular-theme-component-settings.mjs +1863 -0
  155. package/fesm2022/edsis-angular-theme-layout-services.mjs +252 -0
  156. package/fesm2022/edsis-angular-theme-layout-types.mjs +45 -0
  157. package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +2568 -0
  158. package/fesm2022/edsis-angular-theme-layout.mjs +1089 -0
  159. package/fesm2022/edsis-angular-theme-on-fill.mjs +89 -0
  160. package/fesm2022/edsis-angular-theme-page-core.mjs +315 -0
  161. package/fesm2022/edsis-angular-theme-page-filter.mjs +409 -0
  162. package/fesm2022/edsis-angular-theme-page-overview.mjs +88 -0
  163. package/fesm2022/edsis-angular-theme-page-root.mjs +693 -0
  164. package/fesm2022/edsis-angular-theme-page-side.mjs +342 -0
  165. package/fesm2022/edsis-angular-theme-page-slots.mjs +258 -0
  166. package/fesm2022/edsis-angular-theme-page.mjs +7 -0
  167. package/fesm2022/edsis-angular-theme-shell-services.mjs +231 -0
  168. package/fesm2022/edsis-angular-theme-shell-types.mjs +102 -0
  169. package/fesm2022/edsis-angular-theme-shell.mjs +1352 -0
  170. package/fesm2022/edsis-angular-theme-styles.mjs +605 -0
  171. package/fesm2022/edsis-angular-theme.mjs +0 -0
  172. package/fesm2022/edsis-angular.mjs +5 -8
  173. package/navigation/README.md +576 -0
  174. package/package.json +481 -52
  175. package/sdk/README.md +212 -0
  176. package/sdk/schematics/collection.json +20 -0
  177. package/sdk/schematics/init/index.js +83 -0
  178. package/sdk/schematics/init/schema.json +19 -0
  179. package/sdk/schematics/ng-add/index.js +147 -0
  180. package/sdk/schematics/ng-add/schema.json +14 -0
  181. package/sdk/schematics/package.json +3 -0
  182. package/sdk/schematics/sdk/index.js +175 -0
  183. package/sdk/schematics/sdk/schema.json +19 -0
  184. package/sdk/sdk.config.example.json +24 -0
  185. package/sdk/src/config/loader.js +43 -0
  186. package/sdk/src/config/schema.js +59 -0
  187. package/sdk/src/emit/client.js +251 -0
  188. package/sdk/src/emit/metadata.js +310 -0
  189. package/sdk/src/emit/models.js +104 -0
  190. package/sdk/src/emit/navigation.js +56 -0
  191. package/sdk/src/emit/operations.js +118 -0
  192. package/sdk/src/emit/public-api.js +54 -0
  193. package/sdk/src/emit/services.js +110 -0
  194. package/sdk/src/engine.js +67 -0
  195. package/sdk/src/layout/per-domain.js +360 -0
  196. package/sdk/src/package.json +3 -0
  197. package/sdk/src/parser/bundle.js +25 -0
  198. package/sdk/src/parser/ir.js +429 -0
  199. package/sdk/src/parser/types.js +7 -0
  200. package/sdk/src/render/template.js +152 -0
  201. package/sdk/src/writer/index.js +286 -0
  202. package/theme/README.md +120 -0
  203. package/theme/component/settings/README.md +154 -0
  204. package/theme/layout/README.md +604 -0
  205. package/theme/page/README.md +505 -0
  206. package/theme/shell/README.md +344 -0
  207. package/theme/styles/README.md +251 -0
  208. package/theme/styles/css/base/components.css +577 -0
  209. package/theme/styles/css/base/index.css +14 -0
  210. package/theme/styles/css/base/on-fill.css +153 -0
  211. package/theme/styles/css/base/package.css +10 -0
  212. package/theme/styles/css/base/prefers-dark.css +81 -0
  213. package/theme/styles/css/base/print.css +62 -0
  214. package/theme/styles/css/base/status.css +38 -0
  215. package/theme/styles/css/base/tailwind.css +208 -0
  216. package/theme/styles/css/base/theme.css +306 -0
  217. package/theme/styles/css/base/tokens.css +388 -0
  218. package/theme/styles/css/color/amber.css +72 -0
  219. package/theme/styles/css/color/blue.css +72 -0
  220. package/theme/styles/css/color/brand.css +38 -0
  221. package/theme/styles/css/color/cyan.css +72 -0
  222. package/theme/styles/css/color/emerald.css +72 -0
  223. package/theme/styles/css/color/fuchsia.css +72 -0
  224. package/theme/styles/css/color/green.css +72 -0
  225. package/theme/styles/css/color/index.css +19 -0
  226. package/theme/styles/css/color/indigo.css +72 -0
  227. package/theme/styles/css/color/lime.css +72 -0
  228. package/theme/styles/css/color/orange.css +72 -0
  229. package/theme/styles/css/color/pink.css +72 -0
  230. package/theme/styles/css/color/purple.css +72 -0
  231. package/theme/styles/css/color/red.css +72 -0
  232. package/theme/styles/css/color/rose.css +72 -0
  233. package/theme/styles/css/color/sky.css +72 -0
  234. package/theme/styles/css/color/teal.css +72 -0
  235. package/theme/styles/css/color/violet.css +72 -0
  236. package/theme/styles/css/color/yellow.css +72 -0
  237. package/theme/styles/css/fonts.css +85 -0
  238. package/theme/styles/css/index.css +18 -0
  239. package/theme/styles/css/neutral/gray.css +63 -0
  240. package/theme/styles/css/neutral/index.css +11 -0
  241. package/theme/styles/css/neutral/mauve.css +63 -0
  242. package/theme/styles/css/neutral/mist.css +63 -0
  243. package/theme/styles/css/neutral/neutral.css +63 -0
  244. package/theme/styles/css/neutral/olive.css +63 -0
  245. package/theme/styles/css/neutral/slate.css +63 -0
  246. package/theme/styles/css/neutral/stone.css +63 -0
  247. package/theme/styles/css/neutral/taupe.css +63 -0
  248. package/theme/styles/css/neutral/zinc.css +63 -0
  249. package/theme/styles/css/radius/index.css +30 -0
  250. package/theme/styles/css/space/index.css +20 -0
  251. package/types/edsis-angular-chart-area.d.ts +139 -0
  252. package/types/edsis-angular-chart-bar.d.ts +291 -0
  253. package/types/edsis-angular-chart-core.d.ts +824 -0
  254. package/types/edsis-angular-chart-line.d.ts +148 -0
  255. package/types/edsis-angular-chart-pie.d.ts +207 -0
  256. package/types/edsis-angular-chart-primitives.d.ts +360 -0
  257. package/types/edsis-angular-chart-radar.d.ts +198 -0
  258. package/types/edsis-angular-chart-radial.d.ts +187 -0
  259. package/types/edsis-angular-chart-scatter.d.ts +181 -0
  260. package/types/edsis-angular-chart.d.ts +3 -0
  261. package/types/edsis-angular-component-accordion.d.ts +139 -0
  262. package/types/edsis-angular-component-alert-dialog.d.ts +288 -0
  263. package/types/edsis-angular-component-alert.d.ts +72 -0
  264. package/types/edsis-angular-component-aspect-ratio.d.ts +20 -0
  265. package/types/edsis-angular-component-avatar.d.ts +111 -0
  266. package/types/edsis-angular-component-badge.d.ts +36 -0
  267. package/types/edsis-angular-component-breadcrumb.d.ts +85 -0
  268. package/types/edsis-angular-component-button-group.d.ts +50 -0
  269. package/types/edsis-angular-component-button.d.ts +44 -0
  270. package/types/edsis-angular-component-calendar.d.ts +150 -0
  271. package/types/edsis-angular-component-card.d.ts +123 -0
  272. package/types/edsis-angular-component-carousel.d.ts +155 -0
  273. package/types/edsis-angular-component-checkbox.d.ts +100 -0
  274. package/types/edsis-angular-component-collapsible.d.ts +68 -0
  275. package/types/edsis-angular-component-combobox.d.ts +105 -0
  276. package/types/edsis-angular-component-command.d.ts +215 -0
  277. package/types/edsis-angular-component-composer.d.ts +190 -0
  278. package/types/edsis-angular-component-context-menu.d.ts +64 -0
  279. package/types/edsis-angular-component-date-picker.d.ts +199 -0
  280. package/types/edsis-angular-component-dialog.d.ts +231 -0
  281. package/types/edsis-angular-component-drawer.d.ts +2 -0
  282. package/types/edsis-angular-component-dropdown-menu.d.ts +370 -0
  283. package/types/edsis-angular-component-editor.d.ts +234 -0
  284. package/types/edsis-angular-component-empty.d.ts +85 -0
  285. package/types/edsis-angular-component-form.d.ts +223 -0
  286. package/types/edsis-angular-component-hover-card.d.ts +133 -0
  287. package/types/edsis-angular-component-icon.d.ts +90 -0
  288. package/types/edsis-angular-component-input-group.d.ts +98 -0
  289. package/types/edsis-angular-component-input-otp.d.ts +249 -0
  290. package/types/edsis-angular-component-input.d.ts +31 -0
  291. package/types/edsis-angular-component-item.d.ts +169 -0
  292. package/types/edsis-angular-component-kanban.d.ts +165 -0
  293. package/types/edsis-angular-component-kbd.d.ts +25 -0
  294. package/types/edsis-angular-component-label.d.ts +19 -0
  295. package/types/edsis-angular-component-menubar.d.ts +123 -0
  296. package/types/edsis-angular-component-native-select.d.ts +39 -0
  297. package/types/edsis-angular-component-navigation-menu.d.ts +163 -0
  298. package/types/edsis-angular-component-pagination.d.ts +83 -0
  299. package/types/edsis-angular-component-pillbox.d.ts +380 -0
  300. package/types/edsis-angular-component-popover.d.ts +96 -0
  301. package/types/edsis-angular-component-progress.d.ts +45 -0
  302. package/types/edsis-angular-component-radio.d.ts +137 -0
  303. package/types/edsis-angular-component-resizable.d.ts +166 -0
  304. package/types/edsis-angular-component-scroll-area.d.ts +37 -0
  305. package/types/edsis-angular-component-segmented-control.d.ts +102 -0
  306. package/types/edsis-angular-component-select.d.ts +138 -0
  307. package/types/edsis-angular-component-separator.d.ts +26 -0
  308. package/types/edsis-angular-component-sheet.d.ts +240 -0
  309. package/types/edsis-angular-component-skeleton.d.ts +13 -0
  310. package/types/edsis-angular-component-slider.d.ts +148 -0
  311. package/types/edsis-angular-component-spinner.d.ts +31 -0
  312. package/types/edsis-angular-component-switch.d.ts +101 -0
  313. package/types/edsis-angular-component-table.d.ts +109 -0
  314. package/types/edsis-angular-component-tabs.d.ts +183 -0
  315. package/types/edsis-angular-component-textarea.d.ts +27 -0
  316. package/types/edsis-angular-component-timeline.d.ts +146 -0
  317. package/types/edsis-angular-component-toast.d.ts +60 -0
  318. package/types/edsis-angular-component-toggle-group.d.ts +161 -0
  319. package/types/edsis-angular-component-toggle.d.ts +47 -0
  320. package/types/edsis-angular-component-tooltip.d.ts +233 -0
  321. package/types/edsis-angular-component-utils-core.d.ts +175 -0
  322. package/types/edsis-angular-component-utils-overlay.d.ts +17 -0
  323. package/types/edsis-angular-component-utils-scale.d.ts +27 -0
  324. package/types/edsis-angular-component-utils.d.ts +2 -0
  325. package/types/edsis-angular-component.d.ts +1 -0
  326. package/types/edsis-angular-navigation-core.d.ts +55 -0
  327. package/types/edsis-angular-navigation-icon.d.ts +9 -0
  328. package/types/edsis-angular-navigation-service.d.ts +121 -0
  329. package/types/edsis-angular-navigation-types.d.ts +185 -0
  330. package/types/edsis-angular-navigation.d.ts +862 -0
  331. package/types/edsis-angular-sdk.d.ts +87 -0
  332. package/types/edsis-angular-theme-component-settings.d.ts +205 -0
  333. package/types/edsis-angular-theme-layout-services.d.ts +143 -0
  334. package/types/edsis-angular-theme-layout-types.d.ts +36 -0
  335. package/types/edsis-angular-theme-layout-wrapper.d.ts +670 -0
  336. package/types/edsis-angular-theme-layout.d.ts +218 -0
  337. package/types/edsis-angular-theme-on-fill.d.ts +45 -0
  338. package/types/edsis-angular-theme-page-core.d.ts +151 -0
  339. package/types/edsis-angular-theme-page-filter.d.ts +127 -0
  340. package/types/edsis-angular-theme-page-overview.d.ts +28 -0
  341. package/types/edsis-angular-theme-page-root.d.ts +172 -0
  342. package/types/edsis-angular-theme-page-side.d.ts +90 -0
  343. package/types/edsis-angular-theme-page-slots.d.ts +61 -0
  344. package/types/edsis-angular-theme-page.d.ts +7 -0
  345. package/types/edsis-angular-theme-shell-services.d.ts +188 -0
  346. package/types/edsis-angular-theme-shell-types.d.ts +102 -0
  347. package/types/edsis-angular-theme-shell.d.ts +178 -0
  348. package/types/edsis-angular-theme-styles.d.ts +328 -0
  349. package/types/edsis-angular-theme.d.ts +1 -0
  350. package/types/edsis-angular.d.ts +5 -2
  351. package/fesm2022/edsis-angular-block-shell.mjs +0 -1329
  352. package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
  353. package/fesm2022/edsis-angular-block-themes.mjs +0 -1007
  354. package/fesm2022/edsis-angular-block-themes.mjs.map +0 -1
  355. package/fesm2022/edsis-angular-module-auth.mjs +0 -2582
  356. package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
  357. package/fesm2022/edsis-angular-platform-mfe.mjs +0 -329
  358. package/fesm2022/edsis-angular-platform-mfe.mjs.map +0 -1
  359. package/fesm2022/edsis-angular-services-runtime.mjs +0 -385
  360. package/fesm2022/edsis-angular-services-runtime.mjs.map +0 -1
  361. package/fesm2022/edsis-angular.mjs.map +0 -1
  362. package/types/edsis-angular-block-shell.d.ts +0 -190
  363. package/types/edsis-angular-block-themes.d.ts +0 -94
  364. package/types/edsis-angular-module-auth.d.ts +0 -533
  365. package/types/edsis-angular-platform-mfe.d.ts +0 -126
  366. package/types/edsis-angular-services-runtime.d.ts +0 -118
@@ -0,0 +1,685 @@
1
+ import { Overlay } from "@angular/cdk/overlay";
2
+ import { TemplatePortal } from "@angular/cdk/portal";
3
+ import * as i0 from "@angular/core";
4
+ import { Component, DestroyRef, Directive, ElementRef, TemplateRef, ViewContainerRef, computed, contentChildren, forwardRef, inject, input, output, signal } from "@angular/core";
5
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
6
+ import { RovingRow, cn, injectUniqueId } from "@edsis/angular/component/utils/core";
7
+ import { connectedPositionFor } from "@edsis/angular/component/utils/overlay";
8
+ import { merge } from "rxjs";
9
+ import { filter } from "rxjs/operators";
10
+ function position(align, side) {
11
+ return connectedPositionFor(side, align, 8);
12
+ }
13
+ var NavigationMenuRootItem = class NavigationMenuRootItem {
14
+ elementRef = inject(ElementRef);
15
+ disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
16
+ isWithin(container) {
17
+ return container.contains(this.elementRef.nativeElement);
18
+ }
19
+ focus() {
20
+ this.elementRef.nativeElement.focus();
21
+ }
22
+ containsTarget(target) {
23
+ return target instanceof Node && this.elementRef.nativeElement.contains(target);
24
+ }
25
+ static ɵfac = i0.ɵɵngDeclareFactory({
26
+ minVersion: "12.0.0",
27
+ version: "22.2.4",
28
+ ngImport: i0,
29
+ type: NavigationMenuRootItem,
30
+ deps: [],
31
+ target: i0.ɵɵFactoryTarget.Directive
32
+ });
33
+ static ɵdir = i0.ɵɵngDeclareDirective({
34
+ minVersion: "17.1.0",
35
+ version: "22.2.4",
36
+ type: NavigationMenuRootItem,
37
+ isStandalone: true,
38
+ inputs: { disabled: {
39
+ classPropertyName: "disabled",
40
+ publicName: "disabled",
41
+ isSignal: true,
42
+ isRequired: false,
43
+ transformFunction: null
44
+ } },
45
+ ngImport: i0
46
+ });
47
+ };
48
+ i0.ɵɵngDeclareClassMetadata({
49
+ minVersion: "12.0.0",
50
+ version: "22.2.4",
51
+ ngImport: i0,
52
+ type: NavigationMenuRootItem,
53
+ decorators: [{ type: Directive }],
54
+ propDecorators: { disabled: [{
55
+ type: i0.Input,
56
+ args: [{
57
+ isSignal: true,
58
+ alias: "disabled",
59
+ required: false
60
+ }]
61
+ }] }
62
+ });
63
+ var NavigationMenuComponent = class NavigationMenuComponent {
64
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
65
+ ariaLabel = input("Main navigation", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
66
+ loop = input(true, ...ngDevMode ? [{ debugName: "loop" }] : /* istanbul ignore next */ []);
67
+ items = contentChildren(forwardRef(() => NavigationMenuRootItem), {
68
+ ...ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {},
69
+ descendants: true
70
+ });
71
+ host = inject(ElementRef);
72
+ row = new RovingRow({
73
+ items: () => this.items().filter((item) => item.isWithin(this.host.nativeElement)),
74
+ host: () => this.host.nativeElement,
75
+ loop: () => this.loop(),
76
+ enter: (item) => this.enter(item)
77
+ });
78
+ classes = computed(() => cn("relative z-10 flex max-w-max flex-1 items-center justify-center", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
79
+ setActiveItem(item) {
80
+ this.row.setActive(item);
81
+ }
82
+ tabIndexFor(item) {
83
+ return this.row.tabIndexFor(item);
84
+ }
85
+ hasOpenTrigger(except) {
86
+ return this.row.hasOpenTrigger(except);
87
+ }
88
+ notifyOpen(trigger) {
89
+ this.row.notifyOpen(trigger);
90
+ }
91
+ notifyClosed(trigger) {
92
+ this.row.notifyClosed(trigger);
93
+ }
94
+ onKeydown(event) {
95
+ const currentItem = this.row.itemFrom(event.target, "enabled");
96
+ if (!currentItem) return;
97
+ if (event.key === "ArrowDown" && currentItem instanceof NavigationMenuTriggerDirective) {
98
+ event.preventDefault();
99
+ currentItem.open({ focusFirstItem: true });
100
+ return;
101
+ }
102
+ this.row.handleNavigationKey(currentItem, event);
103
+ }
104
+ enter(nextItem) {
105
+ const currentOpenTrigger = this.row.openTrigger();
106
+ if (!currentOpenTrigger) {
107
+ nextItem.focus();
108
+ this.row.setActive(nextItem);
109
+ return;
110
+ }
111
+ if (nextItem instanceof NavigationMenuTriggerDirective) {
112
+ nextItem.open();
113
+ this.row.setActive(nextItem);
114
+ nextItem.focus();
115
+ return;
116
+ }
117
+ currentOpenTrigger.close({ restoreFocus: false });
118
+ this.row.setActive(nextItem);
119
+ queueMicrotask(() => nextItem.focus());
120
+ }
121
+ static ɵfac = i0.ɵɵngDeclareFactory({
122
+ minVersion: "12.0.0",
123
+ version: "22.2.4",
124
+ ngImport: i0,
125
+ type: NavigationMenuComponent,
126
+ deps: [],
127
+ target: i0.ɵɵFactoryTarget.Component
128
+ });
129
+ static ɵcmp = i0.ɵɵngDeclareComponent({
130
+ minVersion: "17.2.0",
131
+ version: "22.2.4",
132
+ type: NavigationMenuComponent,
133
+ isStandalone: true,
134
+ selector: "NavigationMenu",
135
+ inputs: {
136
+ class: {
137
+ classPropertyName: "class",
138
+ publicName: "class",
139
+ isSignal: true,
140
+ isRequired: false,
141
+ transformFunction: null
142
+ },
143
+ ariaLabel: {
144
+ classPropertyName: "ariaLabel",
145
+ publicName: "ariaLabel",
146
+ isSignal: true,
147
+ isRequired: false,
148
+ transformFunction: null
149
+ },
150
+ loop: {
151
+ classPropertyName: "loop",
152
+ publicName: "loop",
153
+ isSignal: true,
154
+ isRequired: false,
155
+ transformFunction: null
156
+ }
157
+ },
158
+ host: {
159
+ listeners: { "keydown": "onKeydown($any($event))" },
160
+ properties: {
161
+ "class": "classes()",
162
+ "attr.role": "\"navigation\"",
163
+ "attr.aria-label": "ariaLabel() || null"
164
+ }
165
+ },
166
+ queries: [{
167
+ propertyName: "items",
168
+ predicate: i0.forwardRef(() => NavigationMenuRootItem),
169
+ descendants: true,
170
+ isSignal: true
171
+ }],
172
+ ngImport: i0,
173
+ template: `<ng-content />`,
174
+ isInline: true
175
+ });
176
+ };
177
+ i0.ɵɵngDeclareClassMetadata({
178
+ minVersion: "12.0.0",
179
+ version: "22.2.4",
180
+ ngImport: i0,
181
+ type: NavigationMenuComponent,
182
+ decorators: [{
183
+ type: Component,
184
+ args: [{
185
+ selector: "NavigationMenu",
186
+ host: {
187
+ "[class]": "classes()",
188
+ "[attr.role]": "\"navigation\"",
189
+ "[attr.aria-label]": "ariaLabel() || null",
190
+ "(keydown)": "onKeydown($any($event))"
191
+ },
192
+ template: `<ng-content />`
193
+ }]
194
+ }],
195
+ propDecorators: {
196
+ class: [{
197
+ type: i0.Input,
198
+ args: [{
199
+ isSignal: true,
200
+ alias: "class",
201
+ required: false
202
+ }]
203
+ }],
204
+ ariaLabel: [{
205
+ type: i0.Input,
206
+ args: [{
207
+ isSignal: true,
208
+ alias: "ariaLabel",
209
+ required: false
210
+ }]
211
+ }],
212
+ loop: [{
213
+ type: i0.Input,
214
+ args: [{
215
+ isSignal: true,
216
+ alias: "loop",
217
+ required: false
218
+ }]
219
+ }],
220
+ items: [{
221
+ type: i0.ContentChildren,
222
+ args: [forwardRef(() => NavigationMenuRootItem), {
223
+ descendants: true,
224
+ isSignal: true
225
+ }]
226
+ }]
227
+ }
228
+ });
229
+ var NavigationMenuListComponent = class NavigationMenuListComponent {
230
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
231
+ classes = computed(() => cn("group flex flex-1 list-none items-center justify-center gap-1", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
232
+ static ɵfac = i0.ɵɵngDeclareFactory({
233
+ minVersion: "12.0.0",
234
+ version: "22.2.4",
235
+ ngImport: i0,
236
+ type: NavigationMenuListComponent,
237
+ deps: [],
238
+ target: i0.ɵɵFactoryTarget.Component
239
+ });
240
+ static ɵcmp = i0.ɵɵngDeclareComponent({
241
+ minVersion: "17.1.0",
242
+ version: "22.2.4",
243
+ type: NavigationMenuListComponent,
244
+ isStandalone: true,
245
+ selector: "NavigationMenuList",
246
+ inputs: { class: {
247
+ classPropertyName: "class",
248
+ publicName: "class",
249
+ isSignal: true,
250
+ isRequired: false,
251
+ transformFunction: null
252
+ } },
253
+ host: { properties: { "class": "classes()" } },
254
+ ngImport: i0,
255
+ template: `<ng-content />`,
256
+ isInline: true
257
+ });
258
+ };
259
+ i0.ɵɵngDeclareClassMetadata({
260
+ minVersion: "12.0.0",
261
+ version: "22.2.4",
262
+ ngImport: i0,
263
+ type: NavigationMenuListComponent,
264
+ decorators: [{
265
+ type: Component,
266
+ args: [{
267
+ selector: "NavigationMenuList",
268
+ host: { "[class]": "classes()" },
269
+ template: `<ng-content />`
270
+ }]
271
+ }],
272
+ propDecorators: { class: [{
273
+ type: i0.Input,
274
+ args: [{
275
+ isSignal: true,
276
+ alias: "class",
277
+ required: false
278
+ }]
279
+ }] }
280
+ });
281
+ var NavigationMenuItemComponent = class NavigationMenuItemComponent {
282
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
283
+ classes = computed(() => cn("relative", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
284
+ static ɵfac = i0.ɵɵngDeclareFactory({
285
+ minVersion: "12.0.0",
286
+ version: "22.2.4",
287
+ ngImport: i0,
288
+ type: NavigationMenuItemComponent,
289
+ deps: [],
290
+ target: i0.ɵɵFactoryTarget.Component
291
+ });
292
+ static ɵcmp = i0.ɵɵngDeclareComponent({
293
+ minVersion: "17.1.0",
294
+ version: "22.2.4",
295
+ type: NavigationMenuItemComponent,
296
+ isStandalone: true,
297
+ selector: "NavigationMenuItem",
298
+ inputs: { class: {
299
+ classPropertyName: "class",
300
+ publicName: "class",
301
+ isSignal: true,
302
+ isRequired: false,
303
+ transformFunction: null
304
+ } },
305
+ host: { properties: { "class": "classes()" } },
306
+ ngImport: i0,
307
+ template: `<ng-content />`,
308
+ isInline: true
309
+ });
310
+ };
311
+ i0.ɵɵngDeclareClassMetadata({
312
+ minVersion: "12.0.0",
313
+ version: "22.2.4",
314
+ ngImport: i0,
315
+ type: NavigationMenuItemComponent,
316
+ decorators: [{
317
+ type: Component,
318
+ args: [{
319
+ selector: "NavigationMenuItem",
320
+ host: { "[class]": "classes()" },
321
+ template: `<ng-content />`
322
+ }]
323
+ }],
324
+ propDecorators: { class: [{
325
+ type: i0.Input,
326
+ args: [{
327
+ isSignal: true,
328
+ alias: "class",
329
+ required: false
330
+ }]
331
+ }] }
332
+ });
333
+ var NavigationMenuContentDirective = class NavigationMenuContentDirective {
334
+ template = inject(TemplateRef);
335
+ static ɵfac = i0.ɵɵngDeclareFactory({
336
+ minVersion: "12.0.0",
337
+ version: "22.2.4",
338
+ ngImport: i0,
339
+ type: NavigationMenuContentDirective,
340
+ deps: [],
341
+ target: i0.ɵɵFactoryTarget.Directive
342
+ });
343
+ static ɵdir = i0.ɵɵngDeclareDirective({
344
+ minVersion: "14.0.0",
345
+ version: "22.2.4",
346
+ type: NavigationMenuContentDirective,
347
+ isStandalone: true,
348
+ selector: "ng-template[NavigationMenuContent]",
349
+ exportAs: ["NavigationMenuContent"],
350
+ ngImport: i0
351
+ });
352
+ };
353
+ i0.ɵɵngDeclareClassMetadata({
354
+ minVersion: "12.0.0",
355
+ version: "22.2.4",
356
+ ngImport: i0,
357
+ type: NavigationMenuContentDirective,
358
+ decorators: [{
359
+ type: Directive,
360
+ args: [{
361
+ selector: "ng-template[NavigationMenuContent]",
362
+ exportAs: "NavigationMenuContent"
363
+ }]
364
+ }]
365
+ });
366
+ var NavigationMenuTriggerDirective = class NavigationMenuTriggerDirective extends NavigationMenuRootItem {
367
+ NavigationMenuTrigger = input.required(...ngDevMode ? [{ debugName: "NavigationMenuTrigger" }] : /* istanbul ignore next */ []);
368
+ align = input("start", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
369
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
370
+ panelId = injectUniqueId("NavigationMenuPanel");
371
+ openedChange = output();
372
+ isOpen = signal(false, ...ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []);
373
+ overlay = inject(Overlay);
374
+ vcr = inject(ViewContainerRef);
375
+ navigationMenu = inject(NavigationMenuComponent, { optional: true });
376
+ destroyRef = inject(DestroyRef);
377
+ overlayRef = null;
378
+ constructor() {
379
+ super();
380
+ this.destroyRef.onDestroy(() => this.close({
381
+ restoreFocus: false,
382
+ emitOpenedChange: false
383
+ }));
384
+ }
385
+ classes = computed(() => cn("group inline-flex h-control-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 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:after:-rotate-135", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
386
+ toggle() {
387
+ if (this.disabled()) return;
388
+ if (this.isOpen()) this.close();
389
+ else this.open();
390
+ }
391
+ open(options = {}) {
392
+ if (this.isOpen() || this.disabled()) return;
393
+ this.navigationMenu?.notifyOpen(this);
394
+ const overlayRef = this.overlay.create({
395
+ positionStrategy: this.overlay.position().flexibleConnectedTo(this.elementRef).withFlexibleDimensions(false).withPush(false).withPositions([position(this.align(), "bottom"), position(this.align(), "top")]),
396
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
397
+ hasBackdrop: false,
398
+ panelClass: "navigation-menu-panel"
399
+ });
400
+ const portal = new TemplatePortal(this.NavigationMenuTrigger().template, this.vcr);
401
+ overlayRef.attach(portal);
402
+ overlayRef.overlayElement.id = this.panelId;
403
+ this.overlayRef = overlayRef;
404
+ merge(overlayRef.outsidePointerEvents().pipe(filter((event) => !this.elementRef.nativeElement.contains(event.target))), overlayRef.keydownEvents().pipe(filter((event) => event.key === "Escape")), overlayRef.detachments()).pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.close());
405
+ this.isOpen.set(true);
406
+ this.openedChange.emit(true);
407
+ if (options.focusFirstItem) queueMicrotask(() => this.focusFirstItem());
408
+ }
409
+ close(options = {}) {
410
+ const { restoreFocus = true, emitOpenedChange = true } = options;
411
+ if (!this.isOpen()) return;
412
+ const overlayRef = this.overlayRef;
413
+ this.overlayRef = null;
414
+ this.isOpen.set(false);
415
+ if (emitOpenedChange) this.openedChange.emit(false);
416
+ this.navigationMenu?.notifyClosed(this);
417
+ overlayRef?.dispose();
418
+ if (restoreFocus) this.elementRef.nativeElement.focus();
419
+ }
420
+ tabIndex() {
421
+ return this.navigationMenu?.tabIndexFor(this) ?? (this.disabled() ? -1 : 0);
422
+ }
423
+ nativeDisabled() {
424
+ return this.disabled() && this.tabIndex() < 0;
425
+ }
426
+ openFromKeyboard(event, focusFirstItem) {
427
+ if (this.disabled()) return;
428
+ event.preventDefault();
429
+ this.open({ focusFirstItem });
430
+ }
431
+ syncActiveState() {
432
+ this.navigationMenu?.setActiveItem(this);
433
+ }
434
+ openFromHover() {
435
+ if (this.disabled() || !this.navigationMenu?.hasOpenTrigger(this)) return;
436
+ this.open();
437
+ }
438
+ focusFirstItem() {
439
+ const overlayElement = this.overlayRef?.overlayElement;
440
+ if (!overlayElement) return;
441
+ overlayElement.querySelector("a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")?.focus();
442
+ }
443
+ static ɵfac = i0.ɵɵngDeclareFactory({
444
+ minVersion: "12.0.0",
445
+ version: "22.2.4",
446
+ ngImport: i0,
447
+ type: NavigationMenuTriggerDirective,
448
+ deps: [],
449
+ target: i0.ɵɵFactoryTarget.Directive
450
+ });
451
+ static ɵdir = i0.ɵɵngDeclareDirective({
452
+ minVersion: "17.1.0",
453
+ version: "22.2.4",
454
+ type: NavigationMenuTriggerDirective,
455
+ isStandalone: true,
456
+ selector: "[NavigationMenuTrigger]",
457
+ inputs: {
458
+ NavigationMenuTrigger: {
459
+ classPropertyName: "NavigationMenuTrigger",
460
+ publicName: "NavigationMenuTrigger",
461
+ isSignal: true,
462
+ isRequired: true,
463
+ transformFunction: null
464
+ },
465
+ align: {
466
+ classPropertyName: "align",
467
+ publicName: "align",
468
+ isSignal: true,
469
+ isRequired: false,
470
+ transformFunction: null
471
+ },
472
+ class: {
473
+ classPropertyName: "class",
474
+ publicName: "class",
475
+ isSignal: true,
476
+ isRequired: false,
477
+ transformFunction: null
478
+ }
479
+ },
480
+ outputs: { openedChange: "openedChange" },
481
+ host: {
482
+ listeners: {
483
+ "click": "toggle()",
484
+ "keydown.enter": "openFromKeyboard($any($event), false)",
485
+ "keydown.space": "openFromKeyboard($any($event), false)",
486
+ "keydown.arrowDown": "openFromKeyboard($any($event), true)",
487
+ "focus": "syncActiveState()",
488
+ "mouseenter": "openFromHover()"
489
+ },
490
+ properties: {
491
+ "class": "classes()",
492
+ "attr.aria-expanded": "isOpen()",
493
+ "attr.aria-controls": "isOpen() ? panelId : null",
494
+ "attr.data-state": "isOpen() ? \"open\" : \"closed\"",
495
+ "attr.tabindex": "tabIndex()",
496
+ "attr.disabled": "nativeDisabled() ? \"\" : null",
497
+ "attr.aria-disabled": "disabled() ? \"true\" : null"
498
+ }
499
+ },
500
+ providers: [{
501
+ provide: NavigationMenuRootItem,
502
+ useExisting: forwardRef(() => NavigationMenuTriggerDirective)
503
+ }],
504
+ exportAs: ["NavigationMenuTrigger"],
505
+ usesInheritance: true,
506
+ ngImport: i0
507
+ });
508
+ };
509
+ i0.ɵɵngDeclareClassMetadata({
510
+ minVersion: "12.0.0",
511
+ version: "22.2.4",
512
+ ngImport: i0,
513
+ type: NavigationMenuTriggerDirective,
514
+ decorators: [{
515
+ type: Directive,
516
+ args: [{
517
+ selector: "[NavigationMenuTrigger]",
518
+ exportAs: "NavigationMenuTrigger",
519
+ providers: [{
520
+ provide: NavigationMenuRootItem,
521
+ useExisting: forwardRef(() => NavigationMenuTriggerDirective)
522
+ }],
523
+ host: {
524
+ "[class]": "classes()",
525
+ "[attr.aria-expanded]": "isOpen()",
526
+ "[attr.aria-controls]": "isOpen() ? panelId : null",
527
+ "[attr.data-state]": "isOpen() ? \"open\" : \"closed\"",
528
+ "[attr.tabindex]": "tabIndex()",
529
+ "[attr.disabled]": "nativeDisabled() ? \"\" : null",
530
+ "[attr.aria-disabled]": "disabled() ? \"true\" : null",
531
+ "(click)": "toggle()",
532
+ "(keydown.enter)": "openFromKeyboard($any($event), false)",
533
+ "(keydown.space)": "openFromKeyboard($any($event), false)",
534
+ "(keydown.arrowDown)": "openFromKeyboard($any($event), true)",
535
+ "(focus)": "syncActiveState()",
536
+ "(mouseenter)": "openFromHover()"
537
+ }
538
+ }]
539
+ }],
540
+ ctorParameters: () => [],
541
+ propDecorators: {
542
+ NavigationMenuTrigger: [{
543
+ type: i0.Input,
544
+ args: [{
545
+ isSignal: true,
546
+ alias: "NavigationMenuTrigger",
547
+ required: true
548
+ }]
549
+ }],
550
+ align: [{
551
+ type: i0.Input,
552
+ args: [{
553
+ isSignal: true,
554
+ alias: "align",
555
+ required: false
556
+ }]
557
+ }],
558
+ class: [{
559
+ type: i0.Input,
560
+ args: [{
561
+ isSignal: true,
562
+ alias: "class",
563
+ required: false
564
+ }]
565
+ }],
566
+ openedChange: [{
567
+ type: i0.Output,
568
+ args: ["openedChange"]
569
+ }]
570
+ }
571
+ });
572
+ var NavigationMenuLinkDirective = class NavigationMenuLinkDirective extends NavigationMenuRootItem {
573
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
574
+ variant = input("content", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
575
+ navigationMenu = inject(NavigationMenuComponent, { optional: true });
576
+ classes = computed(() => this.variant() === "trigger" ? cn("inline-flex h-control-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()) : 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()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
577
+ tabIndex() {
578
+ if (this.variant() !== "trigger") return this.disabled() ? -1 : 0;
579
+ return this.navigationMenu?.tabIndexFor(this) ?? (this.disabled() ? -1 : 0);
580
+ }
581
+ focus() {
582
+ if (this.variant() === "trigger" && this.elementRef.nativeElement.tabIndex < 0) this.elementRef.nativeElement.tabIndex = 0;
583
+ super.focus();
584
+ }
585
+ syncActiveState() {
586
+ if (this.variant() === "trigger") this.navigationMenu?.setActiveItem(this);
587
+ }
588
+ preventDisabled(event) {
589
+ if (this.disabled()) event.preventDefault();
590
+ }
591
+ static ɵfac = i0.ɵɵngDeclareFactory({
592
+ minVersion: "12.0.0",
593
+ version: "22.2.4",
594
+ ngImport: i0,
595
+ type: NavigationMenuLinkDirective,
596
+ deps: null,
597
+ target: i0.ɵɵFactoryTarget.Directive
598
+ });
599
+ static ɵdir = i0.ɵɵngDeclareDirective({
600
+ minVersion: "17.1.0",
601
+ version: "22.2.4",
602
+ type: NavigationMenuLinkDirective,
603
+ isStandalone: true,
604
+ selector: "a[NavigationMenuLink], button[NavigationMenuLink]",
605
+ inputs: {
606
+ class: {
607
+ classPropertyName: "class",
608
+ publicName: "class",
609
+ isSignal: true,
610
+ isRequired: false,
611
+ transformFunction: null
612
+ },
613
+ variant: {
614
+ classPropertyName: "variant",
615
+ publicName: "variant",
616
+ isSignal: true,
617
+ isRequired: false,
618
+ transformFunction: null
619
+ }
620
+ },
621
+ host: {
622
+ listeners: {
623
+ "focus": "syncActiveState()",
624
+ "click": "preventDisabled($any($event))"
625
+ },
626
+ properties: {
627
+ "class": "classes()",
628
+ "attr.tabindex": "tabIndex()",
629
+ "attr.aria-disabled": "disabled() ? \"true\" : null",
630
+ "attr.data-variant": "variant()"
631
+ }
632
+ },
633
+ providers: [{
634
+ provide: NavigationMenuRootItem,
635
+ useExisting: forwardRef(() => NavigationMenuLinkDirective)
636
+ }],
637
+ exportAs: ["NavigationMenuLink"],
638
+ usesInheritance: true,
639
+ ngImport: i0
640
+ });
641
+ };
642
+ i0.ɵɵngDeclareClassMetadata({
643
+ minVersion: "12.0.0",
644
+ version: "22.2.4",
645
+ ngImport: i0,
646
+ type: NavigationMenuLinkDirective,
647
+ decorators: [{
648
+ type: Directive,
649
+ args: [{
650
+ selector: "a[NavigationMenuLink], button[NavigationMenuLink]",
651
+ exportAs: "NavigationMenuLink",
652
+ providers: [{
653
+ provide: NavigationMenuRootItem,
654
+ useExisting: forwardRef(() => NavigationMenuLinkDirective)
655
+ }],
656
+ host: {
657
+ "[class]": "classes()",
658
+ "[attr.tabindex]": "tabIndex()",
659
+ "[attr.aria-disabled]": "disabled() ? \"true\" : null",
660
+ "[attr.data-variant]": "variant()",
661
+ "(focus)": "syncActiveState()",
662
+ "(click)": "preventDisabled($any($event))"
663
+ }
664
+ }]
665
+ }],
666
+ propDecorators: {
667
+ class: [{
668
+ type: i0.Input,
669
+ args: [{
670
+ isSignal: true,
671
+ alias: "class",
672
+ required: false
673
+ }]
674
+ }],
675
+ variant: [{
676
+ type: i0.Input,
677
+ args: [{
678
+ isSignal: true,
679
+ alias: "variant",
680
+ required: false
681
+ }]
682
+ }]
683
+ }
684
+ });
685
+ export { NavigationMenuComponent, NavigationMenuContentDirective, NavigationMenuItemComponent, NavigationMenuLinkDirective, NavigationMenuListComponent, NavigationMenuRootItem, NavigationMenuTriggerDirective };