@rxap/layout 21.0.1 → 22.0.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/compodoc/architecture.html +222 -0
  3. package/compodoc/changelog.html +85 -5
  4. package/compodoc/components/AppsButtonComponent.html +174 -40
  5. package/compodoc/components/BaseLayoutComponent.html +115 -23
  6. package/compodoc/components/DefaultHeaderComponent.html +205 -36
  7. package/compodoc/components/FooterComponent.html +142 -27
  8. package/compodoc/components/HeaderComponent.html +165 -61
  9. package/compodoc/components/LayoutComponent.html +194 -44
  10. package/compodoc/components/MinimalLayoutComponent.html +120 -26
  11. package/compodoc/components/NavigationComponent.html +220 -133
  12. package/compodoc/components/NavigationItemComponent.html +248 -115
  13. package/compodoc/components/NavigationProgressBarComponent.html +121 -25
  14. package/compodoc/components/ReleaseInfoComponent.html +149 -32
  15. package/compodoc/components/SettingsButtonComponent.html +224 -60
  16. package/compodoc/components/SidenavComponent.html +222 -56
  17. package/compodoc/components/SidenavToggleButtonComponent.html +117 -27
  18. package/compodoc/components/UserProfileIconComponent.html +155 -66
  19. package/compodoc/dependencies.html +152 -49
  20. package/compodoc/directives/FooterDirective.html +74 -20
  21. package/compodoc/directives/HeaderDirective.html +74 -20
  22. package/compodoc/directives/SidenavFooterDirective.html +91 -19
  23. package/compodoc/directives/SidenavHeaderDirective.html +72 -19
  24. package/compodoc/index.html +46 -5
  25. package/compodoc/injectables/DefaultHeaderService.html +91 -25
  26. package/compodoc/injectables/ExternalAppsService.html +123 -21
  27. package/compodoc/injectables/FooterService.html +91 -25
  28. package/compodoc/injectables/HeaderService.html +91 -25
  29. package/compodoc/injectables/LayoutService.html +91 -21
  30. package/compodoc/injectables/LogoService.html +103 -17
  31. package/compodoc/injectables/NavigationService.html +84 -24
  32. package/compodoc/interfaces/NavigationDividerItem.html +155 -100
  33. package/compodoc/interfaces/NavigationInsertItem.html +114 -64
  34. package/compodoc/interfaces/NavigationItem.html +305 -216
  35. package/compodoc/interfaces/NavigationStatus.html +80 -35
  36. package/compodoc/interfaces/ReleaseInfoModule.html +197 -137
  37. package/compodoc/interfaces/SettingsMenuItem.html +197 -137
  38. package/compodoc/js/architecture-graph.js +288 -0
  39. package/compodoc/js/libs/bootstrap-native.js +4 -2
  40. package/compodoc/js/libs/jszip.min.js +13 -0
  41. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  42. package/compodoc/js/libs/tablesort.min.js +3 -3
  43. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  44. package/compodoc/js/libs/vis-network.min.js +78 -0
  45. package/compodoc/js/menu-wc.js +26 -13
  46. package/compodoc/js/menu.js +10 -11
  47. package/compodoc/js/routes/routes_index.js +1 -0
  48. package/compodoc/js/routes.js +142 -34
  49. package/compodoc/js/search/search-lunr.js +6 -8
  50. package/compodoc/js/search/search.js +118 -66
  51. package/compodoc/js/search/search_index.js +2 -2
  52. package/compodoc/js/tabs.js +98 -15
  53. package/compodoc/js/tree.js +44 -7
  54. package/compodoc/license.html +48 -6
  55. package/compodoc/llms.txt +523 -0
  56. package/compodoc/miscellaneous/functions.html +90 -41
  57. package/compodoc/miscellaneous/typealiases.html +55 -12
  58. package/compodoc/miscellaneous/variables.html +163 -20
  59. package/compodoc/modules.html +44 -3
  60. package/compodoc/overview.html +54 -3
  61. package/compodoc/properties.html +45 -4
  62. package/compodoc/routes.html +227 -0
  63. package/compodoc/styles/compodoc.css +365 -44
  64. package/compodoc/styles/dark.css +16 -0
  65. package/compodoc/template-playground/default-templates.json +192 -0
  66. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  67. package/compodoc/template-playground/main.ts +9 -0
  68. package/compodoc/template-playground/template-editor.service.ts +173 -0
  69. package/compodoc/template-playground/template-playground.component.ts +614 -0
  70. package/compodoc/template-playground/template-playground.module.ts +29 -0
  71. package/compodoc/template-playground/zip-export.service.ts +86 -0
  72. package/compodoc/template-playground-app/app.js +1389 -0
  73. package/compodoc/template-playground-app/index.html +462 -0
  74. package/docs/documentation.json +1672 -1215
  75. package/docs/html/assets/highlight.css +1 -1
  76. package/docs/html/assets/icons.js +1 -1
  77. package/docs/html/assets/icons.svg +1 -1
  78. package/docs/html/assets/main.js +5 -5
  79. package/docs/html/assets/search.js +1 -1
  80. package/docs/html/assets/style.css +265 -228
  81. package/docs/html/classes/AppsButtonComponent.html +110 -8
  82. package/docs/html/classes/BaseLayoutComponent.html +56 -2
  83. package/docs/html/classes/DefaultHeaderComponent.html +112 -10
  84. package/docs/html/classes/DefaultHeaderService.html +128 -13
  85. package/docs/html/classes/ExternalAppsService.html +240 -19
  86. package/docs/html/classes/FooterComponent.html +82 -5
  87. package/docs/html/classes/FooterDirective.html +95 -6
  88. package/docs/html/classes/FooterService.html +128 -13
  89. package/docs/html/classes/HeaderComponent.html +88 -6
  90. package/docs/html/classes/HeaderDirective.html +95 -6
  91. package/docs/html/classes/HeaderService.html +128 -13
  92. package/docs/html/classes/LayoutComponent.html +88 -6
  93. package/docs/html/classes/LayoutService.html +174 -16
  94. package/docs/html/classes/LogoService.html +88 -6
  95. package/docs/html/classes/MinimalLayoutComponent.html +56 -2
  96. package/docs/html/classes/NavigationComponent.html +156 -12
  97. package/docs/html/classes/NavigationItemComponent.html +172 -14
  98. package/docs/html/classes/NavigationProgressBarComponent.html +76 -4
  99. package/docs/html/classes/NavigationService.html +197 -12
  100. package/docs/html/classes/ReleaseInfoComponent.html +100 -6
  101. package/docs/html/classes/SettingsButtonComponent.html +242 -19
  102. package/docs/html/classes/SidenavComponent.html +190 -19
  103. package/docs/html/classes/SidenavFooterDirective.html +70 -3
  104. package/docs/html/classes/SidenavHeaderDirective.html +70 -3
  105. package/docs/html/classes/SidenavToggleButtonComponent.html +94 -5
  106. package/docs/html/classes/UserProfileIconComponent.html +106 -7
  107. package/docs/html/functions/IsNavigationDividerItem.html +42 -1
  108. package/docs/html/functions/IsNavigationInsertItem.html +42 -1
  109. package/docs/html/functions/IsNavigationItem.html +42 -1
  110. package/docs/html/functions/provideExternalApps.html +42 -1
  111. package/docs/html/functions/provideLayout.html +42 -1
  112. package/docs/html/functions/withDefaultHeaderComponent.html +38 -1
  113. package/docs/html/functions/withDefaultHeaderItems.html +42 -1
  114. package/docs/html/functions/withFooterComponents.html +42 -1
  115. package/docs/html/functions/withHeaderComponents.html +42 -1
  116. package/docs/html/functions/withNavigationConfig.html +42 -1
  117. package/docs/html/functions/withNavigationInserts.html +42 -1
  118. package/docs/html/functions/withReleaseInfoModules.html +42 -1
  119. package/docs/html/functions/withSettingsMenuItems.html +42 -1
  120. package/docs/html/functions/withUserProfileDataSource.html +43 -1
  121. package/docs/html/hierarchy.html +29 -0
  122. package/docs/html/index.html +92 -18
  123. package/docs/html/interfaces/NavigationDividerItem.html +61 -3
  124. package/docs/html/interfaces/NavigationInsertItem.html +55 -2
  125. package/docs/html/interfaces/NavigationItem.html +94 -6
  126. package/docs/html/interfaces/NavigationStatus.html +63 -2
  127. package/docs/html/interfaces/ReleaseInfoModule.html +67 -4
  128. package/docs/html/interfaces/SettingsMenuItem.html +67 -4
  129. package/docs/html/modules.html +52 -1
  130. package/docs/html/types/DefaultHeaderItemComponent.html +33 -1
  131. package/docs/html/types/ExternalApp.html +33 -1
  132. package/docs/html/types/ExtractUsernameFromProfileFn.html +49 -1
  133. package/docs/html/types/Navigation.html +33 -1
  134. package/docs/html/types/NavigationWithInserts.html +33 -1
  135. package/docs/html/types/SettingsMenuItemComponent.html +33 -1
  136. package/docs/html/variables/EXTRACT_USERNAME_FROM_PROFILE.html +33 -1
  137. package/docs/html/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.html +33 -1
  138. package/docs/html/variables/RXAP_EXTERNAL_APP.html +33 -1
  139. package/docs/html/variables/RXAP_EXTERNAL_APP_FILTER.html +33 -1
  140. package/docs/html/variables/RXAP_FOOTER_COMPONENT.html +33 -1
  141. package/docs/html/variables/RXAP_HEADER_COMPONENT.html +33 -1
  142. package/docs/html/variables/RXAP_LAYOUT_APPS_GRID.html +33 -1
  143. package/docs/html/variables/RXAP_LOGO_CONFIG.html +33 -1
  144. package/docs/html/variables/RXAP_LOGO_CONFIG_DEFAULTS.html +33 -1
  145. package/docs/html/variables/RXAP_NAVIGATION_CONFIG.html +33 -1
  146. package/docs/html/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +33 -1
  147. package/docs/html/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.html +33 -1
  148. package/docs/html/variables/RXAP_RELEASE_INFO_MODULE.html +33 -1
  149. package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM.html +33 -1
  150. package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +33 -1
  151. package/docs/html/variables/RXAP_USER_PROFILE_DATA_SOURCE.html +33 -1
  152. package/docs/markdown/README.md +1 -1
  153. package/docs/markdown/classes/AppsButtonComponent.md +11 -11
  154. package/docs/markdown/classes/BaseLayoutComponent.md +5 -5
  155. package/docs/markdown/classes/DefaultHeaderComponent.md +13 -13
  156. package/docs/markdown/classes/DefaultHeaderService.md +9 -9
  157. package/docs/markdown/classes/ExternalAppsService.md +29 -29
  158. package/docs/markdown/classes/FooterComponent.md +8 -8
  159. package/docs/markdown/classes/FooterDirective.md +7 -7
  160. package/docs/markdown/classes/FooterService.md +9 -9
  161. package/docs/markdown/classes/HeaderComponent.md +9 -9
  162. package/docs/markdown/classes/HeaderDirective.md +7 -7
  163. package/docs/markdown/classes/HeaderService.md +9 -9
  164. package/docs/markdown/classes/LayoutComponent.md +9 -9
  165. package/docs/markdown/classes/LayoutService.md +21 -21
  166. package/docs/markdown/classes/LogoService.md +9 -9
  167. package/docs/markdown/classes/MinimalLayoutComponent.md +5 -5
  168. package/docs/markdown/classes/NavigationComponent.md +19 -19
  169. package/docs/markdown/classes/NavigationItemComponent.md +21 -21
  170. package/docs/markdown/classes/NavigationProgressBarComponent.md +7 -7
  171. package/docs/markdown/classes/NavigationService.md +26 -26
  172. package/docs/markdown/classes/ReleaseInfoComponent.md +9 -9
  173. package/docs/markdown/classes/SettingsButtonComponent.md +24 -24
  174. package/docs/markdown/classes/SidenavComponent.md +24 -24
  175. package/docs/markdown/classes/SidenavFooterDirective.md +6 -6
  176. package/docs/markdown/classes/SidenavHeaderDirective.md +6 -6
  177. package/docs/markdown/classes/SidenavToggleButtonComponent.md +8 -8
  178. package/docs/markdown/classes/UserProfileIconComponent.md +11 -11
  179. package/docs/markdown/functions/IsNavigationDividerItem.md +2 -2
  180. package/docs/markdown/functions/IsNavigationInsertItem.md +2 -2
  181. package/docs/markdown/functions/IsNavigationItem.md +2 -2
  182. package/docs/markdown/functions/provideExternalApps.md +2 -2
  183. package/docs/markdown/functions/provideLayout.md +2 -2
  184. package/docs/markdown/functions/withDefaultHeaderComponent.md +2 -2
  185. package/docs/markdown/functions/withDefaultHeaderItems.md +3 -3
  186. package/docs/markdown/functions/withFooterComponents.md +2 -2
  187. package/docs/markdown/functions/withHeaderComponents.md +2 -2
  188. package/docs/markdown/functions/withNavigationConfig.md +3 -3
  189. package/docs/markdown/functions/withNavigationInserts.md +2 -2
  190. package/docs/markdown/functions/withReleaseInfoModules.md +2 -2
  191. package/docs/markdown/functions/withSettingsMenuItems.md +3 -3
  192. package/docs/markdown/functions/withUserProfileDataSource.md +4 -4
  193. package/docs/markdown/globals.md +2 -2
  194. package/docs/markdown/interfaces/NavigationDividerItem.md +5 -5
  195. package/docs/markdown/interfaces/NavigationInsertItem.md +3 -3
  196. package/docs/markdown/interfaces/NavigationItem.md +14 -12
  197. package/docs/markdown/interfaces/NavigationStatus.md +3 -3
  198. package/docs/markdown/interfaces/ReleaseInfoModule.md +6 -6
  199. package/docs/markdown/interfaces/SettingsMenuItem.md +7 -7
  200. package/docs/markdown/type-aliases/DefaultHeaderItemComponent.md +3 -3
  201. package/docs/markdown/type-aliases/ExternalApp.md +3 -3
  202. package/docs/markdown/type-aliases/ExtractUsernameFromProfileFn.md +7 -5
  203. package/docs/markdown/type-aliases/Navigation.md +3 -3
  204. package/docs/markdown/type-aliases/NavigationWithInserts.md +3 -3
  205. package/docs/markdown/type-aliases/SettingsMenuItemComponent.md +3 -3
  206. package/docs/markdown/variables/EXTRACT_USERNAME_FROM_PROFILE.md +2 -2
  207. package/docs/markdown/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +3 -3
  208. package/docs/markdown/variables/RXAP_EXTERNAL_APP.md +2 -2
  209. package/docs/markdown/variables/RXAP_EXTERNAL_APP_FILTER.md +2 -2
  210. package/docs/markdown/variables/RXAP_FOOTER_COMPONENT.md +2 -2
  211. package/docs/markdown/variables/RXAP_HEADER_COMPONENT.md +2 -2
  212. package/docs/markdown/variables/RXAP_LAYOUT_APPS_GRID.md +2 -2
  213. package/docs/markdown/variables/RXAP_LOGO_CONFIG.md +2 -2
  214. package/docs/markdown/variables/RXAP_LOGO_CONFIG_DEFAULTS.md +2 -2
  215. package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG.md +3 -3
  216. package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG_INSERTS.md +2 -2
  217. package/docs/markdown/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +2 -2
  218. package/docs/markdown/variables/RXAP_RELEASE_INFO_MODULE.md +2 -2
  219. package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM.md +2 -2
  220. package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +3 -3
  221. package/docs/markdown/variables/RXAP_USER_PROFILE_DATA_SOURCE.md +2 -2
  222. package/docs/wiki/Class.AppsButtonComponent.md +10 -10
  223. package/docs/wiki/Class.BaseLayoutComponent.md +4 -4
  224. package/docs/wiki/Class.DefaultHeaderComponent.md +12 -12
  225. package/docs/wiki/Class.DefaultHeaderService.md +8 -8
  226. package/docs/wiki/Class.ExternalAppsService.md +28 -28
  227. package/docs/wiki/Class.FooterComponent.md +7 -7
  228. package/docs/wiki/Class.FooterDirective.md +6 -6
  229. package/docs/wiki/Class.FooterService.md +8 -8
  230. package/docs/wiki/Class.HeaderComponent.md +8 -8
  231. package/docs/wiki/Class.HeaderDirective.md +6 -6
  232. package/docs/wiki/Class.HeaderService.md +8 -8
  233. package/docs/wiki/Class.LayoutComponent.md +8 -8
  234. package/docs/wiki/Class.LayoutService.md +20 -20
  235. package/docs/wiki/Class.LogoService.md +8 -8
  236. package/docs/wiki/Class.MinimalLayoutComponent.md +4 -4
  237. package/docs/wiki/Class.NavigationComponent.md +18 -18
  238. package/docs/wiki/Class.NavigationItemComponent.md +20 -20
  239. package/docs/wiki/Class.NavigationProgressBarComponent.md +6 -6
  240. package/docs/wiki/Class.NavigationService.md +25 -25
  241. package/docs/wiki/Class.ReleaseInfoComponent.md +8 -8
  242. package/docs/wiki/Class.SettingsButtonComponent.md +23 -23
  243. package/docs/wiki/Class.SidenavComponent.md +23 -23
  244. package/docs/wiki/Class.SidenavFooterDirective.md +5 -5
  245. package/docs/wiki/Class.SidenavHeaderDirective.md +5 -5
  246. package/docs/wiki/Class.SidenavToggleButtonComponent.md +7 -7
  247. package/docs/wiki/Class.UserProfileIconComponent.md +10 -10
  248. package/docs/wiki/Function.IsNavigationDividerItem.md +1 -1
  249. package/docs/wiki/Function.IsNavigationInsertItem.md +1 -1
  250. package/docs/wiki/Function.IsNavigationItem.md +1 -1
  251. package/docs/wiki/Function.provideExternalApps.md +1 -1
  252. package/docs/wiki/Function.provideLayout.md +1 -1
  253. package/docs/wiki/Function.withDefaultHeaderComponent.md +1 -1
  254. package/docs/wiki/Function.withDefaultHeaderItems.md +2 -2
  255. package/docs/wiki/Function.withFooterComponents.md +1 -1
  256. package/docs/wiki/Function.withHeaderComponents.md +1 -1
  257. package/docs/wiki/Function.withNavigationConfig.md +2 -2
  258. package/docs/wiki/Function.withNavigationInserts.md +1 -1
  259. package/docs/wiki/Function.withReleaseInfoModules.md +1 -1
  260. package/docs/wiki/Function.withSettingsMenuItems.md +2 -2
  261. package/docs/wiki/Function.withUserProfileDataSource.md +3 -3
  262. package/docs/wiki/Interface.NavigationDividerItem.md +4 -4
  263. package/docs/wiki/Interface.NavigationInsertItem.md +2 -2
  264. package/docs/wiki/Interface.NavigationItem.md +13 -11
  265. package/docs/wiki/Interface.NavigationStatus.md +2 -2
  266. package/docs/wiki/Interface.ReleaseInfoModule.md +5 -5
  267. package/docs/wiki/Interface.SettingsMenuItem.md +6 -6
  268. package/docs/wiki/TypeAlias.DefaultHeaderItemComponent.md +2 -2
  269. package/docs/wiki/TypeAlias.ExternalApp.md +2 -2
  270. package/docs/wiki/TypeAlias.ExtractUsernameFromProfileFn.md +6 -4
  271. package/docs/wiki/TypeAlias.Navigation.md +2 -2
  272. package/docs/wiki/TypeAlias.NavigationWithInserts.md +2 -2
  273. package/docs/wiki/TypeAlias.SettingsMenuItemComponent.md +2 -2
  274. package/docs/wiki/Variable.EXTRACT_USERNAME_FROM_PROFILE.md +1 -1
  275. package/docs/wiki/Variable.RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +2 -2
  276. package/docs/wiki/Variable.RXAP_EXTERNAL_APP.md +1 -1
  277. package/docs/wiki/Variable.RXAP_EXTERNAL_APP_FILTER.md +1 -1
  278. package/docs/wiki/Variable.RXAP_FOOTER_COMPONENT.md +1 -1
  279. package/docs/wiki/Variable.RXAP_HEADER_COMPONENT.md +1 -1
  280. package/docs/wiki/Variable.RXAP_LAYOUT_APPS_GRID.md +1 -1
  281. package/docs/wiki/Variable.RXAP_LOGO_CONFIG.md +1 -1
  282. package/docs/wiki/Variable.RXAP_LOGO_CONFIG_DEFAULTS.md +1 -1
  283. package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG.md +2 -2
  284. package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG_INSERTS.md +1 -1
  285. package/docs/wiki/Variable.RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +1 -1
  286. package/docs/wiki/Variable.RXAP_RELEASE_INFO_MODULE.md +1 -1
  287. package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM.md +1 -1
  288. package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +2 -2
  289. package/docs/wiki/Variable.RXAP_USER_PROFILE_DATA_SOURCE.md +1 -1
  290. package/docs/wiki/globals.md +1 -1
  291. package/fesm2022/rxap-layout.mjs +2035 -697
  292. package/fesm2022/rxap-layout.mjs.map +1 -1
  293. package/package.json +44 -44
  294. package/src/migrations/18.0.0/add-user-theme-provider-to-layout-providers/add-user-theme-provider-to-layout-providers.spec.ts +9 -0
  295. package/src/migrations/18.0.0/add-with-user-profile-provider/add-with-user-profile-provider.spec.ts +9 -0
  296. package/src/test-setup.ts +4 -17
  297. package/types/rxap-layout.d.ts +508 -507
@@ -1,194 +1,228 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, TemplateRef, Directive, InjectionToken, signal, computed, isDevMode, Injectable, effect, INJECTOR, input, ViewEncapsulation, ChangeDetectionStrategy, Component, forwardRef, viewChild, contentChild, ViewContainerRef, Injector, runInInjectionContext, LOCALE_ID } from '@angular/core';
3
- import { NgClass, AsyncPipe, NgStyle, NgTemplateOutlet, NgOptimizedImage } from '@angular/common';
4
- import { MatIconButton, MatButton, MatButtonModule, MatAnchor } from '@angular/material/button';
5
- import * as i3 from '@angular/material/divider';
6
- import { MatDividerModule, MatDivider } from '@angular/material/divider';
7
- import * as i2 from '@angular/material/icon';
8
- import { MatIconModule, MatIcon } from '@angular/material/icon';
9
- import { MatSidenav, MatSidenavContainer, MatSidenavContent, MatSidenavModule } from '@angular/material/sidenav';
10
- import { MediaMatcher } from '@angular/cdk/layout';
11
- import { toSignal, toObservable } from '@angular/core/rxjs-interop';
12
- import { ConfigService } from '@rxap/config';
13
- import { ObserveCurrentThemeDensity, ThemeService } from '@rxap/ngx-theme';
14
- import { Observable, ReplaySubject, of, from, combineLatest, debounceTime, switchMap as switchMap$1, EMPTY } from 'rxjs';
15
- import * as i2$1 from '@angular/cdk/portal';
16
- import { ComponentPortal, PortalModule, CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal';
17
- import { staticDataSource } from '@rxap/data-source';
18
- import { coerceArray, IsFunction, clone, JoinPath } from '@rxap/utilities';
19
- import { switchMap, map, catchError, filter, startWith } from 'rxjs/operators';
20
- import { trigger, transition, style, animate } from '@angular/animations';
21
- import * as i1 from '@angular/material/core';
22
- import { MatRippleModule } from '@angular/material/core';
23
- import { Router, NavigationEnd, RouterLinkActive, RouterLink, NavigationStart, NavigationCancel, RouterOutlet } from '@angular/router';
24
- import { IconDirective } from '@rxap/material-directives/icon';
25
- import { MatDialog } from '@angular/material/dialog';
26
- import { DetermineReleaseName, RXAP_ENVIRONMENT, EnvironmentComponent } from '@rxap/environment';
27
- import { MatProgressBar } from '@angular/material/progress-bar';
28
- import * as i1$1 from '@angular/material/toolbar';
29
- import { MatToolbarModule, MatToolbar, MatToolbarRow } from '@angular/material/toolbar';
30
- import * as i1$2 from '@angular/material/menu';
31
- import { MatMenuModule, MatMenu, MatMenuTrigger, MatMenuItem } from '@angular/material/menu';
32
- import { PubSubService, RXAP_TOPICS } from '@rxap/ngx-pub-sub';
33
- import { __decorate } from 'tslib';
34
- import { ClickOnLink } from '@rxap/browser-utilities';
35
- class SidenavFooterDirective {
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, INJECTOR, Injectable, InjectionToken, Injector, LOCALE_ID, TemplateRef, ViewContainerRef, ViewEncapsulation, computed, contentChild, effect, forwardRef, inject, input, isDevMode, runInInjectionContext, signal, viewChild } from "@angular/core";
3
+ import { __decorate, __metadata } from "tslib";
4
+ import { AsyncPipe, NgClass, NgOptimizedImage, NgStyle, NgTemplateOutlet } from "@angular/common";
5
+ import { MatAnchor, MatButton, MatButtonModule, MatIconButton } from "@angular/material/button";
6
+ import * as i3 from "@angular/material/divider";
7
+ import { MatDivider, MatDividerModule } from "@angular/material/divider";
8
+ import * as i2$1 from "@angular/material/icon";
9
+ import { MatIcon, MatIconModule } from "@angular/material/icon";
10
+ import { MatSidenav, MatSidenavContainer, MatSidenavContent, MatSidenavModule } from "@angular/material/sidenav";
11
+ import { MediaMatcher } from "@angular/cdk/layout";
12
+ import { toObservable, toSignal } from "@angular/core/rxjs-interop";
13
+ import { ConfigService } from "@rxap/config";
14
+ import { ObserveCurrentThemeDensity, ThemeService } from "@rxap/ngx-theme";
15
+ import { EMPTY, Observable, ReplaySubject, combineLatest, debounceTime, from, of, switchMap } from "rxjs";
16
+ import * as i2 from "@angular/cdk/portal";
17
+ import { CdkPortalOutlet, ComponentPortal, PortalModule, TemplatePortal } from "@angular/cdk/portal";
18
+ import { staticDataSource } from "@rxap/data-source";
19
+ import { IsFunction, JoinPath, clone, coerceArray } from "@rxap/utilities";
20
+ import { catchError, filter, map, startWith, switchMap as switchMap$1 } from "rxjs/operators";
21
+ import { animate, style, transition, trigger } from "@angular/animations";
22
+ import * as i1$2 from "@angular/material/core";
23
+ import { MatRippleModule } from "@angular/material/core";
24
+ import { NavigationCancel, NavigationEnd, NavigationStart, Router, RouterLink, RouterLinkActive, RouterOutlet } from "@angular/router";
25
+ import { IconDirective } from "@rxap/material-directives/icon";
26
+ import { MatDialog } from "@angular/material/dialog";
27
+ import { DetermineReleaseName, EnvironmentComponent, RXAP_ENVIRONMENT } from "@rxap/environment";
28
+ import { MatProgressBar } from "@angular/material/progress-bar";
29
+ import * as i1$1 from "@angular/material/toolbar";
30
+ import { MatToolbar, MatToolbarModule, MatToolbarRow } from "@angular/material/toolbar";
31
+ import * as i1 from "@angular/material/menu";
32
+ import { MatMenu, MatMenuItem, MatMenuModule, MatMenuTrigger } from "@angular/material/menu";
33
+ import { PubSubService, RXAP_TOPICS } from "@rxap/ngx-pub-sub";
34
+ import { ClickOnLink } from "@rxap/browser-utilities";
35
+ var SidenavFooterDirective = class SidenavFooterDirective {
36
36
  constructor() {
37
37
  this.template = inject(TemplateRef);
38
38
  }
39
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
40
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: SidenavFooterDirective, isStandalone: true, selector: "[rxapSidenavFooter]", ngImport: i0 }); }
41
- }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavFooterDirective, decorators: [{
39
+ static {
40
+ this.ɵfac = i0.ɵɵngDeclareFactory({
41
+ minVersion: "12.0.0",
42
+ version: "22.3.0",
43
+ ngImport: i0,
44
+ type: SidenavFooterDirective,
45
+ deps: [],
46
+ target: i0.ɵɵFactoryTarget.Directive
47
+ });
48
+ }
49
+ static {
50
+ this.ɵdir = i0.ɵɵngDeclareDirective({
51
+ minVersion: "14.0.0",
52
+ version: "22.3.0",
53
+ type: SidenavFooterDirective,
54
+ isStandalone: true,
55
+ selector: "[rxapSidenavFooter]",
56
+ ngImport: i0
57
+ });
58
+ }
59
+ };
60
+ i0.ɵɵngDeclareClassMetadata({
61
+ minVersion: "12.0.0",
62
+ version: "22.3.0",
63
+ ngImport: i0,
64
+ type: SidenavFooterDirective,
65
+ decorators: [{
43
66
  type: Directive,
44
67
  args: [{
45
- selector: '[rxapSidenavFooter]',
46
- standalone: true,
68
+ selector: "[rxapSidenavFooter]",
69
+ standalone: true
47
70
  }]
48
- }] });
49
- class SidenavHeaderDirective {
71
+ }]
72
+ });
73
+ var SidenavHeaderDirective = class SidenavHeaderDirective {
50
74
  constructor() {
51
75
  this.template = inject(TemplateRef);
52
76
  }
53
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
54
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: SidenavHeaderDirective, isStandalone: true, selector: "[rxapSidenavHeader]", ngImport: i0 }); }
55
- }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavHeaderDirective, decorators: [{
77
+ static {
78
+ this.ɵfac = i0.ɵɵngDeclareFactory({
79
+ minVersion: "12.0.0",
80
+ version: "22.3.0",
81
+ ngImport: i0,
82
+ type: SidenavHeaderDirective,
83
+ deps: [],
84
+ target: i0.ɵɵFactoryTarget.Directive
85
+ });
86
+ }
87
+ static {
88
+ this.ɵdir = i0.ɵɵngDeclareDirective({
89
+ minVersion: "14.0.0",
90
+ version: "22.3.0",
91
+ type: SidenavHeaderDirective,
92
+ isStandalone: true,
93
+ selector: "[rxapSidenavHeader]",
94
+ ngImport: i0
95
+ });
96
+ }
97
+ };
98
+ i0.ɵɵngDeclareClassMetadata({
99
+ minVersion: "12.0.0",
100
+ version: "22.3.0",
101
+ ngImport: i0,
102
+ type: SidenavHeaderDirective,
103
+ decorators: [{
57
104
  type: Directive,
58
105
  args: [{
59
- selector: '[rxapSidenavHeader]',
60
- standalone: true,
106
+ selector: "[rxapSidenavHeader]",
107
+ standalone: true
61
108
  }]
62
- }] });
63
- const RXAP_NAVIGATION_CONFIG = new InjectionToken('rxap/layout/navigation-config');
64
- const RXAP_NAVIGATION_CONFIG_INSERTS = new InjectionToken('rxap/layout/navigation-config-inserts');
65
- const RXAP_FOOTER_COMPONENT = new InjectionToken('rxap/layout/footer-component');
66
- const RXAP_HEADER_COMPONENT = new InjectionToken('rxap/layout/header-component');
67
- const RXAP_LOGO_CONFIG = new InjectionToken('rxap/layout/logo-config');
68
- const RXAP_LAYOUT_APPS_GRID = new InjectionToken('rxap/layout/apps-grid');
69
- const RXAP_EXTERNAL_APP_FILTER = new InjectionToken('rxap/layout/app-config-filter');
70
- const EXTRACT_USERNAME_FROM_PROFILE = new InjectionToken('extract-username-from-profile', {
71
- providedIn: 'root',
72
- factory: () => (profile) => (profile ? profile.displayName || profile.username || profile.email || profile.name : null) || null,
109
+ }]
110
+ });
111
+ const RXAP_NAVIGATION_CONFIG = new InjectionToken("rxap/layout/navigation-config");
112
+ const RXAP_NAVIGATION_CONFIG_INSERTS = new InjectionToken("rxap/layout/navigation-config-inserts");
113
+ const RXAP_FOOTER_COMPONENT = new InjectionToken("rxap/layout/footer-component");
114
+ const RXAP_HEADER_COMPONENT = new InjectionToken("rxap/layout/header-component");
115
+ const RXAP_LOGO_CONFIG = new InjectionToken("rxap/layout/logo-config");
116
+ const RXAP_LAYOUT_APPS_GRID = new InjectionToken("rxap/layout/apps-grid");
117
+ const RXAP_EXTERNAL_APP_FILTER = new InjectionToken("rxap/layout/app-config-filter");
118
+ const EXTRACT_USERNAME_FROM_PROFILE = new InjectionToken("extract-username-from-profile", {
119
+ providedIn: "root",
120
+ factory: () => (profile) => (profile ? profile.displayName || profile.username || profile.email || profile.name : null) || null
73
121
  });
74
- const RXAP_USER_PROFILE_DATA_SOURCE = new InjectionToken('rxap/layout/user-profile-data-source', {
75
- providedIn: 'root',
76
- factory: () => staticDataSource(null),
122
+ const RXAP_USER_PROFILE_DATA_SOURCE = new InjectionToken("rxap/layout/user-profile-data-source", {
123
+ providedIn: "root",
124
+ factory: () => staticDataSource(null)
77
125
  });
78
- const RXAP_EXTERNAL_APP = new InjectionToken('rxap/layout/external-app');
79
- const RXAP_RELEASE_INFO_MODULE = new InjectionToken('rxap/layout/release-info-module');
80
- const RXAP_SETTINGS_MENU_ITEM_COMPONENT = new InjectionToken('rxap/layout/settings-menu-item-component');
81
- const RXAP_DEFAULT_HEADER_ITEM_COMPONENT = new InjectionToken('rxap/layout/default-header-item-component');
82
- const RXAP_SETTINGS_MENU_ITEM = new InjectionToken('rxap/layout/settings-menu-item');
83
- const RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS = new InjectionToken('rxap/layout/navigation-config/defaults');
84
- const RXAP_LOGO_CONFIG_DEFAULTS = new InjectionToken('rxap/layout/logo-config/defaults');
85
- class FooterService {
126
+ const RXAP_EXTERNAL_APP = new InjectionToken("rxap/layout/external-app");
127
+ const RXAP_RELEASE_INFO_MODULE = new InjectionToken("rxap/layout/release-info-module");
128
+ const RXAP_SETTINGS_MENU_ITEM_COMPONENT = new InjectionToken("rxap/layout/settings-menu-item-component");
129
+ const RXAP_DEFAULT_HEADER_ITEM_COMPONENT = new InjectionToken("rxap/layout/default-header-item-component");
130
+ const RXAP_SETTINGS_MENU_ITEM = new InjectionToken("rxap/layout/settings-menu-item");
131
+ const RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS = new InjectionToken("rxap/layout/navigation-config/defaults");
132
+ const RXAP_LOGO_CONFIG_DEFAULTS = new InjectionToken("rxap/layout/logo-config/defaults");
133
+ var FooterService = class FooterService {
86
134
  constructor() {
87
135
  this.components = coerceArray(inject(RXAP_FOOTER_COMPONENT, { optional: true }));
88
- /**
89
- * Represents an array of `Portal` objects with unknown type.
90
- */
91
- this.portals = signal(this.components.map(component => new ComponentPortal(component)), ...(ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []));
92
- /**
93
- * Computes the count of portals.
94
- *
95
- * @returns {number} The count of portals.
96
- */
97
- this.portalCount = computed(() => this.portals().length, ...(ngDevMode ? [{ debugName: "portalCount" }] : /* istanbul ignore next */ []));
98
- }
99
- /**
100
- * Adds a portal to the list of portals.
101
- *
102
- * @param {Portal<unknown>} portal - The portal to be added.
103
- *
104
- * @return {void}
105
- */
136
+ this.portals = signal(this.components.map((component) => new ComponentPortal(component)), ...ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []);
137
+ this.portalCount = computed(() => this.portals().length, ...ngDevMode ? [{ debugName: "portalCount" }] : /* istanbul ignore next */ []);
138
+ }
106
139
  pushPortal(portal) {
107
- if (!this.portals().includes(portal)) {
108
- this.portals.update(portals => [...portals, portal]);
109
- }
110
- else {
111
- if (isDevMode()) {
112
- console.warn('Can not add the same portal multiple times');
113
- }
114
- }
140
+ if (!this.portals().includes(portal))
141
+ this.portals.update((portals) => [...portals, portal]);
142
+ else if (isDevMode())
143
+ console.warn("Can not add the same portal multiple times");
115
144
  }
116
- /**
117
- * Removes a portal from the list of portals.
118
- *
119
- * @param {Portal<unknown>} portal - The portal to be removed.
120
- * @return {void}
121
- */
122
145
  removePortal(portal) {
123
146
  const index = this.portals().indexOf(portal);
124
- if (index !== -1) {
125
- this.portals.update(portals => {
147
+ if (index !== -1)
148
+ this.portals.update((portals) => {
126
149
  portals.splice(index, 1);
127
150
  return portals.slice();
128
151
  });
129
- }
130
152
  }
131
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FooterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
132
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FooterService }); }
133
- }
134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FooterService, decorators: [{
135
- type: Injectable
136
- }] });
137
- class HeaderService {
153
+ static {
154
+ this.ɵfac = i0.ɵɵngDeclareFactory({
155
+ minVersion: "12.0.0",
156
+ version: "22.3.0",
157
+ ngImport: i0,
158
+ type: FooterService,
159
+ deps: [],
160
+ target: i0.ɵɵFactoryTarget.Injectable
161
+ });
162
+ }
163
+ static {
164
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
165
+ minVersion: "12.0.0",
166
+ version: "22.3.0",
167
+ ngImport: i0,
168
+ type: FooterService
169
+ });
170
+ }
171
+ };
172
+ i0.ɵɵngDeclareClassMetadata({
173
+ minVersion: "12.0.0",
174
+ version: "22.3.0",
175
+ ngImport: i0,
176
+ type: FooterService,
177
+ decorators: [{ type: Injectable }]
178
+ });
179
+ var HeaderService = class HeaderService {
138
180
  constructor() {
139
181
  this.components = coerceArray(inject(RXAP_HEADER_COMPONENT, { optional: true }));
140
- /**
141
- * Represents an array of `Portal` objects with unknown type.
142
- *
143
- * @typedef {Array<Portal<unknown>>} SignalPortals
144
- */
145
- this.portals = signal(this.components.map(component => new ComponentPortal(component)), ...(ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []));
146
- /**
147
- * Computes the count of portals.
148
- *
149
- * @returns {number} The count of portals.
150
- */
151
- this.portalCount = computed(() => this.portals().length, ...(ngDevMode ? [{ debugName: "portalCount" }] : /* istanbul ignore next */ []));
152
- }
153
- /**
154
- * Adds a portal to the list of portals.
155
- *
156
- * @param {Portal<unknown>} portal - The portal to be added.
157
- *
158
- * @return {void}
159
- */
182
+ this.portals = signal(this.components.map((component) => new ComponentPortal(component)), ...ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []);
183
+ this.portalCount = computed(() => this.portals().length, ...ngDevMode ? [{ debugName: "portalCount" }] : /* istanbul ignore next */ []);
184
+ }
160
185
  pushPortal(portal) {
161
- if (!this.portals().includes(portal)) {
162
- this.portals.update(portals => [...portals, portal]);
163
- }
164
- else {
165
- if (isDevMode()) {
166
- console.warn('Can not add the same portal multiple times');
167
- }
168
- }
186
+ if (!this.portals().includes(portal))
187
+ this.portals.update((portals) => [...portals, portal]);
188
+ else if (isDevMode())
189
+ console.warn("Can not add the same portal multiple times");
169
190
  }
170
- /**
171
- * Removes a portal from the list of portals.
172
- *
173
- * @param {Portal<unknown>} portal - The portal to be removed.
174
- * @return {void}
175
- */
176
191
  removePortal(portal) {
177
192
  const index = this.portals().indexOf(portal);
178
- if (index !== -1) {
179
- this.portals.update(portals => {
193
+ if (index !== -1)
194
+ this.portals.update((portals) => {
180
195
  portals.splice(index, 1);
181
196
  return portals.slice();
182
197
  });
183
- }
184
198
  }
185
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: HeaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
186
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: HeaderService }); }
187
- }
188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: HeaderService, decorators: [{
189
- type: Injectable
190
- }] });
191
- class LayoutService {
199
+ static {
200
+ this.ɵfac = i0.ɵɵngDeclareFactory({
201
+ minVersion: "12.0.0",
202
+ version: "22.3.0",
203
+ ngImport: i0,
204
+ type: HeaderService,
205
+ deps: [],
206
+ target: i0.ɵɵFactoryTarget.Injectable
207
+ });
208
+ }
209
+ static {
210
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
211
+ minVersion: "12.0.0",
212
+ version: "22.3.0",
213
+ ngImport: i0,
214
+ type: HeaderService
215
+ });
216
+ }
217
+ };
218
+ i0.ɵɵngDeclareClassMetadata({
219
+ minVersion: "12.0.0",
220
+ version: "22.3.0",
221
+ ngImport: i0,
222
+ type: HeaderService,
223
+ decorators: [{ type: Injectable }]
224
+ });
225
+ var LayoutService = class LayoutService {
192
226
  constructor() {
193
227
  this.currentThemeDensity = toSignal(ObserveCurrentThemeDensity());
194
228
  this.footerService = inject(FooterService);
@@ -196,69 +230,62 @@ class LayoutService {
196
230
  this.config = inject(ConfigService);
197
231
  this.mediaMatcher = inject(MediaMatcher);
198
232
  const navigationConfigDefaults = inject(RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS, { optional: true }) ?? null;
199
- const mobileQuery = this.mediaMatcher.matchMedia(navigationConfigDefaults?.mobileQuery ?? '(max-width: 959px)');
200
- this.isMobile = toSignal(new Observable(subscriber => {
201
- mobileQuery.addEventListener('change', (event) => {
233
+ const mobileQuery = this.mediaMatcher.matchMedia(navigationConfigDefaults?.mobileQuery ?? "(max-width: 959px)");
234
+ this.isMobile = toSignal(new Observable((subscriber) => {
235
+ mobileQuery.addEventListener("change", (event) => {
202
236
  subscriber.next(event.matches);
203
237
  });
204
238
  }), { initialValue: mobileQuery.matches });
205
- const initialCollapsable = this.config.get('navigation.collapsable', navigationConfigDefaults?.collapsable ?? true);
239
+ const initialCollapsable = this.config.get("navigation.collapsable", navigationConfigDefaults?.collapsable ?? true);
206
240
  const collapsable = initialCollapsable && !this.isMobile();
207
- const pinned = this.config.get('navigation.pinned', navigationConfigDefaults?.pinned ?? false);
208
- const mode = this.config.get('navigation.mode', navigationConfigDefaults?.mode ?? (pinned || !collapsable ? 'side' : 'over'));
209
- const opened = this.config.get('navigation.opened', (navigationConfigDefaults?.opened ?? (!collapsable || pinned)) && !this.isMobile());
210
- const fixedInViewport = this.config.get('navigation.fixedInViewport', navigationConfigDefaults?.fixedInViewport ?? true);
211
- if (isDevMode()) {
241
+ const pinned = this.config.get("navigation.pinned", navigationConfigDefaults?.pinned ?? false);
242
+ const mode = this.config.get("navigation.mode", navigationConfigDefaults?.mode ?? (pinned || !collapsable ? "side" : "over"));
243
+ const opened = this.config.get("navigation.opened", (navigationConfigDefaults?.opened ?? (!collapsable || pinned)) && !this.isMobile());
244
+ const fixedInViewport = this.config.get("navigation.fixedInViewport", navigationConfigDefaults?.fixedInViewport ?? true);
245
+ if (isDevMode())
212
246
  console.log({
213
247
  initialCollapsable,
214
248
  collapsable,
215
249
  pinned,
216
250
  mode,
217
251
  opened,
218
- fixedInViewport,
252
+ fixedInViewport
219
253
  });
220
- }
221
- this.opened = signal(opened, ...(ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []));
222
- this.mode = signal(mode, ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
223
- this.pinned = signal(pinned, ...(ngDevMode ? [{ debugName: "pinned" }] : /* istanbul ignore next */ []));
224
- this.collapsable = signal(collapsable, ...(ngDevMode ? [{ debugName: "collapsable" }] : /* istanbul ignore next */ []));
225
- this.fixedInViewport = signal(fixedInViewport, ...(ngDevMode ? [{ debugName: "fixedInViewport" }] : /* istanbul ignore next */ []));
226
- this.collapsed = computed(() => this.collapsable() && !this.opened() && !this.pinned(), ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
254
+ this.opened = signal(opened, ...ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []);
255
+ this.mode = signal(mode, ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
256
+ this.pinned = signal(pinned, ...ngDevMode ? [{ debugName: "pinned" }] : /* istanbul ignore next */ []);
257
+ this.collapsable = signal(collapsable, ...ngDevMode ? [{ debugName: "collapsable" }] : /* istanbul ignore next */ []);
258
+ this.fixedInViewport = signal(fixedInViewport, ...ngDevMode ? [{ debugName: "fixedInViewport" }] : /* istanbul ignore next */ []);
259
+ this.collapsed = computed(() => this.collapsable() && !this.opened() && !this.pinned(), ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
227
260
  this.fixedBottomGap = computed(() => {
228
- const footerPortalCount = this.footerService.portalCount();
229
- const currentThemeDensity = this.currentThemeDensity() ?? 0;
230
- return footerPortalCount * (currentThemeDensity * 4 + 64);
231
- }, ...(ngDevMode ? [{ debugName: "fixedBottomGap" }] : /* istanbul ignore next */ []));
261
+ return this.footerService.portalCount() * ((this.currentThemeDensity() ?? 0) * 4 + 64);
262
+ }, ...ngDevMode ? [{ debugName: "fixedBottomGap" }] : /* istanbul ignore next */ []);
232
263
  this.fixedTopGap = computed(() => {
233
- const headerPortalCount = this.headerService.portalCount();
234
- const currentThemeDensity = this.currentThemeDensity() ?? 0;
235
- return headerPortalCount * (currentThemeDensity * 4 + 64);
236
- }, ...(ngDevMode ? [{ debugName: "fixedTopGap" }] : /* istanbul ignore next */ []));
237
- if (initialCollapsable) {
264
+ return this.headerService.portalCount() * ((this.currentThemeDensity() ?? 0) * 4 + 64);
265
+ }, ...ngDevMode ? [{ debugName: "fixedTopGap" }] : /* istanbul ignore next */ []);
266
+ if (initialCollapsable)
238
267
  effect(() => {
239
268
  const isMobile = this.isMobile();
240
269
  this.collapsable.set(!isMobile);
241
- if (!isMobile && !this.pinned()) {
270
+ if (!isMobile && !this.pinned())
242
271
  this.opened.set(false);
243
- }
244
272
  });
245
- }
246
273
  effect(() => {
247
274
  if (this.pinned()) {
248
- this.mode.set('side');
275
+ this.mode.set("side");
249
276
  this.opened.set(true);
250
277
  }
251
278
  else {
252
- this.mode.set('over');
279
+ this.mode.set("over");
253
280
  this.opened.set(false);
254
281
  }
255
282
  });
256
283
  }
257
284
  toggleOpened() {
258
- this.opened.update(opened => !opened);
285
+ this.opened.update((opened) => !opened);
259
286
  }
260
287
  togglePinned() {
261
- this.pinned.update(pinned => !pinned);
288
+ this.pinned.update((pinned) => !pinned);
262
289
  }
263
290
  openSidenav() {
264
291
  this.opened.set(true);
@@ -266,54 +293,65 @@ class LayoutService {
266
293
  closeSidenav() {
267
294
  this.opened.set(false);
268
295
  }
269
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
270
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LayoutService }); }
271
- }
272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LayoutService, decorators: [{
273
- type: Injectable
274
- }], ctorParameters: () => [] });
296
+ static {
297
+ this.ɵfac = i0.ɵɵngDeclareFactory({
298
+ minVersion: "12.0.0",
299
+ version: "22.3.0",
300
+ ngImport: i0,
301
+ type: LayoutService,
302
+ deps: [],
303
+ target: i0.ɵɵFactoryTarget.Injectable
304
+ });
305
+ }
306
+ static {
307
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
308
+ minVersion: "12.0.0",
309
+ version: "22.3.0",
310
+ ngImport: i0,
311
+ type: LayoutService
312
+ });
313
+ }
314
+ };
315
+ i0.ɵɵngDeclareClassMetadata({
316
+ minVersion: "12.0.0",
317
+ version: "22.3.0",
318
+ ngImport: i0,
319
+ type: LayoutService,
320
+ decorators: [{ type: Injectable }],
321
+ ctorParameters: () => []
322
+ });
275
323
  function IsNavigationDividerItem(item) {
276
- return !!item && !!item['divider'];
324
+ return !!item && !!item["divider"];
277
325
  }
278
326
  function IsNavigationInsertItem(item) {
279
- return !!item && !!item['insert'];
327
+ return !!item && !!item["insert"];
280
328
  }
281
329
  function IsNavigationItem(item) {
282
- return (!!item && !!item['routerLink'] && !!item['label']);
330
+ return !!item && !!item["routerLink"] && !!item["label"];
283
331
  }
284
- class NavigationService {
332
+ var NavigationService = class NavigationService {
285
333
  constructor() {
286
- this.inserts = new Map();
334
+ this.inserts = /* @__PURE__ */ new Map();
287
335
  this.navigation$ = new ReplaySubject(1);
288
336
  this.injector = inject(INJECTOR);
289
337
  const navigation = inject(RXAP_NAVIGATION_CONFIG);
290
338
  const inserts = inject(RXAP_NAVIGATION_CONFIG_INSERTS, { optional: true }) ?? null;
291
- if (typeof navigation === 'function') {
339
+ if (typeof navigation === "function")
292
340
  this.navigation = navigation();
293
- }
294
- else {
341
+ else
295
342
  this.navigation = navigation;
296
- }
297
- if (inserts) {
343
+ if (inserts)
298
344
  Object.entries(inserts).forEach(([id, insert]) => this.insert(id, insert, false));
299
- }
300
345
  this.updateNavigation();
301
- this.config$ = this.navigation$.pipe(switchMap((navigationWithoutStatusCheck) => this.checkNavigationStatusProviders(navigationWithoutStatusCheck)));
302
- }
303
- /**
304
- * @deprecated use add instead
305
- * @param id
306
- * @param value
307
- * @param update
308
- */
346
+ this.config$ = this.navigation$.pipe(switchMap$1((navigationWithoutStatusCheck) => this.checkNavigationStatusProviders(navigationWithoutStatusCheck)));
347
+ }
309
348
  insert(id, value, update = true) {
310
349
  this.add(id, value, update);
311
350
  }
312
351
  add(id, value, update = true) {
313
352
  this.inserts.set(id, value);
314
- if (update) {
353
+ if (update)
315
354
  this.updateNavigation();
316
- }
317
355
  }
318
356
  has(id) {
319
357
  return this.inserts.has(id);
@@ -323,201 +361,318 @@ class NavigationService {
323
361
  }
324
362
  remove(id, update = true) {
325
363
  this.inserts.delete(id);
326
- if (update) {
364
+ if (update)
327
365
  this.updateNavigation();
328
- }
329
366
  }
330
367
  updateNavigation() {
331
368
  this.navigation$.next(this.replaceInserts(this.navigation));
332
369
  }
333
- /**
334
- * @internal
335
- * @param navigationItem
336
- */
337
370
  checkNavigationItemStatusProviders(navigationItem) {
338
- if (IsNavigationDividerItem(navigationItem)) {
371
+ if (IsNavigationDividerItem(navigationItem))
339
372
  return of(navigationItem);
340
- }
341
373
  if (!navigationItem.status) {
342
- if (!navigationItem.children?.length) {
374
+ if (!navigationItem.children?.length)
343
375
  return of(navigationItem);
344
- }
345
376
  return this.checkNavigationStatusProviders(navigationItem.children).pipe(map((children) => ({
346
377
  ...navigationItem,
347
- children,
378
+ children
348
379
  })));
349
380
  }
350
- const isVisibleArray$ = navigationItem
351
- .status
352
- .map((statusToken) => this.injector.get(statusToken))
353
- .map((status) => {
381
+ const isVisibleArray$ = navigationItem.status.map((statusToken) => this.injector.get(statusToken)).map((status) => {
354
382
  const isVisible = status.isVisible(navigationItem);
355
- if (typeof isVisible === 'boolean') {
383
+ if (typeof isVisible === "boolean")
356
384
  return of(isVisible);
357
- }
358
- else {
385
+ else
359
386
  return from(isVisible);
360
- }
361
- })
362
- .map(isVisible$ => isVisible$.pipe(catchError(e => {
387
+ }).map((isVisible$) => isVisible$.pipe(catchError((e) => {
363
388
  console.error(`isVisible method failed: ${e.message}`);
364
389
  return of(false);
365
390
  })));
366
- // TODO : dont wait for all status services to complete, but cancel waiting if one returns false
367
- return combineLatest(isVisibleArray$).pipe(map((isVisibleArray) => isVisibleArray.reduce((acc, isVisible) => acc && isVisible, true)), map((isVisible) => (isVisible ? navigationItem : null)), switchMap((navigationItemOrNull) => {
391
+ return combineLatest(isVisibleArray$).pipe(map((isVisibleArray) => isVisibleArray.reduce((acc, isVisible) => acc && isVisible, true)), map((isVisible) => isVisible ? navigationItem : null), switchMap$1((navigationItemOrNull) => {
368
392
  if (navigationItemOrNull) {
369
- if (navigationItemOrNull.children?.length) {
393
+ if (navigationItemOrNull.children?.length)
370
394
  return this.checkNavigationStatusProviders(navigationItemOrNull.children).pipe(map((children) => ({
371
395
  ...navigationItemOrNull,
372
- children,
396
+ children
373
397
  })));
374
- }
375
398
  return of(navigationItemOrNull);
376
399
  }
377
400
  return of(null);
378
401
  }));
379
402
  }
380
- /**
381
- * @internal
382
- * @param navigationItem
383
- */
384
403
  checkNavigationStatusProviders(navigation) {
385
404
  return combineLatest(navigation.map((navigationItem) => this.checkNavigationItemStatusProviders(navigationItem))).pipe(map((navigationWithNullItems) => {
386
405
  const cleanNavigation = [];
387
- for (const navigationItem of navigationWithNullItems) {
388
- if (navigationItem !== null) {
406
+ for (const navigationItem of navigationWithNullItems)
407
+ if (navigationItem !== null)
389
408
  cleanNavigation.push(navigationItem);
390
- }
391
- }
392
409
  return cleanNavigation;
393
410
  }));
394
411
  }
395
412
  replaceInserts(navigationWithInserts) {
396
413
  const navigation = [];
397
- for (const navigationItem of navigationWithInserts) {
414
+ for (const navigationItem of navigationWithInserts)
398
415
  if (IsNavigationInsertItem(navigationItem)) {
399
- if (this.inserts.has(navigationItem.insert)) {
416
+ if (this.inserts.has(navigationItem.insert))
400
417
  navigation.push(...this.replaceInserts(this.inserts.get(navigationItem.insert)));
401
- }
402
418
  }
403
- else if (IsNavigationItem(navigationItem)) {
419
+ else if (IsNavigationItem(navigationItem))
404
420
  navigation.push({
405
421
  ...navigationItem,
406
- children: this.replaceInserts(navigationItem.children ?? []),
422
+ children: this.replaceInserts(navigationItem.children ?? [])
407
423
  });
408
- }
409
- else if (IsNavigationDividerItem(navigationItem)) {
424
+ else if (IsNavigationDividerItem(navigationItem))
410
425
  navigation.push(navigationItem);
411
- }
412
- }
413
426
  return navigation;
414
427
  }
415
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
416
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationService }); }
417
- }
418
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationService, decorators: [{
419
- type: Injectable
420
- }], ctorParameters: () => [] });
421
- class NavigationItemComponent {
428
+ static {
429
+ this.ɵfac = i0.ɵɵngDeclareFactory({
430
+ minVersion: "12.0.0",
431
+ version: "22.3.0",
432
+ ngImport: i0,
433
+ type: NavigationService,
434
+ deps: [],
435
+ target: i0.ɵɵFactoryTarget.Injectable
436
+ });
437
+ }
438
+ static {
439
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
440
+ minVersion: "12.0.0",
441
+ version: "22.3.0",
442
+ ngImport: i0,
443
+ type: NavigationService
444
+ });
445
+ }
446
+ };
447
+ i0.ɵɵngDeclareClassMetadata({
448
+ minVersion: "12.0.0",
449
+ version: "22.3.0",
450
+ ngImport: i0,
451
+ type: NavigationService,
452
+ decorators: [{ type: Injectable }],
453
+ ctorParameters: () => []
454
+ });
455
+ let NavigationItemComponent = class NavigationItemComponent {
422
456
  constructor() {
423
- this.level = input(0, ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
457
+ this.level = input(0, ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
424
458
  this.children = computed(() => {
425
459
  const item = this.item();
426
460
  return item.children && item.children.length ? item.children : null;
427
- }, ...(ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []));
428
- this.item = input.required(...(ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []));
461
+ }, ...ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []);
462
+ this.item = input.required(...ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []);
429
463
  this.itemClasses = computed(() => {
430
464
  let classes = `level-${this.level() * 4}`;
431
- if (this.collapsed()) {
432
- classes += ' invisible';
433
- }
465
+ if (this.collapsed())
466
+ classes += " invisible";
434
467
  return classes;
435
- }, ...(ngDevMode ? [{ debugName: "itemClasses" }] : /* istanbul ignore next */ []));
468
+ }, ...ngDevMode ? [{ debugName: "itemClasses" }] : /* istanbul ignore next */ []);
436
469
  this.layoutService = inject(LayoutService);
437
- this.collapsed = computed(() => this.layoutService.collapsed(), ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
470
+ this.collapsed = computed(() => this.layoutService.collapsed(), ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
438
471
  this.router = inject(Router);
439
- /**
440
- * The current router url. Updated (debounced) after each navigation.
441
- */
442
472
  this.currentUrl = toSignal(this.router.events.pipe(filter((event) => event instanceof NavigationEnd), debounceTime(100), startWith(true), map(() => this.router.url)), { initialValue: this.router.url });
443
473
  this.active = computed(() => {
444
- const urlParts = this.currentUrl().split('/');
445
- if (urlParts[0] === '') {
446
- urlParts[0] = '/';
447
- }
448
- const routerLink = coerceArray(this.item().routerLink).map(fragment => fragment === '/' ? ['/'] : fragment.split('/')).flat();
449
- if (routerLink[0] === '') {
450
- routerLink[0] = '/';
451
- }
452
- for (let i = 0; i < routerLink.length; i++) {
453
- if (urlParts[i] !== routerLink[i]) {
474
+ const urlParts = this.currentUrl().split("/");
475
+ if (urlParts[0] === "")
476
+ urlParts[0] = "/";
477
+ const routerLink = coerceArray(this.item().routerLink).map((fragment) => fragment === "/" ? ["/"] : fragment.split("/")).flat();
478
+ if (routerLink[0] === "")
479
+ routerLink[0] = "/";
480
+ for (let i = 0; i < routerLink.length; i++)
481
+ if (urlParts[i] !== routerLink[i])
454
482
  return false;
455
- }
456
- }
457
483
  return true;
458
- }, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
484
+ }, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
459
485
  }
460
486
  onClick() {
461
- if (this.layoutService.isMobile() || this.layoutService.collapsed()) {
487
+ if (this.layoutService.isMobile() || this.layoutService.collapsed())
462
488
  this.layoutService.opened.set(false);
463
- }
464
489
  }
465
- // region type save item property
466
- // required to check the type of the item property in the ngFor loop
467
490
  isNavigationDividerItem(item) {
468
- return item['divider'];
491
+ return item["divider"];
469
492
  }
470
493
  isNavigationItem(item) {
471
494
  return !this.isNavigationDividerItem(item);
472
495
  }
473
496
  asNavigationItem(item) {
474
- if (!this.isNavigationItem(item)) {
475
- throw new Error('The item is not a NavigationItem');
476
- }
497
+ if (!this.isNavigationItem(item))
498
+ throw new Error("The item is not a NavigationItem");
477
499
  return item;
478
500
  }
479
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
480
501
  static {
481
- this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: NavigationItemComponent, isStandalone: true, selector: "li[rxap-navigation-item]", inputs: { level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.active": "active()" } }, ngImport: i0, template: "<div [ngClass]=\"{\n 'border-l-4 text-accent-400 border-accent-600': active(),\n }\">\n <a [routerLink]=\"item().routerLink\"\n class=\"h-12 pl-4 pr-5 flex flex-row justify-between items-center gap-x-4 text-black\"\n matRipple\n routerLinkActive\n (click)=\"onClick()\"\n >\n <span\n [ngClass]=\"itemClasses()\"\n class=\"grow whitespace-nowrap\"\n >\n {{ item().label }}\n </span>\n @if (item().icon; as icon) {\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n }\n </a>\n\n @if (item().children?.length && active()) {\n <mat-divider></mat-divider>\n\n <ul [@sub-nav]\n [items]=\"children() ?? []\"\n [level]=\"level() + 1\"\n rxap-navigation\n >\n </ul>\n\n <mat-divider></mat-divider>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i0.forwardRef(() => RouterLinkActive), selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i0.forwardRef(() => RouterLink), selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: i0.forwardRef(() => MatRippleModule) }, { kind: "directive", type: i0.forwardRef(() => i1.MatRipple), selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "ngmodule", type: i0.forwardRef(() => MatIconModule) }, { kind: "component", type: i0.forwardRef(() => i2.MatIcon), selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i0.forwardRef(() => IconDirective), selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { kind: "ngmodule", type: i0.forwardRef(() => MatDividerModule) }, { kind: "component", type: i0.forwardRef(() => i3.MatDivider), selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i0.forwardRef(() => NavigationComponent), selector: "ul[rxap-navigation]", inputs: ["items", "level", "root"] }, { kind: "directive", type: i0.forwardRef(() => NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
482
- trigger('sub-nav', [
483
- transition(':enter', [
484
- style({
485
- display: 'block',
486
- height: '0',
487
- overflow: 'hidden',
488
- }),
489
- animate(150, style({ height: '*' })),
490
- ]),
491
- transition(':leave', [
492
- style({ overflow: 'hidden' }),
493
- animate(300, style({ height: '0' })),
494
- style({ display: 'none' }),
495
- ]),
496
- ]),
497
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
502
+ this.ɵfac = i0.ɵɵngDeclareFactory({
503
+ minVersion: "12.0.0",
504
+ version: "22.3.0",
505
+ ngImport: i0,
506
+ type: NavigationItemComponent,
507
+ deps: [],
508
+ target: i0.ɵɵFactoryTarget.Component
509
+ });
498
510
  }
499
- }
500
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationItemComponent, decorators: [{
511
+ static {
512
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
513
+ minVersion: "17.0.0",
514
+ version: "22.3.0",
515
+ type: NavigationItemComponent,
516
+ isStandalone: true,
517
+ selector: "li[rxap-navigation-item]",
518
+ inputs: {
519
+ level: {
520
+ classPropertyName: "level",
521
+ publicName: "level",
522
+ isSignal: true,
523
+ isRequired: false,
524
+ transformFunction: null
525
+ },
526
+ item: {
527
+ classPropertyName: "item",
528
+ publicName: "item",
529
+ isSignal: true,
530
+ isRequired: true,
531
+ transformFunction: null
532
+ }
533
+ },
534
+ host: { properties: { "class.active": "active()" } },
535
+ ngImport: i0,
536
+ template: "<div [ngClass]=\"{\n 'border-l-4 text-accent-400 border-accent-600': active(),\n }\">\n <a [routerLink]=\"item().routerLink\"\n class=\"h-12 pl-4 pr-5 flex flex-row justify-between items-center gap-x-4 text-black\"\n matRipple\n routerLinkActive\n (click)=\"onClick()\"\n >\n <span\n [ngClass]=\"itemClasses()\"\n class=\"grow whitespace-nowrap\"\n >\n {{ item().label }}\n </span>\n @if (item().icon; as icon) {\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n }\n </a>\n\n @if (item().children?.length && active()) {\n <mat-divider></mat-divider>\n\n <ul [@sub-nav]\n [items]=\"children() ?? []\"\n [level]=\"level() + 1\"\n rxap-navigation\n >\n </ul>\n\n <mat-divider></mat-divider>\n }\n</div>\n",
537
+ styles: [""],
538
+ dependencies: [
539
+ {
540
+ kind: "directive",
541
+ type: i0.forwardRef(() => RouterLinkActive),
542
+ selector: "[routerLinkActive]",
543
+ inputs: [
544
+ "routerLinkActiveOptions",
545
+ "ariaCurrentWhenActive",
546
+ "routerLinkActive"
547
+ ],
548
+ outputs: ["isActiveChange"],
549
+ exportAs: ["routerLinkActive"]
550
+ },
551
+ {
552
+ kind: "directive",
553
+ type: i0.forwardRef(() => RouterLink),
554
+ selector: "[routerLink]",
555
+ inputs: [
556
+ "target",
557
+ "queryParams",
558
+ "fragment",
559
+ "queryParamsHandling",
560
+ "state",
561
+ "info",
562
+ "relativeTo",
563
+ "preserveFragment",
564
+ "skipLocationChange",
565
+ "replaceUrl",
566
+ "browserUrl",
567
+ "scroll",
568
+ "routerLink"
569
+ ]
570
+ },
571
+ {
572
+ kind: "ngmodule",
573
+ type: i0.forwardRef(() => MatRippleModule)
574
+ },
575
+ {
576
+ kind: "directive",
577
+ type: i0.forwardRef(() => i1$2.MatRipple),
578
+ selector: "[mat-ripple], [matRipple]",
579
+ inputs: [
580
+ "matRippleColor",
581
+ "matRippleUnbounded",
582
+ "matRippleCentered",
583
+ "matRippleRadius",
584
+ "matRippleAnimation",
585
+ "matRippleDisabled",
586
+ "matRippleTrigger"
587
+ ],
588
+ exportAs: ["matRipple"]
589
+ },
590
+ {
591
+ kind: "ngmodule",
592
+ type: i0.forwardRef(() => MatIconModule)
593
+ },
594
+ {
595
+ kind: "component",
596
+ type: i0.forwardRef(() => i2$1.MatIcon),
597
+ selector: "mat-icon",
598
+ inputs: [
599
+ "color",
600
+ "inline",
601
+ "svgIcon",
602
+ "fontSet",
603
+ "fontIcon"
604
+ ],
605
+ exportAs: ["matIcon"]
606
+ },
607
+ {
608
+ kind: "directive",
609
+ type: i0.forwardRef(() => IconDirective),
610
+ selector: "mat-icon[rxapIcon]",
611
+ inputs: ["rxapIcon"]
612
+ },
613
+ {
614
+ kind: "ngmodule",
615
+ type: i0.forwardRef(() => MatDividerModule)
616
+ },
617
+ {
618
+ kind: "component",
619
+ type: i0.forwardRef(() => i3.MatDivider),
620
+ selector: "mat-divider",
621
+ inputs: ["vertical", "inset"]
622
+ },
623
+ {
624
+ kind: "component",
625
+ type: i0.forwardRef(() => NavigationComponent),
626
+ selector: "ul[rxap-navigation]",
627
+ inputs: [
628
+ "items",
629
+ "level",
630
+ "root"
631
+ ]
632
+ },
633
+ {
634
+ kind: "directive",
635
+ type: i0.forwardRef(() => NgClass),
636
+ selector: "[ngClass]",
637
+ inputs: ["class", "ngClass"]
638
+ }
639
+ ],
640
+ animations: [trigger("sub-nav", [transition(":enter", [style({
641
+ display: "block",
642
+ height: "0",
643
+ overflow: "hidden"
644
+ }), animate(150, style({ height: "*" }))]), transition(":leave", [
645
+ style({ overflow: "hidden" }),
646
+ animate(300, style({ height: "0" })),
647
+ style({ display: "none" })
648
+ ])])],
649
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
650
+ encapsulation: i0.ViewEncapsulation.None
651
+ });
652
+ }
653
+ };
654
+ i0.ɵɵngDeclareClassMetadata({
655
+ minVersion: "12.0.0",
656
+ version: "22.3.0",
657
+ ngImport: i0,
658
+ type: NavigationItemComponent,
659
+ decorators: [{
501
660
  type: Component,
502
- args: [{ selector: 'li[rxap-navigation-item]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, animations: [
503
- trigger('sub-nav', [
504
- transition(':enter', [
505
- style({
506
- display: 'block',
507
- height: '0',
508
- overflow: 'hidden',
509
- }),
510
- animate(150, style({ height: '*' })),
511
- ]),
512
- transition(':leave', [
513
- style({ overflow: 'hidden' }),
514
- animate(300, style({ height: '0' })),
515
- style({ display: 'none' }),
516
- ]),
517
- ]),
518
- ], host: {
519
- '[class.active]': 'active()',
520
- }, imports: [
661
+ args: [{
662
+ selector: "li[rxap-navigation-item]",
663
+ changeDetection: ChangeDetectionStrategy.OnPush,
664
+ encapsulation: ViewEncapsulation.None,
665
+ animations: [trigger("sub-nav", [transition(":enter", [style({
666
+ display: "block",
667
+ height: "0",
668
+ overflow: "hidden"
669
+ }), animate(150, style({ height: "*" }))]), transition(":leave", [
670
+ style({ overflow: "hidden" }),
671
+ animate(300, style({ height: "0" })),
672
+ style({ display: "none" })
673
+ ])])],
674
+ host: { "[class.active]": "active()" },
675
+ imports: [
521
676
  RouterLinkActive,
522
677
  RouterLink,
523
678
  MatRippleModule,
@@ -526,76 +681,186 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
526
681
  MatDividerModule,
527
682
  forwardRef(() => NavigationComponent),
528
683
  NgClass
529
- ], template: "<div [ngClass]=\"{\n 'border-l-4 text-accent-400 border-accent-600': active(),\n }\">\n <a [routerLink]=\"item().routerLink\"\n class=\"h-12 pl-4 pr-5 flex flex-row justify-between items-center gap-x-4 text-black\"\n matRipple\n routerLinkActive\n (click)=\"onClick()\"\n >\n <span\n [ngClass]=\"itemClasses()\"\n class=\"grow whitespace-nowrap\"\n >\n {{ item().label }}\n </span>\n @if (item().icon; as icon) {\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n }\n </a>\n\n @if (item().children?.length && active()) {\n <mat-divider></mat-divider>\n\n <ul [@sub-nav]\n [items]=\"children() ?? []\"\n [level]=\"level() + 1\"\n rxap-navigation\n >\n </ul>\n\n <mat-divider></mat-divider>\n }\n</div>\n" }]
530
- }], propDecorators: { level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: true }] }] } });
531
- class NavigationComponent {
684
+ ],
685
+ template: "<div [ngClass]=\"{\n 'border-l-4 text-accent-400 border-accent-600': active(),\n }\">\n <a [routerLink]=\"item().routerLink\"\n class=\"h-12 pl-4 pr-5 flex flex-row justify-between items-center gap-x-4 text-black\"\n matRipple\n routerLinkActive\n (click)=\"onClick()\"\n >\n <span\n [ngClass]=\"itemClasses()\"\n class=\"grow whitespace-nowrap\"\n >\n {{ item().label }}\n </span>\n @if (item().icon; as icon) {\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n }\n </a>\n\n @if (item().children?.length && active()) {\n <mat-divider></mat-divider>\n\n <ul [@sub-nav]\n [items]=\"children() ?? []\"\n [level]=\"level() + 1\"\n rxap-navigation\n >\n </ul>\n\n <mat-divider></mat-divider>\n }\n</div>\n"
686
+ }]
687
+ }],
688
+ propDecorators: {
689
+ level: [{
690
+ type: i0.Input,
691
+ args: [{
692
+ isSignal: true,
693
+ alias: "level",
694
+ required: false
695
+ }]
696
+ }],
697
+ item: [{
698
+ type: i0.Input,
699
+ args: [{
700
+ isSignal: true,
701
+ alias: "item",
702
+ required: true
703
+ }]
704
+ }]
705
+ }
706
+ });
707
+ let NavigationComponent = class NavigationComponent {
532
708
  constructor() {
533
- this.items = input(...(ngDevMode ? [undefined, { debugName: "items" }] : /* istanbul ignore next */ []));
534
- this.level = input(0, ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
709
+ this.items = input(...ngDevMode ? [void 0, { debugName: "items" }] : /* istanbul ignore next */ []);
710
+ this.level = input(0, ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
535
711
  this.navigationService = inject(NavigationService);
536
712
  this.layoutService = inject(LayoutService);
537
- this.collapsed = computed(() => this.layoutService.collapsed(), ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
538
- this.root = input(false, ...(ngDevMode ? [{ debugName: "root" }] : /* istanbul ignore next */ []));
539
- /**
540
- * the navigation items of the configured navigation. Only subscribed if the component is the root navigation
541
- */
542
- this.rootItems = toSignal(toObservable(this.root).pipe(switchMap$1(root => root ? this.navigationService.config$ : EMPTY)), { initialValue: [] });
543
- this.navigationItems = computed(() => this.root() ? this.rootItems() : (this.items() ?? []), ...(ngDevMode ? [{ debugName: "navigationItems" }] : /* istanbul ignore next */ []));
544
- }
545
- // region type save item property
546
- // required to check the type of the item property in the ngFor loop
713
+ this.collapsed = computed(() => this.layoutService.collapsed(), ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
714
+ this.root = input(false, ...ngDevMode ? [{ debugName: "root" }] : /* istanbul ignore next */ []);
715
+ this.rootItems = toSignal(toObservable(this.root).pipe(switchMap((root) => root ? this.navigationService.config$ : EMPTY)), { initialValue: [] });
716
+ this.navigationItems = computed(() => this.root() ? this.rootItems() : this.items() ?? [], ...ngDevMode ? [{ debugName: "navigationItems" }] : /* istanbul ignore next */ []);
717
+ }
547
718
  isNavigationDividerItem(item) {
548
- return item['divider'];
719
+ return item["divider"];
549
720
  }
550
721
  isNavigationItem(item) {
551
722
  return !this.isNavigationDividerItem(item);
552
723
  }
553
724
  asNavigationItem(item) {
554
- if (!this.isNavigationItem(item)) {
555
- throw new Error('The item is not a NavigationItem');
556
- }
725
+ if (!this.isNavigationItem(item))
726
+ throw new Error("The item is not a NavigationItem");
557
727
  return item;
558
728
  }
559
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
560
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: NavigationComponent, isStandalone: true, selector: "ul[rxap-navigation]", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "list-none dark:text-neutral-400 text-neutral-700" }, ngImport: i0, template: "@for (item of navigationItems(); track item) {\n\n @if (isNavigationDividerItem(item)) {\n <mat-divider></mat-divider>\n @if (!collapsed() && item.title) {\n <div class=\"pl-5 h-6\">\n {{item.title}}\n </div>\n }\n } @else if (isNavigationItem(item)) {\n <li [item]=\"asNavigationItem(item)\"\n [level]=\"level()\"\n rxap-navigation-item>\n </li>\n }\n\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: i0.forwardRef(() => MatDividerModule) }, { kind: "component", type: i0.forwardRef(() => i3.MatDivider), selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i0.forwardRef(() => NavigationItemComponent), selector: "li[rxap-navigation-item]", inputs: ["level", "item"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
561
- }
562
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationComponent, decorators: [{
729
+ static {
730
+ this.ɵfac = i0.ɵɵngDeclareFactory({
731
+ minVersion: "12.0.0",
732
+ version: "22.3.0",
733
+ ngImport: i0,
734
+ type: NavigationComponent,
735
+ deps: [],
736
+ target: i0.ɵɵFactoryTarget.Component
737
+ });
738
+ }
739
+ static {
740
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
741
+ minVersion: "17.0.0",
742
+ version: "22.3.0",
743
+ type: NavigationComponent,
744
+ isStandalone: true,
745
+ selector: "ul[rxap-navigation]",
746
+ inputs: {
747
+ items: {
748
+ classPropertyName: "items",
749
+ publicName: "items",
750
+ isSignal: true,
751
+ isRequired: false,
752
+ transformFunction: null
753
+ },
754
+ level: {
755
+ classPropertyName: "level",
756
+ publicName: "level",
757
+ isSignal: true,
758
+ isRequired: false,
759
+ transformFunction: null
760
+ },
761
+ root: {
762
+ classPropertyName: "root",
763
+ publicName: "root",
764
+ isSignal: true,
765
+ isRequired: false,
766
+ transformFunction: null
767
+ }
768
+ },
769
+ host: { classAttribute: "list-none dark:text-neutral-400 text-neutral-700" },
770
+ ngImport: i0,
771
+ template: "@for (item of navigationItems(); track item) {\n\n @if (isNavigationDividerItem(item)) {\n <mat-divider></mat-divider>\n @if (!collapsed() && item.title) {\n <div class=\"pl-5 h-6\">\n {{item.title}}\n </div>\n }\n } @else if (isNavigationItem(item)) {\n <li [item]=\"asNavigationItem(item)\"\n [level]=\"level()\"\n rxap-navigation-item>\n </li>\n }\n\n}\n",
772
+ styles: [""],
773
+ dependencies: [
774
+ {
775
+ kind: "ngmodule",
776
+ type: i0.forwardRef(() => MatDividerModule)
777
+ },
778
+ {
779
+ kind: "component",
780
+ type: i0.forwardRef(() => i3.MatDivider),
781
+ selector: "mat-divider",
782
+ inputs: ["vertical", "inset"]
783
+ },
784
+ {
785
+ kind: "component",
786
+ type: i0.forwardRef(() => NavigationItemComponent),
787
+ selector: "li[rxap-navigation-item]",
788
+ inputs: ["level", "item"]
789
+ }
790
+ ],
791
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
792
+ encapsulation: i0.ViewEncapsulation.None
793
+ });
794
+ }
795
+ };
796
+ i0.ɵɵngDeclareClassMetadata({
797
+ minVersion: "12.0.0",
798
+ version: "22.3.0",
799
+ ngImport: i0,
800
+ type: NavigationComponent,
801
+ decorators: [{
563
802
  type: Component,
564
- args: [{ selector: 'ul[rxap-navigation]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
565
- class: 'list-none dark:text-neutral-400 text-neutral-700',
566
- }, imports: [
803
+ args: [{
804
+ selector: "ul[rxap-navigation]",
805
+ changeDetection: ChangeDetectionStrategy.OnPush,
806
+ encapsulation: ViewEncapsulation.None,
807
+ host: { class: "list-none dark:text-neutral-400 text-neutral-700" },
808
+ imports: [
567
809
  MatDividerModule,
568
810
  forwardRef(() => NavigationItemComponent),
569
811
  AsyncPipe
570
- ], template: "@for (item of navigationItems(); track item) {\n\n @if (isNavigationDividerItem(item)) {\n <mat-divider></mat-divider>\n @if (!collapsed() && item.title) {\n <div class=\"pl-5 h-6\">\n {{item.title}}\n </div>\n }\n } @else if (isNavigationItem(item)) {\n <li [item]=\"asNavigationItem(item)\"\n [level]=\"level()\"\n rxap-navigation-item>\n </li>\n }\n\n}\n" }]
571
- }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }] } });
572
- class SidenavComponent {
812
+ ],
813
+ template: "@for (item of navigationItems(); track item) {\n\n @if (isNavigationDividerItem(item)) {\n <mat-divider></mat-divider>\n @if (!collapsed() && item.title) {\n <div class=\"pl-5 h-6\">\n {{item.title}}\n </div>\n }\n } @else if (isNavigationItem(item)) {\n <li [item]=\"asNavigationItem(item)\"\n [level]=\"level()\"\n rxap-navigation-item>\n </li>\n }\n\n}\n"
814
+ }]
815
+ }],
816
+ propDecorators: {
817
+ items: [{
818
+ type: i0.Input,
819
+ args: [{
820
+ isSignal: true,
821
+ alias: "items",
822
+ required: false
823
+ }]
824
+ }],
825
+ level: [{
826
+ type: i0.Input,
827
+ args: [{
828
+ isSignal: true,
829
+ alias: "level",
830
+ required: false
831
+ }]
832
+ }],
833
+ root: [{
834
+ type: i0.Input,
835
+ args: [{
836
+ isSignal: true,
837
+ alias: "root",
838
+ required: false
839
+ }]
840
+ }]
841
+ }
842
+ });
843
+ let SidenavComponent = class SidenavComponent {
573
844
  constructor() {
574
845
  this.layoutService = inject(LayoutService);
575
- this.sidenav = viewChild(MatSidenav, ...(ngDevMode ? [{ debugName: "sidenav" }] : /* istanbul ignore next */ []));
576
- this.sidenavMode = computed(() => this.layoutService.mode(), ...(ngDevMode ? [{ debugName: "sidenavMode" }] : /* istanbul ignore next */ []));
577
- this.fixedBottomGap = computed(() => this.layoutService.fixedBottomGap(), ...(ngDevMode ? [{ debugName: "fixedBottomGap" }] : /* istanbul ignore next */ []));
578
- this.fixedTopGap = computed(() => this.layoutService.fixedTopGap(), ...(ngDevMode ? [{ debugName: "fixedTopGap" }] : /* istanbul ignore next */ []));
579
- this.fixedInViewport = computed(() => this.layoutService.fixedInViewport(), ...(ngDevMode ? [{ debugName: "fixedInViewport" }] : /* istanbul ignore next */ []));
580
- this.pinned = computed(() => this.layoutService.pinned(), ...(ngDevMode ? [{ debugName: "pinned" }] : /* istanbul ignore next */ []));
581
- this.collapsed = computed(() => this.layoutService.collapsed(), ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
582
- this.collapsable = computed(() => this.layoutService.collapsable(), ...(ngDevMode ? [{ debugName: "collapsable" }] : /* istanbul ignore next */ []));
583
- this.opened = computed(() => this.layoutService.opened(), ...(ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []));
584
- this.sidenavFooterDirective = contentChild(SidenavFooterDirective, ...(ngDevMode ? [{ debugName: "sidenavFooterDirective" }] : /* istanbul ignore next */ []));
585
- this.sidenavHeaderDirective = contentChild(SidenavHeaderDirective, ...(ngDevMode ? [{ debugName: "sidenavHeaderDirective" }] : /* istanbul ignore next */ []));
846
+ this.sidenav = viewChild(MatSidenav, ...ngDevMode ? [{ debugName: "sidenav" }] : /* istanbul ignore next */ []);
847
+ this.sidenavMode = computed(() => this.layoutService.mode(), ...ngDevMode ? [{ debugName: "sidenavMode" }] : /* istanbul ignore next */ []);
848
+ this.fixedBottomGap = computed(() => this.layoutService.fixedBottomGap(), ...ngDevMode ? [{ debugName: "fixedBottomGap" }] : /* istanbul ignore next */ []);
849
+ this.fixedTopGap = computed(() => this.layoutService.fixedTopGap(), ...ngDevMode ? [{ debugName: "fixedTopGap" }] : /* istanbul ignore next */ []);
850
+ this.fixedInViewport = computed(() => this.layoutService.fixedInViewport(), ...ngDevMode ? [{ debugName: "fixedInViewport" }] : /* istanbul ignore next */ []);
851
+ this.pinned = computed(() => this.layoutService.pinned(), ...ngDevMode ? [{ debugName: "pinned" }] : /* istanbul ignore next */ []);
852
+ this.collapsed = computed(() => this.layoutService.collapsed(), ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
853
+ this.collapsable = computed(() => this.layoutService.collapsable(), ...ngDevMode ? [{ debugName: "collapsable" }] : /* istanbul ignore next */ []);
854
+ this.opened = computed(() => this.layoutService.opened(), ...ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []);
855
+ this.sidenavFooterDirective = contentChild(SidenavFooterDirective, ...ngDevMode ? [{ debugName: "sidenavFooterDirective" }] : /* istanbul ignore next */ []);
856
+ this.sidenavHeaderDirective = contentChild(SidenavHeaderDirective, ...ngDevMode ? [{ debugName: "sidenavHeaderDirective" }] : /* istanbul ignore next */ []);
586
857
  }
587
858
  togglePinned() {
588
859
  this.layoutService.togglePinned();
589
860
  }
590
- /**
591
- * To ensure the open state is in sync with the component. If the sidenav is closed, e.g. clicking outside the sidenav,
592
- * it is required to manually update the state in the LayoutService.
593
- * @param opened
594
- */
595
861
  onOpenedChanged(opened) {
596
- if (!opened) {
862
+ if (!opened)
597
863
  this.layoutService.closeSidenav();
598
- }
599
864
  }
600
865
  async openSidenav() {
601
866
  await this.sidenav()?.open();
@@ -605,12 +870,142 @@ class SidenavComponent {
605
870
  await this.sidenav()?.close();
606
871
  this.layoutService.closeSidenav();
607
872
  }
608
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
609
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: SidenavComponent, isStandalone: true, selector: "rxap-sidenav", queries: [{ propertyName: "sidenavFooterDirective", first: true, predicate: SidenavFooterDirective, descendants: true, isSignal: true }, { propertyName: "sidenavHeaderDirective", first: true, predicate: SidenavHeaderDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "sidenav", first: true, predicate: MatSidenav, descendants: true, isSignal: true }], ngImport: i0, template: "<mat-sidenav-container [ngStyle]=\"{\n 'padding-top.px': fixedTopGap(),\n 'padding-bottom.px': fixedBottomGap(),\n }\" class=\"h-full\">\n <mat-sidenav\n [fixedBottomGap]=\"fixedBottomGap()\"\n [fixedInViewport]=\"fixedInViewport()\"\n [fixedTopGap]=\"fixedTopGap()\"\n [mode]=\"sidenavMode()\"\n [ngClass]=\"{ collapsable: collapsable() }\"\n [opened]=\"opened()\"\n (openedChange)=\"onOpenedChanged($event)\"\n >\n <div (mouseleave)=\"collapsable() && !pinned() && closeSidenav()\"\n class=\"h-full py-2 flex flex-col items-center gap-y-5 justify-items-stretch\">\n\n @if (collapsable()) {\n <div (click)=\"togglePinned()\"\n class=\"pl-2 self-stretch grow-0 flex flex-row justify-between items-center\">\n <span class=\"text-lg\" i18n>Navigation</span>\n <div class=\"flex flex-row items-center justify-center\" style=\"width: 64px\">\n <button mat-icon-button>\n @if (!pinned()) {\n <mat-icon>radio_button_unchecked</mat-icon>\n }\n @if (pinned()) {\n <mat-icon>radio_button_checked</mat-icon>\n }\n </button>\n </div>\n </div>\n }\n\n @if (sidenavHeaderDirective()?.template; as template) {\n <div [ngClass]=\"{ hidden: collapsed() }\" class=\"header grow-0\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n <mat-divider [ngClass]=\"{ hidden: collapsed() }\" class=\"grow-0\"></mat-divider>\n }\n\n <ul\n (mouseenter)=\"collapsable() && !pinned() && openSidenav()\"\n class=\"grow self-stretch\"\n [root]=\"true\"\n rxap-navigation\n >\n </ul>\n\n @if (sidenavFooterDirective()?.template; as template) {\n <mat-divider [ngClass]=\"{ hidden: collapsed() }\" class=\"grow-0\"></mat-divider>\n <div [ngClass]=\"{ hidden: collapsed() }\" class=\"footer grow-0\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n }\n </div>\n </mat-sidenav>\n <mat-sidenav-content [ngClass]=\"{ 'ml-16': collapsable() }\" class=\"p-4\">\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n", styles: [":host .collapsable.mat-drawer:not(.mat-drawer-opened){transform:translate(calc(-100% + 64px))!important;visibility:visible!important;box-shadow:inherit!important;transition-property:transform;transition-delay:.25s;display:flex;border-right:solid 1px rgba(0,0,0,.12)}:host .collapsable.mat-drawer:not(.mat-drawer-opened) ::ng-deep .mat-drawer-inner-container{display:block}:host .collapsable.mat-drawer ::ng-deep .mat-drawer-inner-container::-webkit-scrollbar{display:none}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "component", type: NavigationComponent, selector: "ul[rxap-navigation]", inputs: ["items", "level", "root"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
610
- }
611
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavComponent, decorators: [{
873
+ static {
874
+ this.ɵfac = i0.ɵɵngDeclareFactory({
875
+ minVersion: "12.0.0",
876
+ version: "22.3.0",
877
+ ngImport: i0,
878
+ type: SidenavComponent,
879
+ deps: [],
880
+ target: i0.ɵɵFactoryTarget.Component
881
+ });
882
+ }
883
+ static {
884
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
885
+ minVersion: "17.0.0",
886
+ version: "22.3.0",
887
+ type: SidenavComponent,
888
+ isStandalone: true,
889
+ selector: "rxap-sidenav",
890
+ queries: [{
891
+ propertyName: "sidenavFooterDirective",
892
+ first: true,
893
+ predicate: SidenavFooterDirective,
894
+ descendants: true,
895
+ isSignal: true
896
+ }, {
897
+ propertyName: "sidenavHeaderDirective",
898
+ first: true,
899
+ predicate: SidenavHeaderDirective,
900
+ descendants: true,
901
+ isSignal: true
902
+ }],
903
+ viewQueries: [{
904
+ propertyName: "sidenav",
905
+ first: true,
906
+ predicate: MatSidenav,
907
+ descendants: true,
908
+ isSignal: true
909
+ }],
910
+ ngImport: i0,
911
+ template: "<mat-sidenav-container [ngStyle]=\"{\n 'padding-top.px': fixedTopGap(),\n 'padding-bottom.px': fixedBottomGap(),\n }\" class=\"h-full\">\n <mat-sidenav\n [fixedBottomGap]=\"fixedBottomGap()\"\n [fixedInViewport]=\"fixedInViewport()\"\n [fixedTopGap]=\"fixedTopGap()\"\n [mode]=\"sidenavMode()\"\n [ngClass]=\"{ collapsable: collapsable() }\"\n [opened]=\"opened()\"\n (openedChange)=\"onOpenedChanged($event)\"\n >\n <div (mouseleave)=\"collapsable() && !pinned() && closeSidenav()\"\n class=\"h-full py-2 flex flex-col items-center gap-y-5 justify-items-stretch\">\n\n @if (collapsable()) {\n <div (click)=\"togglePinned()\"\n class=\"pl-2 self-stretch grow-0 flex flex-row justify-between items-center\">\n <span class=\"text-lg\" i18n>Navigation</span>\n <div class=\"flex flex-row items-center justify-center\" style=\"width: 64px\">\n <button mat-icon-button>\n @if (!pinned()) {\n <mat-icon>radio_button_unchecked</mat-icon>\n }\n @if (pinned()) {\n <mat-icon>radio_button_checked</mat-icon>\n }\n </button>\n </div>\n </div>\n }\n\n @if (sidenavHeaderDirective()?.template; as template) {\n <div [ngClass]=\"{ hidden: collapsed() }\" class=\"header grow-0\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n <mat-divider [ngClass]=\"{ hidden: collapsed() }\" class=\"grow-0\"></mat-divider>\n }\n\n <ul\n (mouseenter)=\"collapsable() && !pinned() && openSidenav()\"\n class=\"grow self-stretch\"\n [root]=\"true\"\n rxap-navigation\n >\n </ul>\n\n @if (sidenavFooterDirective()?.template; as template) {\n <mat-divider [ngClass]=\"{ hidden: collapsed() }\" class=\"grow-0\"></mat-divider>\n <div [ngClass]=\"{ hidden: collapsed() }\" class=\"footer grow-0\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n }\n </div>\n </mat-sidenav>\n <mat-sidenav-content [ngClass]=\"{ 'ml-16': collapsable() }\" class=\"p-4\">\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n",
912
+ styles: [":host .collapsable.mat-drawer:not(.mat-drawer-opened){transform:translate(calc(-100% + 64px))!important;visibility:visible!important;box-shadow:inherit!important;transition-property:transform;transition-delay:.25s;display:flex;border-right:solid 1px rgba(0,0,0,.12)}:host .collapsable.mat-drawer:not(.mat-drawer-opened) ::ng-deep .mat-drawer-inner-container{display:block}:host .collapsable.mat-drawer ::ng-deep .mat-drawer-inner-container::-webkit-scrollbar{display:none}\n"],
913
+ dependencies: [
914
+ {
915
+ kind: "component",
916
+ type: MatIcon,
917
+ selector: "mat-icon",
918
+ inputs: [
919
+ "color",
920
+ "inline",
921
+ "svgIcon",
922
+ "fontSet",
923
+ "fontIcon"
924
+ ],
925
+ exportAs: ["matIcon"]
926
+ },
927
+ {
928
+ kind: "component",
929
+ type: MatIconButton,
930
+ selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
931
+ exportAs: ["matButton", "matAnchor"]
932
+ },
933
+ {
934
+ kind: "component",
935
+ type: MatSidenav,
936
+ selector: "mat-sidenav",
937
+ inputs: [
938
+ "fixedInViewport",
939
+ "fixedTopGap",
940
+ "fixedBottomGap"
941
+ ],
942
+ exportAs: ["matSidenav"]
943
+ },
944
+ {
945
+ kind: "component",
946
+ type: MatSidenavContainer,
947
+ selector: "mat-sidenav-container",
948
+ exportAs: ["matSidenavContainer"]
949
+ },
950
+ {
951
+ kind: "component",
952
+ type: MatSidenavContent,
953
+ selector: "mat-sidenav-content"
954
+ },
955
+ {
956
+ kind: "component",
957
+ type: NavigationComponent,
958
+ selector: "ul[rxap-navigation]",
959
+ inputs: [
960
+ "items",
961
+ "level",
962
+ "root"
963
+ ]
964
+ },
965
+ {
966
+ kind: "directive",
967
+ type: NgClass,
968
+ selector: "[ngClass]",
969
+ inputs: ["class", "ngClass"]
970
+ },
971
+ {
972
+ kind: "directive",
973
+ type: NgStyle,
974
+ selector: "[ngStyle]",
975
+ inputs: ["ngStyle"]
976
+ },
977
+ {
978
+ kind: "component",
979
+ type: MatDivider,
980
+ selector: "mat-divider",
981
+ inputs: ["vertical", "inset"]
982
+ },
983
+ {
984
+ kind: "directive",
985
+ type: NgTemplateOutlet,
986
+ selector: "[ngTemplateOutlet]",
987
+ inputs: [
988
+ "ngTemplateOutletContext",
989
+ "ngTemplateOutlet",
990
+ "ngTemplateOutletInjector"
991
+ ]
992
+ }
993
+ ],
994
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
995
+ });
996
+ }
997
+ };
998
+ i0.ɵɵngDeclareClassMetadata({
999
+ minVersion: "12.0.0",
1000
+ version: "22.3.0",
1001
+ ngImport: i0,
1002
+ type: SidenavComponent,
1003
+ decorators: [{
612
1004
  type: Component,
613
- args: [{ selector: 'rxap-sidenav', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
1005
+ args: [{
1006
+ selector: "rxap-sidenav",
1007
+ changeDetection: ChangeDetectionStrategy.OnPush,
1008
+ imports: [
614
1009
  MatIcon,
615
1010
  MatIconButton,
616
1011
  MatSidenav,
@@ -621,126 +1016,594 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
621
1016
  NgStyle,
622
1017
  MatDivider,
623
1018
  NgTemplateOutlet
624
- ], template: "<mat-sidenav-container [ngStyle]=\"{\n 'padding-top.px': fixedTopGap(),\n 'padding-bottom.px': fixedBottomGap(),\n }\" class=\"h-full\">\n <mat-sidenav\n [fixedBottomGap]=\"fixedBottomGap()\"\n [fixedInViewport]=\"fixedInViewport()\"\n [fixedTopGap]=\"fixedTopGap()\"\n [mode]=\"sidenavMode()\"\n [ngClass]=\"{ collapsable: collapsable() }\"\n [opened]=\"opened()\"\n (openedChange)=\"onOpenedChanged($event)\"\n >\n <div (mouseleave)=\"collapsable() && !pinned() && closeSidenav()\"\n class=\"h-full py-2 flex flex-col items-center gap-y-5 justify-items-stretch\">\n\n @if (collapsable()) {\n <div (click)=\"togglePinned()\"\n class=\"pl-2 self-stretch grow-0 flex flex-row justify-between items-center\">\n <span class=\"text-lg\" i18n>Navigation</span>\n <div class=\"flex flex-row items-center justify-center\" style=\"width: 64px\">\n <button mat-icon-button>\n @if (!pinned()) {\n <mat-icon>radio_button_unchecked</mat-icon>\n }\n @if (pinned()) {\n <mat-icon>radio_button_checked</mat-icon>\n }\n </button>\n </div>\n </div>\n }\n\n @if (sidenavHeaderDirective()?.template; as template) {\n <div [ngClass]=\"{ hidden: collapsed() }\" class=\"header grow-0\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n <mat-divider [ngClass]=\"{ hidden: collapsed() }\" class=\"grow-0\"></mat-divider>\n }\n\n <ul\n (mouseenter)=\"collapsable() && !pinned() && openSidenav()\"\n class=\"grow self-stretch\"\n [root]=\"true\"\n rxap-navigation\n >\n </ul>\n\n @if (sidenavFooterDirective()?.template; as template) {\n <mat-divider [ngClass]=\"{ hidden: collapsed() }\" class=\"grow-0\"></mat-divider>\n <div [ngClass]=\"{ hidden: collapsed() }\" class=\"footer grow-0\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n }\n </div>\n </mat-sidenav>\n <mat-sidenav-content [ngClass]=\"{ 'ml-16': collapsable() }\" class=\"p-4\">\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n", styles: [":host .collapsable.mat-drawer:not(.mat-drawer-opened){transform:translate(calc(-100% + 64px))!important;visibility:visible!important;box-shadow:inherit!important;transition-property:transform;transition-delay:.25s;display:flex;border-right:solid 1px rgba(0,0,0,.12)}:host .collapsable.mat-drawer:not(.mat-drawer-opened) ::ng-deep .mat-drawer-inner-container{display:block}:host .collapsable.mat-drawer ::ng-deep .mat-drawer-inner-container::-webkit-scrollbar{display:none}\n"] }]
625
- }], propDecorators: { sidenav: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatSidenav), { isSignal: true }] }], sidenavFooterDirective: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SidenavFooterDirective), { isSignal: true }] }], sidenavHeaderDirective: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SidenavHeaderDirective), { isSignal: true }] }] } });
626
- class ReleaseInfoComponent {
1019
+ ],
1020
+ template: "<mat-sidenav-container [ngStyle]=\"{\n 'padding-top.px': fixedTopGap(),\n 'padding-bottom.px': fixedBottomGap(),\n }\" class=\"h-full\">\n <mat-sidenav\n [fixedBottomGap]=\"fixedBottomGap()\"\n [fixedInViewport]=\"fixedInViewport()\"\n [fixedTopGap]=\"fixedTopGap()\"\n [mode]=\"sidenavMode()\"\n [ngClass]=\"{ collapsable: collapsable() }\"\n [opened]=\"opened()\"\n (openedChange)=\"onOpenedChanged($event)\"\n >\n <div (mouseleave)=\"collapsable() && !pinned() && closeSidenav()\"\n class=\"h-full py-2 flex flex-col items-center gap-y-5 justify-items-stretch\">\n\n @if (collapsable()) {\n <div (click)=\"togglePinned()\"\n class=\"pl-2 self-stretch grow-0 flex flex-row justify-between items-center\">\n <span class=\"text-lg\" i18n>Navigation</span>\n <div class=\"flex flex-row items-center justify-center\" style=\"width: 64px\">\n <button mat-icon-button>\n @if (!pinned()) {\n <mat-icon>radio_button_unchecked</mat-icon>\n }\n @if (pinned()) {\n <mat-icon>radio_button_checked</mat-icon>\n }\n </button>\n </div>\n </div>\n }\n\n @if (sidenavHeaderDirective()?.template; as template) {\n <div [ngClass]=\"{ hidden: collapsed() }\" class=\"header grow-0\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n <mat-divider [ngClass]=\"{ hidden: collapsed() }\" class=\"grow-0\"></mat-divider>\n }\n\n <ul\n (mouseenter)=\"collapsable() && !pinned() && openSidenav()\"\n class=\"grow self-stretch\"\n [root]=\"true\"\n rxap-navigation\n >\n </ul>\n\n @if (sidenavFooterDirective()?.template; as template) {\n <mat-divider [ngClass]=\"{ hidden: collapsed() }\" class=\"grow-0\"></mat-divider>\n <div [ngClass]=\"{ hidden: collapsed() }\" class=\"footer grow-0\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n }\n </div>\n </mat-sidenav>\n <mat-sidenav-content [ngClass]=\"{ 'ml-16': collapsable() }\" class=\"p-4\">\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n",
1021
+ styles: [":host .collapsable.mat-drawer:not(.mat-drawer-opened){transform:translate(calc(-100% + 64px))!important;visibility:visible!important;box-shadow:inherit!important;transition-property:transform;transition-delay:.25s;display:flex;border-right:solid 1px rgba(0,0,0,.12)}:host .collapsable.mat-drawer:not(.mat-drawer-opened) ::ng-deep .mat-drawer-inner-container{display:block}:host .collapsable.mat-drawer ::ng-deep .mat-drawer-inner-container::-webkit-scrollbar{display:none}\n"]
1022
+ }]
1023
+ }],
1024
+ propDecorators: {
1025
+ sidenav: [{
1026
+ type: i0.ViewChild,
1027
+ args: [i0.forwardRef(() => MatSidenav), { isSignal: true }]
1028
+ }],
1029
+ sidenavFooterDirective: [{
1030
+ type: i0.ContentChild,
1031
+ args: [i0.forwardRef(() => SidenavFooterDirective), { isSignal: true }]
1032
+ }],
1033
+ sidenavHeaderDirective: [{
1034
+ type: i0.ContentChild,
1035
+ args: [i0.forwardRef(() => SidenavHeaderDirective), { isSignal: true }]
1036
+ }]
1037
+ }
1038
+ });
1039
+ let ReleaseInfoComponent = class ReleaseInfoComponent {
627
1040
  constructor() {
628
1041
  this.modules = coerceArray(inject(RXAP_RELEASE_INFO_MODULE, { optional: true }));
629
1042
  this.release = DetermineReleaseName(inject(RXAP_ENVIRONMENT));
630
1043
  this.dialog = inject(MatDialog);
631
1044
  }
632
1045
  openEnvironmentInfo() {
633
- this.dialog.open(EnvironmentComponent, {
634
- closeOnNavigation: true,
1046
+ this.dialog.open(EnvironmentComponent, { closeOnNavigation: true });
1047
+ }
1048
+ static {
1049
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1050
+ minVersion: "12.0.0",
1051
+ version: "22.3.0",
1052
+ ngImport: i0,
1053
+ type: ReleaseInfoComponent,
1054
+ deps: [],
1055
+ target: i0.ɵɵFactoryTarget.Component
635
1056
  });
636
1057
  }
637
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReleaseInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
638
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: ReleaseInfoComponent, isStandalone: true, selector: "rxap-release-info", ngImport: i0, template: "<div class=\"flex flex-col gap-2 w-full justify-center\">\n <button (click)=\"openEnvironmentInfo()\" mat-button>{{ release }}</button>\n @if (modules.length) {\n <table class=\"table-auto border-separate border-spacing-2 bg-white dark:bg-slate-800 text-sm shadow-sm\">\n <thead class=\"bg-slate-50 dark:bg-slate-700\">\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Module</th>\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Version</th>\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Hash</th>\n </thead>\n <tbody>\n @for (module of modules; track module.name) {\n <tr>\n <th class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 py-2 px-4\">{{ module.name }}</th>\n <td class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-2\">{{ module.version }}</td>\n <td class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-2\">{{ module.hash }}</td>\n </tr>\n }\n </tbody>\n </table>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
639
- }
640
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReleaseInfoComponent, decorators: [{
1058
+ static {
1059
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1060
+ minVersion: "17.0.0",
1061
+ version: "22.3.0",
1062
+ type: ReleaseInfoComponent,
1063
+ isStandalone: true,
1064
+ selector: "rxap-release-info",
1065
+ ngImport: i0,
1066
+ template: "<div class=\"flex flex-col gap-2 w-full justify-center\">\n <button (click)=\"openEnvironmentInfo()\" mat-button>{{ release }}</button>\n @if (modules.length) {\n <table class=\"table-auto border-separate border-spacing-2 bg-white dark:bg-slate-800 text-sm shadow-sm\">\n <thead class=\"bg-slate-50 dark:bg-slate-700\">\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Module</th>\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Version</th>\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Hash</th>\n </thead>\n <tbody>\n @for (module of modules; track module.name) {\n <tr>\n <th class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 py-2 px-4\">{{ module.name }}</th>\n <td class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-2\">{{ module.version }}</td>\n <td class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-2\">{{ module.hash }}</td>\n </tr>\n }\n </tbody>\n </table>\n }\n</div>\n",
1067
+ styles: [""],
1068
+ dependencies: [{
1069
+ kind: "component",
1070
+ type: MatButton,
1071
+ selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ",
1072
+ inputs: ["matButton"],
1073
+ exportAs: ["matButton", "matAnchor"]
1074
+ }],
1075
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1076
+ });
1077
+ }
1078
+ };
1079
+ i0.ɵɵngDeclareClassMetadata({
1080
+ minVersion: "12.0.0",
1081
+ version: "22.3.0",
1082
+ ngImport: i0,
1083
+ type: ReleaseInfoComponent,
1084
+ decorators: [{
641
1085
  type: Component,
642
- args: [{ selector: 'rxap-release-info', imports: [
643
- MatButton,
644
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex flex-col gap-2 w-full justify-center\">\n <button (click)=\"openEnvironmentInfo()\" mat-button>{{ release }}</button>\n @if (modules.length) {\n <table class=\"table-auto border-separate border-spacing-2 bg-white dark:bg-slate-800 text-sm shadow-sm\">\n <thead class=\"bg-slate-50 dark:bg-slate-700\">\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Module</th>\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Version</th>\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Hash</th>\n </thead>\n <tbody>\n @for (module of modules; track module.name) {\n <tr>\n <th class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 py-2 px-4\">{{ module.name }}</th>\n <td class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-2\">{{ module.version }}</td>\n <td class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-2\">{{ module.hash }}</td>\n </tr>\n }\n </tbody>\n </table>\n }\n</div>\n" }]
645
- }] });
646
- class NavigationProgressBarComponent {
1086
+ args: [{
1087
+ selector: "rxap-release-info",
1088
+ imports: [MatButton],
1089
+ changeDetection: ChangeDetectionStrategy.OnPush,
1090
+ template: "<div class=\"flex flex-col gap-2 w-full justify-center\">\n <button (click)=\"openEnvironmentInfo()\" mat-button>{{ release }}</button>\n @if (modules.length) {\n <table class=\"table-auto border-separate border-spacing-2 bg-white dark:bg-slate-800 text-sm shadow-sm\">\n <thead class=\"bg-slate-50 dark:bg-slate-700\">\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Module</th>\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Version</th>\n <th class=\"text-sm border-slate-300 dark:border-slate-600 text-slate-900 dark:text-slate-200 border p-2\">Hash</th>\n </thead>\n <tbody>\n @for (module of modules; track module.name) {\n <tr>\n <th class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 py-2 px-4\">{{ module.name }}</th>\n <td class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-2\">{{ module.version }}</td>\n <td class=\"text-sm border border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-2\">{{ module.hash }}</td>\n </tr>\n }\n </tbody>\n </table>\n }\n</div>\n"
1091
+ }]
1092
+ }]
1093
+ });
1094
+ let NavigationProgressBarComponent = class NavigationProgressBarComponent {
647
1095
  constructor() {
648
1096
  this.router = inject(Router);
649
- this.navigating = toSignal(this.router.events.pipe(filter(event => event instanceof NavigationStart ||
650
- event instanceof NavigationEnd ||
651
- event instanceof NavigationCancel), map(event => event instanceof NavigationStart)), { initialValue: true });
1097
+ this.navigating = toSignal(this.router.events.pipe(filter((event) => event instanceof NavigationStart || event instanceof NavigationEnd || event instanceof NavigationCancel), map((event) => event instanceof NavigationStart)), { initialValue: true });
652
1098
  }
653
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
654
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: NavigationProgressBarComponent, isStandalone: true, selector: "rxap-navigation-progress-bar", ngImport: i0, template: "@if (navigating()) {\n<mat-progress-bar color=\"accent\" mode=\"indeterminate\"></mat-progress-bar>\n}\n", styles: [""], dependencies: [{ kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
655
- }
656
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationProgressBarComponent, decorators: [{
1099
+ static {
1100
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1101
+ minVersion: "12.0.0",
1102
+ version: "22.3.0",
1103
+ ngImport: i0,
1104
+ type: NavigationProgressBarComponent,
1105
+ deps: [],
1106
+ target: i0.ɵɵFactoryTarget.Component
1107
+ });
1108
+ }
1109
+ static {
1110
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1111
+ minVersion: "17.0.0",
1112
+ version: "22.3.0",
1113
+ type: NavigationProgressBarComponent,
1114
+ isStandalone: true,
1115
+ selector: "rxap-navigation-progress-bar",
1116
+ ngImport: i0,
1117
+ template: "@if (navigating()) {\n<mat-progress-bar color=\"accent\" mode=\"indeterminate\"></mat-progress-bar>\n}\n",
1118
+ styles: [""],
1119
+ dependencies: [{
1120
+ kind: "component",
1121
+ type: MatProgressBar,
1122
+ selector: "mat-progress-bar",
1123
+ inputs: [
1124
+ "color",
1125
+ "value",
1126
+ "bufferValue",
1127
+ "mode"
1128
+ ],
1129
+ outputs: ["animationEnd"],
1130
+ exportAs: ["matProgressBar"]
1131
+ }],
1132
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1133
+ });
1134
+ }
1135
+ };
1136
+ i0.ɵɵngDeclareClassMetadata({
1137
+ minVersion: "12.0.0",
1138
+ version: "22.3.0",
1139
+ ngImport: i0,
1140
+ type: NavigationProgressBarComponent,
1141
+ decorators: [{
657
1142
  type: Component,
658
- args: [{ selector: 'rxap-navigation-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
659
- MatProgressBar,
660
- ], template: "@if (navigating()) {\n<mat-progress-bar color=\"accent\" mode=\"indeterminate\"></mat-progress-bar>\n}\n" }]
661
- }] });
662
- class FooterComponent {
1143
+ args: [{
1144
+ selector: "rxap-navigation-progress-bar",
1145
+ changeDetection: ChangeDetectionStrategy.OnPush,
1146
+ imports: [MatProgressBar],
1147
+ template: "@if (navigating()) {\n<mat-progress-bar color=\"accent\" mode=\"indeterminate\"></mat-progress-bar>\n}\n"
1148
+ }]
1149
+ }]
1150
+ });
1151
+ let FooterComponent = class FooterComponent {
663
1152
  constructor() {
664
1153
  this.footerService = inject(FooterService);
665
- this.portals = computed(() => this.footerService.portals(), ...(ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []));
666
- this.hasPortals = computed(() => this.portals().length > 0, ...(ngDevMode ? [{ debugName: "hasPortals" }] : /* istanbul ignore next */ []));
1154
+ this.portals = computed(() => this.footerService.portals(), ...ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []);
1155
+ this.hasPortals = computed(() => this.portals().length > 0, ...ngDevMode ? [{ debugName: "hasPortals" }] : /* istanbul ignore next */ []);
667
1156
  }
668
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
669
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: FooterComponent, isStandalone: true, selector: "rxap-footer", ngImport: i0, template: "@if (hasPortals()) {\n <mat-toolbar class=\"mat-elevation-z1\">\n @for (portal of portals(); track portal) {\n <mat-toolbar-row>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n }\n </mat-toolbar>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i1$1.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
670
- }
671
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FooterComponent, decorators: [{
1157
+ static {
1158
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1159
+ minVersion: "12.0.0",
1160
+ version: "22.3.0",
1161
+ ngImport: i0,
1162
+ type: FooterComponent,
1163
+ deps: [],
1164
+ target: i0.ɵɵFactoryTarget.Component
1165
+ });
1166
+ }
1167
+ static {
1168
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1169
+ minVersion: "17.0.0",
1170
+ version: "22.3.0",
1171
+ type: FooterComponent,
1172
+ isStandalone: true,
1173
+ selector: "rxap-footer",
1174
+ ngImport: i0,
1175
+ template: "@if (hasPortals()) {\n <mat-toolbar class=\"mat-elevation-z1\">\n @for (portal of portals(); track portal) {\n <mat-toolbar-row>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n }\n </mat-toolbar>\n}\n",
1176
+ styles: [""],
1177
+ dependencies: [
1178
+ {
1179
+ kind: "ngmodule",
1180
+ type: MatToolbarModule
1181
+ },
1182
+ {
1183
+ kind: "component",
1184
+ type: i1$1.MatToolbar,
1185
+ selector: "mat-toolbar",
1186
+ inputs: ["color"],
1187
+ exportAs: ["matToolbar"]
1188
+ },
1189
+ {
1190
+ kind: "directive",
1191
+ type: i1$1.MatToolbarRow,
1192
+ selector: "mat-toolbar-row",
1193
+ exportAs: ["matToolbarRow"]
1194
+ },
1195
+ {
1196
+ kind: "ngmodule",
1197
+ type: PortalModule
1198
+ },
1199
+ {
1200
+ kind: "directive",
1201
+ type: i2.CdkPortalOutlet,
1202
+ selector: "[cdkPortalOutlet]",
1203
+ inputs: ["cdkPortalOutlet"],
1204
+ outputs: ["attached"],
1205
+ exportAs: ["cdkPortalOutlet"]
1206
+ }
1207
+ ],
1208
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1209
+ });
1210
+ }
1211
+ };
1212
+ i0.ɵɵngDeclareClassMetadata({
1213
+ minVersion: "12.0.0",
1214
+ version: "22.3.0",
1215
+ ngImport: i0,
1216
+ type: FooterComponent,
1217
+ decorators: [{
672
1218
  type: Component,
673
- args: [{ selector: 'rxap-footer', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatToolbarModule, PortalModule], template: "@if (hasPortals()) {\n <mat-toolbar class=\"mat-elevation-z1\">\n @for (portal of portals(); track portal) {\n <mat-toolbar-row>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n }\n </mat-toolbar>\n}\n" }]
674
- }] });
675
- class HeaderComponent {
1219
+ args: [{
1220
+ selector: "rxap-footer",
1221
+ changeDetection: ChangeDetectionStrategy.OnPush,
1222
+ imports: [MatToolbarModule, PortalModule],
1223
+ template: "@if (hasPortals()) {\n <mat-toolbar class=\"mat-elevation-z1\">\n @for (portal of portals(); track portal) {\n <mat-toolbar-row>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n }\n </mat-toolbar>\n}\n"
1224
+ }]
1225
+ }]
1226
+ });
1227
+ let HeaderComponent = class HeaderComponent {
676
1228
  constructor() {
677
- this.color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : /* istanbul ignore next */ []));
1229
+ this.color = input(...ngDevMode ? [void 0, { debugName: "color" }] : /* istanbul ignore next */ []);
678
1230
  this.headerService = inject(HeaderService);
679
- this.portals = computed(() => this.headerService.portals(), ...(ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []));
680
- this.hasPortals = computed(() => this.portals().length > 0, ...(ngDevMode ? [{ debugName: "hasPortals" }] : /* istanbul ignore next */ []));
1231
+ this.portals = computed(() => this.headerService.portals(), ...ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []);
1232
+ this.hasPortals = computed(() => this.portals().length > 0, ...ngDevMode ? [{ debugName: "hasPortals" }] : /* istanbul ignore next */ []);
681
1233
  }
682
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
683
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: HeaderComponent, isStandalone: true, selector: "rxap-header", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (hasPortals()) {\n <mat-toolbar [color]=\"color()\" class=\"mat-elevation-z1\">\n @for (portal of portals(); track portal) {\n <mat-toolbar-row>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n }\n </mat-toolbar>\n}\n", styles: [""], dependencies: [{ kind: "component", type: MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
684
- }
685
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: HeaderComponent, decorators: [{
1234
+ static {
1235
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1236
+ minVersion: "12.0.0",
1237
+ version: "22.3.0",
1238
+ ngImport: i0,
1239
+ type: HeaderComponent,
1240
+ deps: [],
1241
+ target: i0.ɵɵFactoryTarget.Component
1242
+ });
1243
+ }
1244
+ static {
1245
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1246
+ minVersion: "17.0.0",
1247
+ version: "22.3.0",
1248
+ type: HeaderComponent,
1249
+ isStandalone: true,
1250
+ selector: "rxap-header",
1251
+ inputs: { color: {
1252
+ classPropertyName: "color",
1253
+ publicName: "color",
1254
+ isSignal: true,
1255
+ isRequired: false,
1256
+ transformFunction: null
1257
+ } },
1258
+ ngImport: i0,
1259
+ template: "@if (hasPortals()) {\n <mat-toolbar [color]=\"color()\" class=\"mat-elevation-z1\">\n @for (portal of portals(); track portal) {\n <mat-toolbar-row>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n }\n </mat-toolbar>\n}\n",
1260
+ styles: [""],
1261
+ dependencies: [
1262
+ {
1263
+ kind: "component",
1264
+ type: MatToolbar,
1265
+ selector: "mat-toolbar",
1266
+ inputs: ["color"],
1267
+ exportAs: ["matToolbar"]
1268
+ },
1269
+ {
1270
+ kind: "directive",
1271
+ type: MatToolbarRow,
1272
+ selector: "mat-toolbar-row",
1273
+ exportAs: ["matToolbarRow"]
1274
+ },
1275
+ {
1276
+ kind: "directive",
1277
+ type: CdkPortalOutlet,
1278
+ selector: "[cdkPortalOutlet]",
1279
+ inputs: ["cdkPortalOutlet"],
1280
+ outputs: ["attached"],
1281
+ exportAs: ["cdkPortalOutlet"]
1282
+ }
1283
+ ],
1284
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1285
+ });
1286
+ }
1287
+ };
1288
+ i0.ɵɵngDeclareClassMetadata({
1289
+ minVersion: "12.0.0",
1290
+ version: "22.3.0",
1291
+ ngImport: i0,
1292
+ type: HeaderComponent,
1293
+ decorators: [{
686
1294
  type: Component,
687
- args: [{ selector: 'rxap-header', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
1295
+ args: [{
1296
+ selector: "rxap-header",
1297
+ changeDetection: ChangeDetectionStrategy.OnPush,
1298
+ imports: [
688
1299
  MatToolbar,
689
1300
  MatToolbarRow,
690
- CdkPortalOutlet,
691
- ], template: "@if (hasPortals()) {\n <mat-toolbar [color]=\"color()\" class=\"mat-elevation-z1\">\n @for (portal of portals(); track portal) {\n <mat-toolbar-row>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n }\n </mat-toolbar>\n}\n" }]
692
- }], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
693
- class BaseLayoutComponent {
694
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BaseLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
695
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: BaseLayoutComponent, isStandalone: true, selector: "rxap-base-layout", ngImport: i0, template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<ng-content></ng-content>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n", styles: [""], dependencies: [{ kind: "component", type: HeaderComponent, selector: "rxap-header", inputs: ["color"] }, { kind: "component", type: FooterComponent, selector: "rxap-footer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
696
- }
697
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BaseLayoutComponent, decorators: [{
1301
+ CdkPortalOutlet
1302
+ ],
1303
+ template: "@if (hasPortals()) {\n <mat-toolbar [color]=\"color()\" class=\"mat-elevation-z1\">\n @for (portal of portals(); track portal) {\n <mat-toolbar-row>\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n }\n </mat-toolbar>\n}\n"
1304
+ }]
1305
+ }],
1306
+ propDecorators: { color: [{
1307
+ type: i0.Input,
1308
+ args: [{
1309
+ isSignal: true,
1310
+ alias: "color",
1311
+ required: false
1312
+ }]
1313
+ }] }
1314
+ });
1315
+ let BaseLayoutComponent = class BaseLayoutComponent {
1316
+ static {
1317
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1318
+ minVersion: "12.0.0",
1319
+ version: "22.3.0",
1320
+ ngImport: i0,
1321
+ type: BaseLayoutComponent,
1322
+ deps: [],
1323
+ target: i0.ɵɵFactoryTarget.Component
1324
+ });
1325
+ }
1326
+ static {
1327
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1328
+ minVersion: "14.0.0",
1329
+ version: "22.3.0",
1330
+ type: BaseLayoutComponent,
1331
+ isStandalone: true,
1332
+ selector: "rxap-base-layout",
1333
+ ngImport: i0,
1334
+ template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<ng-content></ng-content>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n",
1335
+ styles: [""],
1336
+ dependencies: [{
1337
+ kind: "component",
1338
+ type: HeaderComponent,
1339
+ selector: "rxap-header",
1340
+ inputs: ["color"]
1341
+ }, {
1342
+ kind: "component",
1343
+ type: FooterComponent,
1344
+ selector: "rxap-footer"
1345
+ }],
1346
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1347
+ });
1348
+ }
1349
+ };
1350
+ i0.ɵɵngDeclareClassMetadata({
1351
+ minVersion: "12.0.0",
1352
+ version: "22.3.0",
1353
+ ngImport: i0,
1354
+ type: BaseLayoutComponent,
1355
+ decorators: [{
698
1356
  type: Component,
699
- args: [{ selector: 'rxap-base-layout', imports: [
700
- HeaderComponent,
701
- FooterComponent,
702
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<ng-content></ng-content>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n" }]
703
- }] });
704
- class MinimalLayoutComponent {
705
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MinimalLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
706
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: MinimalLayoutComponent, isStandalone: true, selector: "rxap-minimal-layout", ngImport: i0, template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n<router-outlet></router-outlet>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n", styles: [""], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: NavigationProgressBarComponent, selector: "rxap-navigation-progress-bar" }, { kind: "component", type: HeaderComponent, selector: "rxap-header", inputs: ["color"] }, { kind: "component", type: FooterComponent, selector: "rxap-footer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
707
- }
708
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MinimalLayoutComponent, decorators: [{
1357
+ args: [{
1358
+ selector: "rxap-base-layout",
1359
+ imports: [HeaderComponent, FooterComponent],
1360
+ changeDetection: ChangeDetectionStrategy.OnPush,
1361
+ template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<ng-content></ng-content>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n"
1362
+ }]
1363
+ }]
1364
+ });
1365
+ let MinimalLayoutComponent = class MinimalLayoutComponent {
1366
+ static {
1367
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1368
+ minVersion: "12.0.0",
1369
+ version: "22.3.0",
1370
+ ngImport: i0,
1371
+ type: MinimalLayoutComponent,
1372
+ deps: [],
1373
+ target: i0.ɵɵFactoryTarget.Component
1374
+ });
1375
+ }
1376
+ static {
1377
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1378
+ minVersion: "14.0.0",
1379
+ version: "22.3.0",
1380
+ type: MinimalLayoutComponent,
1381
+ isStandalone: true,
1382
+ selector: "rxap-minimal-layout",
1383
+ ngImport: i0,
1384
+ template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n<router-outlet></router-outlet>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n",
1385
+ styles: [""],
1386
+ dependencies: [
1387
+ {
1388
+ kind: "directive",
1389
+ type: RouterOutlet,
1390
+ selector: "router-outlet",
1391
+ inputs: ["name", "routerOutletData"],
1392
+ outputs: [
1393
+ "activate",
1394
+ "deactivate",
1395
+ "attach",
1396
+ "detach"
1397
+ ],
1398
+ exportAs: ["outlet"]
1399
+ },
1400
+ {
1401
+ kind: "component",
1402
+ type: NavigationProgressBarComponent,
1403
+ selector: "rxap-navigation-progress-bar"
1404
+ },
1405
+ {
1406
+ kind: "component",
1407
+ type: HeaderComponent,
1408
+ selector: "rxap-header",
1409
+ inputs: ["color"]
1410
+ },
1411
+ {
1412
+ kind: "component",
1413
+ type: FooterComponent,
1414
+ selector: "rxap-footer"
1415
+ }
1416
+ ],
1417
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1418
+ });
1419
+ }
1420
+ };
1421
+ i0.ɵɵngDeclareClassMetadata({
1422
+ minVersion: "12.0.0",
1423
+ version: "22.3.0",
1424
+ ngImport: i0,
1425
+ type: MinimalLayoutComponent,
1426
+ decorators: [{
709
1427
  type: Component,
710
- args: [{ selector: 'rxap-minimal-layout', imports: [RouterOutlet, BaseLayoutComponent, NavigationProgressBarComponent, HeaderComponent, FooterComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n<router-outlet></router-outlet>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n" }]
711
- }] });
712
- class LogoService {
1428
+ args: [{
1429
+ selector: "rxap-minimal-layout",
1430
+ imports: [
1431
+ RouterOutlet,
1432
+ BaseLayoutComponent,
1433
+ NavigationProgressBarComponent,
1434
+ HeaderComponent,
1435
+ FooterComponent
1436
+ ],
1437
+ changeDetection: ChangeDetectionStrategy.OnPush,
1438
+ template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n<router-outlet></router-outlet>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n"
1439
+ }]
1440
+ }]
1441
+ });
1442
+ var LogoService = class LogoService {
713
1443
  constructor() {
714
1444
  this.config = inject(ConfigService);
715
- this.logo = signal(inject(RXAP_LOGO_CONFIG, { optional: true }) ??
716
- this.config.get('logo', inject(RXAP_LOGO_CONFIG_DEFAULTS, { optional: true }) ?? {
717
- src: 'logo.png',
718
- width: 192,
719
- }), ...(ngDevMode ? [{ debugName: "logo" }] : /* istanbul ignore next */ []));
720
- this.src = computed(() => this.logo().src, ...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
721
- this.width = computed(() => this.logo().width, ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
722
- this.height = computed(() => this.logo().height, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
723
- }
724
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LogoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
725
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LogoService, providedIn: 'root' }); }
726
- }
727
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LogoService, decorators: [{
1445
+ this.logo = signal(inject(RXAP_LOGO_CONFIG, { optional: true }) ?? this.config.get("logo", inject(RXAP_LOGO_CONFIG_DEFAULTS, { optional: true }) ?? {
1446
+ src: "logo.png",
1447
+ width: 192
1448
+ }), ...ngDevMode ? [{ debugName: "logo" }] : /* istanbul ignore next */ []);
1449
+ this.src = computed(() => this.logo().src, ...ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []);
1450
+ this.width = computed(() => this.logo().width, ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
1451
+ this.height = computed(() => this.logo().height, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
1452
+ }
1453
+ static {
1454
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1455
+ minVersion: "12.0.0",
1456
+ version: "22.3.0",
1457
+ ngImport: i0,
1458
+ type: LogoService,
1459
+ deps: [],
1460
+ target: i0.ɵɵFactoryTarget.Injectable
1461
+ });
1462
+ }
1463
+ static {
1464
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
1465
+ minVersion: "12.0.0",
1466
+ version: "22.3.0",
1467
+ ngImport: i0,
1468
+ type: LogoService,
1469
+ providedIn: "root"
1470
+ });
1471
+ }
1472
+ };
1473
+ i0.ɵɵngDeclareClassMetadata({
1474
+ minVersion: "12.0.0",
1475
+ version: "22.3.0",
1476
+ ngImport: i0,
1477
+ type: LogoService,
1478
+ decorators: [{
728
1479
  type: Injectable,
729
- args: [{ providedIn: 'root' }]
730
- }] });
731
- class LayoutComponent {
1480
+ args: [{ providedIn: "root" }]
1481
+ }]
1482
+ });
1483
+ let LayoutComponent = class LayoutComponent {
732
1484
  constructor() {
733
1485
  this.logoService = inject(LogoService);
734
- this.logoSrc = computed(() => this.logoService.src(), ...(ngDevMode ? [{ debugName: "logoSrc" }] : /* istanbul ignore next */ []));
735
- this.logoWidth = computed(() => this.logoService.width(), ...(ngDevMode ? [{ debugName: "logoWidth" }] : /* istanbul ignore next */ []));
736
- this.logoHeight = computed(() => this.logoService.height(), ...(ngDevMode ? [{ debugName: "logoHeight" }] : /* istanbul ignore next */ []));
1486
+ this.logoSrc = computed(() => this.logoService.src(), ...ngDevMode ? [{ debugName: "logoSrc" }] : /* istanbul ignore next */ []);
1487
+ this.logoWidth = computed(() => this.logoService.width(), ...ngDevMode ? [{ debugName: "logoWidth" }] : /* istanbul ignore next */ []);
1488
+ this.logoHeight = computed(() => this.logoService.height(), ...ngDevMode ? [{ debugName: "logoHeight" }] : /* istanbul ignore next */ []);
737
1489
  }
738
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
739
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: LayoutComponent, isStandalone: true, selector: "rxap-layout", ngImport: i0, template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n<rxap-sidenav>\n <router-outlet></router-outlet>\n <ng-template rxapSidenavFooter>\n <img\n [src]=\"logoSrc()\"\n [routerLink]=\"['/']\"\n [width]=\"logoWidth()\"\n [height]=\"logoHeight()\"\n alt=\"logo\"\n class=\"grow-0 mx-16 cursor-pointer\"\n />\n <div class=\"grow-0 px-16 mt-4\">\n <rxap-release-info></rxap-release-info>\n </div>\n </ng-template>\n</rxap-sidenav>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n", styles: [""], dependencies: [{ kind: "component", type: HeaderComponent, selector: "rxap-header", inputs: ["color"] }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: FooterComponent, selector: "rxap-footer" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: SidenavComponent, selector: "rxap-sidenav" }, { kind: "component", type: ReleaseInfoComponent, selector: "rxap-release-info" }, { kind: "directive", type: SidenavFooterDirective, selector: "[rxapSidenavFooter]" }, { kind: "component", type: NavigationProgressBarComponent, selector: "rxap-navigation-progress-bar" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
740
- }
741
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LayoutComponent, decorators: [{
1490
+ static {
1491
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1492
+ minVersion: "12.0.0",
1493
+ version: "22.3.0",
1494
+ ngImport: i0,
1495
+ type: LayoutComponent,
1496
+ deps: [],
1497
+ target: i0.ɵɵFactoryTarget.Component
1498
+ });
1499
+ }
1500
+ static {
1501
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1502
+ minVersion: "14.0.0",
1503
+ version: "22.3.0",
1504
+ type: LayoutComponent,
1505
+ isStandalone: true,
1506
+ selector: "rxap-layout",
1507
+ ngImport: i0,
1508
+ template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n<rxap-sidenav>\n <router-outlet></router-outlet>\n <ng-template rxapSidenavFooter>\n <img\n [src]=\"logoSrc()\"\n [routerLink]=\"['/']\"\n [width]=\"logoWidth()\"\n [height]=\"logoHeight()\"\n alt=\"logo\"\n class=\"grow-0 mx-16 cursor-pointer\"\n />\n <div class=\"grow-0 px-16 mt-4\">\n <rxap-release-info></rxap-release-info>\n </div>\n </ng-template>\n</rxap-sidenav>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n",
1509
+ styles: [""],
1510
+ dependencies: [
1511
+ {
1512
+ kind: "component",
1513
+ type: HeaderComponent,
1514
+ selector: "rxap-header",
1515
+ inputs: ["color"]
1516
+ },
1517
+ {
1518
+ kind: "ngmodule",
1519
+ type: MatSidenavModule
1520
+ },
1521
+ {
1522
+ kind: "ngmodule",
1523
+ type: MatIconModule
1524
+ },
1525
+ {
1526
+ kind: "ngmodule",
1527
+ type: MatButtonModule
1528
+ },
1529
+ {
1530
+ kind: "directive",
1531
+ type: RouterLink,
1532
+ selector: "[routerLink]",
1533
+ inputs: [
1534
+ "target",
1535
+ "queryParams",
1536
+ "fragment",
1537
+ "queryParamsHandling",
1538
+ "state",
1539
+ "info",
1540
+ "relativeTo",
1541
+ "preserveFragment",
1542
+ "skipLocationChange",
1543
+ "replaceUrl",
1544
+ "browserUrl",
1545
+ "scroll",
1546
+ "routerLink"
1547
+ ]
1548
+ },
1549
+ {
1550
+ kind: "component",
1551
+ type: FooterComponent,
1552
+ selector: "rxap-footer"
1553
+ },
1554
+ {
1555
+ kind: "ngmodule",
1556
+ type: MatMenuModule
1557
+ },
1558
+ {
1559
+ kind: "directive",
1560
+ type: RouterOutlet,
1561
+ selector: "router-outlet",
1562
+ inputs: ["name", "routerOutletData"],
1563
+ outputs: [
1564
+ "activate",
1565
+ "deactivate",
1566
+ "attach",
1567
+ "detach"
1568
+ ],
1569
+ exportAs: ["outlet"]
1570
+ },
1571
+ {
1572
+ kind: "component",
1573
+ type: SidenavComponent,
1574
+ selector: "rxap-sidenav"
1575
+ },
1576
+ {
1577
+ kind: "component",
1578
+ type: ReleaseInfoComponent,
1579
+ selector: "rxap-release-info"
1580
+ },
1581
+ {
1582
+ kind: "directive",
1583
+ type: SidenavFooterDirective,
1584
+ selector: "[rxapSidenavFooter]"
1585
+ },
1586
+ {
1587
+ kind: "component",
1588
+ type: NavigationProgressBarComponent,
1589
+ selector: "rxap-navigation-progress-bar"
1590
+ }
1591
+ ],
1592
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1593
+ });
1594
+ }
1595
+ };
1596
+ i0.ɵɵngDeclareClassMetadata({
1597
+ minVersion: "12.0.0",
1598
+ version: "22.3.0",
1599
+ ngImport: i0,
1600
+ type: LayoutComponent,
1601
+ decorators: [{
742
1602
  type: Component,
743
- args: [{ selector: 'rxap-layout', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
1603
+ args: [{
1604
+ selector: "rxap-layout",
1605
+ changeDetection: ChangeDetectionStrategy.OnPush,
1606
+ imports: [
744
1607
  HeaderComponent,
745
1608
  MatSidenavModule,
746
1609
  AsyncPipe,
@@ -758,9 +1621,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
758
1621
  ReleaseInfoComponent,
759
1622
  SidenavFooterDirective,
760
1623
  NavigationProgressBarComponent
761
- ], template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n<rxap-sidenav>\n <router-outlet></router-outlet>\n <ng-template rxapSidenavFooter>\n <img\n [src]=\"logoSrc()\"\n [routerLink]=\"['/']\"\n [width]=\"logoWidth()\"\n [height]=\"logoHeight()\"\n alt=\"logo\"\n class=\"grow-0 mx-16 cursor-pointer\"\n />\n <div class=\"grow-0 px-16 mt-4\">\n <rxap-release-info></rxap-release-info>\n </div>\n </ng-template>\n</rxap-sidenav>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n" }]
762
- }] });
763
- class HeaderDirective {
1624
+ ],
1625
+ template: "<rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n<rxap-sidenav>\n <router-outlet></router-outlet>\n <ng-template rxapSidenavFooter>\n <img\n [src]=\"logoSrc()\"\n [routerLink]=\"['/']\"\n [width]=\"logoWidth()\"\n [height]=\"logoHeight()\"\n alt=\"logo\"\n class=\"grow-0 mx-16 cursor-pointer\"\n />\n <div class=\"grow-0 px-16 mt-4\">\n <rxap-release-info></rxap-release-info>\n </div>\n </ng-template>\n</rxap-sidenav>\n<rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n"
1626
+ }]
1627
+ }]
1628
+ });
1629
+ var HeaderDirective = class HeaderDirective {
764
1630
  constructor() {
765
1631
  this.headerService = inject(HeaderService);
766
1632
  this.template = inject(TemplateRef);
@@ -771,21 +1637,44 @@ class HeaderDirective {
771
1637
  this.headerService.pushPortal(this._portal);
772
1638
  }
773
1639
  ngOnDestroy() {
774
- if (this._portal) {
1640
+ if (this._portal)
775
1641
  this.headerService.removePortal(this._portal);
776
- }
777
1642
  }
778
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: HeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
779
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: HeaderDirective, isStandalone: true, selector: "[rxapHeader]", ngImport: i0 }); }
780
- }
781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: HeaderDirective, decorators: [{
1643
+ static {
1644
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1645
+ minVersion: "12.0.0",
1646
+ version: "22.3.0",
1647
+ ngImport: i0,
1648
+ type: HeaderDirective,
1649
+ deps: [],
1650
+ target: i0.ɵɵFactoryTarget.Directive
1651
+ });
1652
+ }
1653
+ static {
1654
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1655
+ minVersion: "14.0.0",
1656
+ version: "22.3.0",
1657
+ type: HeaderDirective,
1658
+ isStandalone: true,
1659
+ selector: "[rxapHeader]",
1660
+ ngImport: i0
1661
+ });
1662
+ }
1663
+ };
1664
+ i0.ɵɵngDeclareClassMetadata({
1665
+ minVersion: "12.0.0",
1666
+ version: "22.3.0",
1667
+ ngImport: i0,
1668
+ type: HeaderDirective,
1669
+ decorators: [{
782
1670
  type: Directive,
783
1671
  args: [{
784
- selector: '[rxapHeader]',
785
- standalone: true,
1672
+ selector: "[rxapHeader]",
1673
+ standalone: true
786
1674
  }]
787
- }] });
788
- class FooterDirective {
1675
+ }]
1676
+ });
1677
+ var FooterDirective = class FooterDirective {
789
1678
  constructor() {
790
1679
  this.footerService = inject(FooterService);
791
1680
  this.template = inject(TemplateRef);
@@ -796,72 +1685,256 @@ class FooterDirective {
796
1685
  this.footerService.pushPortal(this._portal);
797
1686
  }
798
1687
  ngOnDestroy() {
799
- if (this._portal) {
1688
+ if (this._portal)
800
1689
  this.footerService.removePortal(this._portal);
801
- }
802
1690
  }
803
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
804
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: FooterDirective, isStandalone: true, selector: "[rxapFooter]", ngImport: i0 }); }
805
- }
806
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FooterDirective, decorators: [{
1691
+ static {
1692
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1693
+ minVersion: "12.0.0",
1694
+ version: "22.3.0",
1695
+ ngImport: i0,
1696
+ type: FooterDirective,
1697
+ deps: [],
1698
+ target: i0.ɵɵFactoryTarget.Directive
1699
+ });
1700
+ }
1701
+ static {
1702
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1703
+ minVersion: "14.0.0",
1704
+ version: "22.3.0",
1705
+ type: FooterDirective,
1706
+ isStandalone: true,
1707
+ selector: "[rxapFooter]",
1708
+ ngImport: i0
1709
+ });
1710
+ }
1711
+ };
1712
+ i0.ɵɵngDeclareClassMetadata({
1713
+ minVersion: "12.0.0",
1714
+ version: "22.3.0",
1715
+ ngImport: i0,
1716
+ type: FooterDirective,
1717
+ decorators: [{
807
1718
  type: Directive,
808
1719
  args: [{
809
- selector: '[rxapFooter]',
810
- standalone: true,
1720
+ selector: "[rxapFooter]",
1721
+ standalone: true
811
1722
  }]
812
- }] });
813
- class UserProfileIconComponent {
1723
+ }]
1724
+ });
1725
+ let UserProfileIconComponent = class UserProfileIconComponent {
814
1726
  constructor() {
815
1727
  this.extractUsernameFromProfile = inject(EXTRACT_USERNAME_FROM_PROFILE);
816
1728
  this.pubSubService = inject(PubSubService);
817
- this.profile = input.required(...(ngDevMode ? [{ debugName: "profile" }] : /* istanbul ignore next */ []));
1729
+ this.profile = input.required(...ngDevMode ? [{ debugName: "profile" }] : /* istanbul ignore next */ []);
818
1730
  this.username = computed(() => {
819
1731
  const profile = this.profile();
820
- if (profile) {
1732
+ if (profile)
821
1733
  return this.extractUsernameFromProfile(profile);
822
- }
823
1734
  return null;
824
- }, ...(ngDevMode ? [{ debugName: "username" }] : /* istanbul ignore next */ []));
1735
+ }, ...ngDevMode ? [{ debugName: "username" }] : /* istanbul ignore next */ []);
825
1736
  }
826
1737
  logout() {
827
1738
  this.pubSubService.publish(RXAP_TOPICS.authentication.logout);
828
1739
  }
829
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: UserProfileIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
830
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: UserProfileIconComponent, isStandalone: true, selector: "rxap-user-profile-icon", inputs: { profile: { classPropertyName: "profile", publicName: "profile", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<button [matMenuTriggerFor]=\"menu\"\n class=\"rounded-full cursor-pointer outline-none overflow-hidden h-8 w-8 bg-center bg-no-repeat bg-cover flex flex-row justify-center items-center\">\n <mat-icon class=\"h-8 w-8 text-[32px]\" svgIcon=\"account-circle\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\" [yPosition]=\"'below'\" class=\"!max-w-none\">\n @if (this.username(); as username) {\n <button mat-menu-item>\n <span class=\"flex flex-row gap-2\">\n <mat-icon svgIcon=\"account\"></mat-icon>\n <span>{{username}}</span>\n </span>\n </button>\n }\n <button (click)=\"logout()\" mat-menu-item>\n <span class=\"flex flex-row gap-2\">\n <mat-icon svgIcon=\"logout\"></mat-icon>\n <span i18n>Logout</span>\n </span>\n </button>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i1$2.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i1$2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i1$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
831
- }
832
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: UserProfileIconComponent, decorators: [{
1740
+ static {
1741
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1742
+ minVersion: "12.0.0",
1743
+ version: "22.3.0",
1744
+ ngImport: i0,
1745
+ type: UserProfileIconComponent,
1746
+ deps: [],
1747
+ target: i0.ɵɵFactoryTarget.Component
1748
+ });
1749
+ }
1750
+ static {
1751
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1752
+ minVersion: "17.0.0",
1753
+ version: "22.3.0",
1754
+ type: UserProfileIconComponent,
1755
+ isStandalone: true,
1756
+ selector: "rxap-user-profile-icon",
1757
+ inputs: { profile: {
1758
+ classPropertyName: "profile",
1759
+ publicName: "profile",
1760
+ isSignal: true,
1761
+ isRequired: true,
1762
+ transformFunction: null
1763
+ } },
1764
+ ngImport: i0,
1765
+ template: "<button [matMenuTriggerFor]=\"menu\"\n class=\"rounded-full cursor-pointer outline-none overflow-hidden h-8 w-8 bg-center bg-no-repeat bg-cover flex flex-row justify-center items-center\">\n <mat-icon class=\"h-8 w-8 text-[32px]\" svgIcon=\"account-circle\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\" [yPosition]=\"'below'\" class=\"!max-w-none\">\n @if (this.username(); as username) {\n <button mat-menu-item>\n <span class=\"flex flex-row gap-2\">\n <mat-icon svgIcon=\"account\"></mat-icon>\n <span>{{username}}</span>\n </span>\n </button>\n }\n <button (click)=\"logout()\" mat-menu-item>\n <span class=\"flex flex-row gap-2\">\n <mat-icon svgIcon=\"logout\"></mat-icon>\n <span i18n>Logout</span>\n </span>\n </button>\n</mat-menu>\n",
1766
+ styles: [""],
1767
+ dependencies: [
1768
+ {
1769
+ kind: "ngmodule",
1770
+ type: MatMenuModule
1771
+ },
1772
+ {
1773
+ kind: "component",
1774
+ type: i1.MatMenu,
1775
+ selector: "mat-menu",
1776
+ inputs: [
1777
+ "backdropClass",
1778
+ "aria-label",
1779
+ "aria-labelledby",
1780
+ "aria-describedby",
1781
+ "xPosition",
1782
+ "yPosition",
1783
+ "overlapTrigger",
1784
+ "hasBackdrop",
1785
+ "class",
1786
+ "classList"
1787
+ ],
1788
+ outputs: ["closed", "close"],
1789
+ exportAs: ["matMenu"]
1790
+ },
1791
+ {
1792
+ kind: "component",
1793
+ type: i1.MatMenuItem,
1794
+ selector: "[mat-menu-item]",
1795
+ inputs: [
1796
+ "role",
1797
+ "disabled",
1798
+ "disabledInteractive",
1799
+ "disableRipple"
1800
+ ],
1801
+ exportAs: ["matMenuItem"]
1802
+ },
1803
+ {
1804
+ kind: "directive",
1805
+ type: i1.MatMenuTrigger,
1806
+ selector: "[mat-menu-trigger-for], [matMenuTriggerFor]",
1807
+ inputs: [
1808
+ "mat-menu-trigger-for",
1809
+ "matMenuTriggerFor",
1810
+ "matMenuTriggerData",
1811
+ "matMenuTriggerRestoreFocus"
1812
+ ],
1813
+ outputs: [
1814
+ "menuOpened",
1815
+ "onMenuOpen",
1816
+ "menuClosed",
1817
+ "onMenuClose"
1818
+ ],
1819
+ exportAs: ["matMenuTrigger"]
1820
+ },
1821
+ {
1822
+ kind: "ngmodule",
1823
+ type: MatIconModule
1824
+ },
1825
+ {
1826
+ kind: "component",
1827
+ type: i2$1.MatIcon,
1828
+ selector: "mat-icon",
1829
+ inputs: [
1830
+ "color",
1831
+ "inline",
1832
+ "svgIcon",
1833
+ "fontSet",
1834
+ "fontIcon"
1835
+ ],
1836
+ exportAs: ["matIcon"]
1837
+ }
1838
+ ],
1839
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1840
+ });
1841
+ }
1842
+ };
1843
+ i0.ɵɵngDeclareClassMetadata({
1844
+ minVersion: "12.0.0",
1845
+ version: "22.3.0",
1846
+ ngImport: i0,
1847
+ type: UserProfileIconComponent,
1848
+ decorators: [{
833
1849
  type: Component,
834
- args: [{ selector: 'rxap-user-profile-icon', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
835
- MatMenuModule,
836
- MatIconModule,
837
- ], template: "<button [matMenuTriggerFor]=\"menu\"\n class=\"rounded-full cursor-pointer outline-none overflow-hidden h-8 w-8 bg-center bg-no-repeat bg-cover flex flex-row justify-center items-center\">\n <mat-icon class=\"h-8 w-8 text-[32px]\" svgIcon=\"account-circle\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\" [yPosition]=\"'below'\" class=\"!max-w-none\">\n @if (this.username(); as username) {\n <button mat-menu-item>\n <span class=\"flex flex-row gap-2\">\n <mat-icon svgIcon=\"account\"></mat-icon>\n <span>{{username}}</span>\n </span>\n </button>\n }\n <button (click)=\"logout()\" mat-menu-item>\n <span class=\"flex flex-row gap-2\">\n <mat-icon svgIcon=\"logout\"></mat-icon>\n <span i18n>Logout</span>\n </span>\n </button>\n</mat-menu>\n" }]
838
- }], propDecorators: { profile: [{ type: i0.Input, args: [{ isSignal: true, alias: "profile", required: true }] }] } });
1850
+ args: [{
1851
+ selector: "rxap-user-profile-icon",
1852
+ changeDetection: ChangeDetectionStrategy.OnPush,
1853
+ imports: [MatMenuModule, MatIconModule],
1854
+ template: "<button [matMenuTriggerFor]=\"menu\"\n class=\"rounded-full cursor-pointer outline-none overflow-hidden h-8 w-8 bg-center bg-no-repeat bg-cover flex flex-row justify-center items-center\">\n <mat-icon class=\"h-8 w-8 text-[32px]\" svgIcon=\"account-circle\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\" [yPosition]=\"'below'\" class=\"!max-w-none\">\n @if (this.username(); as username) {\n <button mat-menu-item>\n <span class=\"flex flex-row gap-2\">\n <mat-icon svgIcon=\"account\"></mat-icon>\n <span>{{username}}</span>\n </span>\n </button>\n }\n <button (click)=\"logout()\" mat-menu-item>\n <span class=\"flex flex-row gap-2\">\n <mat-icon svgIcon=\"logout\"></mat-icon>\n <span i18n>Logout</span>\n </span>\n </button>\n</mat-menu>\n"
1855
+ }]
1856
+ }],
1857
+ propDecorators: { profile: [{
1858
+ type: i0.Input,
1859
+ args: [{
1860
+ isSignal: true,
1861
+ alias: "profile",
1862
+ required: true
1863
+ }]
1864
+ }] }
1865
+ });
839
1866
  let SidenavToggleButtonComponent = class SidenavToggleButtonComponent {
840
1867
  constructor() {
841
1868
  this.layoutComponentService = inject(LayoutService);
842
- this.opened = computed(() => this.layoutComponentService.opened(), ...(ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []));
1869
+ this.opened = computed(() => this.layoutComponentService.opened(), ...ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []);
843
1870
  }
844
1871
  toggle() {
845
1872
  this.layoutComponentService.toggleOpened();
846
1873
  }
847
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
848
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: SidenavToggleButtonComponent, isStandalone: true, selector: "rxap-sidenav-toggle-button", ngImport: i0, template: "<button (click)=\"toggle()\" mat-icon-button>\n @if (opened()) {\n <mat-icon>menu_open</mat-icon>\n } @else {\n <mat-icon>menu</mat-icon>\n }\n</button>\n", styles: [""], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1874
+ static {
1875
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1876
+ minVersion: "12.0.0",
1877
+ version: "22.3.0",
1878
+ ngImport: i0,
1879
+ type: SidenavToggleButtonComponent,
1880
+ deps: [],
1881
+ target: i0.ɵɵFactoryTarget.Component
1882
+ });
1883
+ }
1884
+ static {
1885
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1886
+ minVersion: "17.0.0",
1887
+ version: "22.3.0",
1888
+ type: SidenavToggleButtonComponent,
1889
+ isStandalone: true,
1890
+ selector: "rxap-sidenav-toggle-button",
1891
+ ngImport: i0,
1892
+ template: "<button (click)=\"toggle()\" mat-icon-button>\n @if (opened()) {\n <mat-icon>menu_open</mat-icon>\n } @else {\n <mat-icon>menu</mat-icon>\n }\n</button>\n",
1893
+ styles: [""],
1894
+ dependencies: [{
1895
+ kind: "component",
1896
+ type: MatIcon,
1897
+ selector: "mat-icon",
1898
+ inputs: [
1899
+ "color",
1900
+ "inline",
1901
+ "svgIcon",
1902
+ "fontSet",
1903
+ "fontIcon"
1904
+ ],
1905
+ exportAs: ["matIcon"]
1906
+ }, {
1907
+ kind: "component",
1908
+ type: MatIconButton,
1909
+ selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
1910
+ exportAs: ["matButton", "matAnchor"]
1911
+ }],
1912
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1913
+ });
1914
+ }
849
1915
  };
850
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavToggleButtonComponent, decorators: [{
1916
+ i0.ɵɵngDeclareClassMetadata({
1917
+ minVersion: "12.0.0",
1918
+ version: "22.3.0",
1919
+ ngImport: i0,
1920
+ type: SidenavToggleButtonComponent,
1921
+ decorators: [{
851
1922
  type: Component,
852
- args: [{ selector: 'rxap-sidenav-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
853
- MatIcon,
854
- MatIconButton,
855
- ], template: "<button (click)=\"toggle()\" mat-icon-button>\n @if (opened()) {\n <mat-icon>menu_open</mat-icon>\n } @else {\n <mat-icon>menu</mat-icon>\n }\n</button>\n" }]
856
- }] });
857
- class SettingsButtonComponent {
1923
+ args: [{
1924
+ selector: "rxap-sidenav-toggle-button",
1925
+ changeDetection: ChangeDetectionStrategy.OnPush,
1926
+ imports: [MatIcon, MatIconButton],
1927
+ template: "<button (click)=\"toggle()\" mat-icon-button>\n @if (opened()) {\n <mat-icon>menu_open</mat-icon>\n } @else {\n <mat-icon>menu</mat-icon>\n }\n</button>\n"
1928
+ }]
1929
+ }]
1930
+ });
1931
+ let SettingsButtonComponent = class SettingsButtonComponent {
858
1932
  constructor() {
859
1933
  this.isDevMode = isDevMode();
860
1934
  this.theme = inject(ThemeService);
861
1935
  this.injector = inject(Injector);
862
- this.customItemComponents = toSignal(from(Promise.all(coerceArray(inject(RXAP_SETTINGS_MENU_ITEM_COMPONENT, { optional: true }))
863
- .map(item => IsFunction(item) ? item() : item))).pipe(map(items => items.map(item => new ComponentPortal(item, null, this.injector)))), { initialValue: [] });
864
- this.customItems = signal(coerceArray(inject(RXAP_SETTINGS_MENU_ITEM, { optional: true })), ...(ngDevMode ? [{ debugName: "customItems" }] : /* istanbul ignore next */ []));
1936
+ this.customItemComponents = toSignal(from(Promise.all(coerceArray(inject(RXAP_SETTINGS_MENU_ITEM_COMPONENT, { optional: true })).map((item) => IsFunction(item) ? item() : item))).pipe(map((items) => items.map((item) => new ComponentPortal(item, null, this.injector)))), { initialValue: [] });
1937
+ this.customItems = signal(coerceArray(inject(RXAP_SETTINGS_MENU_ITEM, { optional: true })), ...ngDevMode ? [{ debugName: "customItems" }] : /* istanbul ignore next */ []);
865
1938
  this.savePreviewDensityValue = false;
866
1939
  this.currentDensityValue = null;
867
1940
  this.savePreviewTypographyValue = false;
@@ -901,12 +1974,125 @@ class SettingsButtonComponent {
901
1974
  clickItem(item) {
902
1975
  runInInjectionContext(this.injector, () => item.action());
903
1976
  }
904
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SettingsButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
905
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: SettingsButtonComponent, isStandalone: true, selector: "rxap-settings-button", ngImport: i0, template: "<button [matMenuTriggerFor]=\"menu\" mat-icon-button>\n <mat-icon svgIcon=\"cog\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\">\n <button (click)=\"theme.toggleDarkTheme()\" mat-menu-item>\n @if (theme.darkMode()) {\n <mat-icon svgIcon=\"brightness-2\"></mat-icon>\n } @else {\n <mat-icon svgIcon=\"brightness-5\"></mat-icon>\n }\n <span i18n>Mode</span>\n </button>\n <button [matMenuTriggerFor]=\"themeMenu\" mat-menu-item>\n <mat-icon svgIcon=\"compare\"></mat-icon>\n <span i18n>Theme</span>\n </button>\n @for (item of customItems(); track item.label) {\n <button (click)=\"clickItem(item)\" mat-menu-item>\n @if (item.icon; as icon) {\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n }\n <span>{{ item.label }}</span>\n </button>\n }\n @for (item of customItemComponents(); track item) {\n <ng-template [cdkPortalOutlet]=\"item\"></ng-template>\n }\n</mat-menu>\n\n<mat-menu #themeMenu=\"matMenu\" xPosition=\"before\">\n <button [matMenuTriggerFor]=\"themeDensityMenu\" mat-menu-item>\n <mat-icon svgIcon=\"move-resize\"></mat-icon>\n <span i18n>Density</span>\n </button>\n @if (availableTypographies?.length) {\n <button [matMenuTriggerFor]=\"themeFontMenu\" mat-menu-item>\n <mat-icon svgIcon=\"format-font\"></mat-icon>\n <span i18n>Font</span>\n </button>\n }\n @if (availableThemes?.length) {\n <button [matMenuTriggerFor]=\"themePresetMenu\" mat-menu-item>\n <mat-icon svgIcon=\"shape-outline\"></mat-icon>\n <span i18n>Preset</span>\n </button>\n }\n</mat-menu>\n\n<mat-menu #themeDensityMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"setDensity(0)\" (mouseenter)=\"previewDensity(0)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-l\"></mat-icon>\n <span i18n>Normal</span>\n </button>\n <button (click)=\"setDensity(-1)\" (mouseenter)=\"previewDensity(-1)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-m\"></mat-icon>\n <span i18n>Dense</span>\n </button>\n <button (click)=\"setDensity(-2)\" (mouseenter)=\"previewDensity(-2)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-s\"></mat-icon>\n <span i18n>Very Dense</span>\n </button>\n <button (click)=\"setDensity(-3)\" (mouseenter)=\"previewDensity(-3)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-xs\"></mat-icon>\n <span i18n>Extreme Dense</span>\n </button>\n</mat-menu>\n<mat-menu #themeFontMenu=\"matMenu\" xPosition=\"before\">\n @for (typographyName of availableTypographies ?? []; track typographyName) {\n <button (click)=\"setTypography(typographyName)\"\n (mouseenter)=\"previewTypography(typographyName)\"\n (mouseleave)=\"restoreTypography()\"\n mat-menu-item>\n {{ typographyName }}\n </button>\n }\n</mat-menu>\n\n<mat-menu #themePresetMenu=\"matMenu\" xPosition=\"before\">\n @for (themeName of availableThemes ?? []; track themeName) {\n <button (click)=\"setTheme(themeName)\"\n (mouseenter)=\"previewTheme(themeName)\"\n (mouseleave)=\"restoreTheme()\"\n mat-menu-item>\n {{ themeName }}\n </button>\n }\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }] }); }
906
- }
907
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SettingsButtonComponent, decorators: [{
1977
+ static {
1978
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1979
+ minVersion: "12.0.0",
1980
+ version: "22.3.0",
1981
+ ngImport: i0,
1982
+ type: SettingsButtonComponent,
1983
+ deps: [],
1984
+ target: i0.ɵɵFactoryTarget.Component
1985
+ });
1986
+ }
1987
+ static {
1988
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1989
+ minVersion: "17.0.0",
1990
+ version: "22.3.0",
1991
+ type: SettingsButtonComponent,
1992
+ isStandalone: true,
1993
+ selector: "rxap-settings-button",
1994
+ ngImport: i0,
1995
+ template: "<button [matMenuTriggerFor]=\"menu\" mat-icon-button>\n <mat-icon svgIcon=\"cog\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\">\n <button (click)=\"theme.toggleDarkTheme()\" mat-menu-item>\n @if (theme.darkMode()) {\n <mat-icon svgIcon=\"brightness-2\"></mat-icon>\n } @else {\n <mat-icon svgIcon=\"brightness-5\"></mat-icon>\n }\n <span i18n>Mode</span>\n </button>\n <button [matMenuTriggerFor]=\"themeMenu\" mat-menu-item>\n <mat-icon svgIcon=\"compare\"></mat-icon>\n <span i18n>Theme</span>\n </button>\n @for (item of customItems(); track item.label) {\n <button (click)=\"clickItem(item)\" mat-menu-item>\n @if (item.icon; as icon) {\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n }\n <span>{{ item.label }}</span>\n </button>\n }\n @for (item of customItemComponents(); track item) {\n <ng-template [cdkPortalOutlet]=\"item\"></ng-template>\n }\n</mat-menu>\n\n<mat-menu #themeMenu=\"matMenu\" xPosition=\"before\">\n <button [matMenuTriggerFor]=\"themeDensityMenu\" mat-menu-item>\n <mat-icon svgIcon=\"move-resize\"></mat-icon>\n <span i18n>Density</span>\n </button>\n @if (availableTypographies?.length) {\n <button [matMenuTriggerFor]=\"themeFontMenu\" mat-menu-item>\n <mat-icon svgIcon=\"format-font\"></mat-icon>\n <span i18n>Font</span>\n </button>\n }\n @if (availableThemes?.length) {\n <button [matMenuTriggerFor]=\"themePresetMenu\" mat-menu-item>\n <mat-icon svgIcon=\"shape-outline\"></mat-icon>\n <span i18n>Preset</span>\n </button>\n }\n</mat-menu>\n\n<mat-menu #themeDensityMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"setDensity(0)\" (mouseenter)=\"previewDensity(0)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-l\"></mat-icon>\n <span i18n>Normal</span>\n </button>\n <button (click)=\"setDensity(-1)\" (mouseenter)=\"previewDensity(-1)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-m\"></mat-icon>\n <span i18n>Dense</span>\n </button>\n <button (click)=\"setDensity(-2)\" (mouseenter)=\"previewDensity(-2)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-s\"></mat-icon>\n <span i18n>Very Dense</span>\n </button>\n <button (click)=\"setDensity(-3)\" (mouseenter)=\"previewDensity(-3)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-xs\"></mat-icon>\n <span i18n>Extreme Dense</span>\n </button>\n</mat-menu>\n<mat-menu #themeFontMenu=\"matMenu\" xPosition=\"before\">\n @for (typographyName of availableTypographies ?? []; track typographyName) {\n <button (click)=\"setTypography(typographyName)\"\n (mouseenter)=\"previewTypography(typographyName)\"\n (mouseleave)=\"restoreTypography()\"\n mat-menu-item>\n {{ typographyName }}\n </button>\n }\n</mat-menu>\n\n<mat-menu #themePresetMenu=\"matMenu\" xPosition=\"before\">\n @for (themeName of availableThemes ?? []; track themeName) {\n <button (click)=\"setTheme(themeName)\"\n (mouseenter)=\"previewTheme(themeName)\"\n (mouseleave)=\"restoreTheme()\"\n mat-menu-item>\n {{ themeName }}\n </button>\n }\n</mat-menu>\n",
1996
+ styles: [""],
1997
+ dependencies: [
1998
+ {
1999
+ kind: "component",
2000
+ type: MatIconButton,
2001
+ selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
2002
+ exportAs: ["matButton", "matAnchor"]
2003
+ },
2004
+ {
2005
+ kind: "component",
2006
+ type: MatIcon,
2007
+ selector: "mat-icon",
2008
+ inputs: [
2009
+ "color",
2010
+ "inline",
2011
+ "svgIcon",
2012
+ "fontSet",
2013
+ "fontIcon"
2014
+ ],
2015
+ exportAs: ["matIcon"]
2016
+ },
2017
+ {
2018
+ kind: "component",
2019
+ type: MatMenu,
2020
+ selector: "mat-menu",
2021
+ inputs: [
2022
+ "backdropClass",
2023
+ "aria-label",
2024
+ "aria-labelledby",
2025
+ "aria-describedby",
2026
+ "xPosition",
2027
+ "yPosition",
2028
+ "overlapTrigger",
2029
+ "hasBackdrop",
2030
+ "class",
2031
+ "classList"
2032
+ ],
2033
+ outputs: ["closed", "close"],
2034
+ exportAs: ["matMenu"]
2035
+ },
2036
+ {
2037
+ kind: "directive",
2038
+ type: MatMenuTrigger,
2039
+ selector: "[mat-menu-trigger-for], [matMenuTriggerFor]",
2040
+ inputs: [
2041
+ "mat-menu-trigger-for",
2042
+ "matMenuTriggerFor",
2043
+ "matMenuTriggerData",
2044
+ "matMenuTriggerRestoreFocus"
2045
+ ],
2046
+ outputs: [
2047
+ "menuOpened",
2048
+ "onMenuOpen",
2049
+ "menuClosed",
2050
+ "onMenuClose"
2051
+ ],
2052
+ exportAs: ["matMenuTrigger"]
2053
+ },
2054
+ {
2055
+ kind: "component",
2056
+ type: MatMenuItem,
2057
+ selector: "[mat-menu-item]",
2058
+ inputs: [
2059
+ "role",
2060
+ "disabled",
2061
+ "disabledInteractive",
2062
+ "disableRipple"
2063
+ ],
2064
+ exportAs: ["matMenuItem"]
2065
+ },
2066
+ {
2067
+ kind: "directive",
2068
+ type: CdkPortalOutlet,
2069
+ selector: "[cdkPortalOutlet]",
2070
+ inputs: ["cdkPortalOutlet"],
2071
+ outputs: ["attached"],
2072
+ exportAs: ["cdkPortalOutlet"]
2073
+ },
2074
+ {
2075
+ kind: "directive",
2076
+ type: IconDirective,
2077
+ selector: "mat-icon[rxapIcon]",
2078
+ inputs: ["rxapIcon"]
2079
+ }
2080
+ ],
2081
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2082
+ });
2083
+ }
2084
+ };
2085
+ i0.ɵɵngDeclareClassMetadata({
2086
+ minVersion: "12.0.0",
2087
+ version: "22.3.0",
2088
+ ngImport: i0,
2089
+ type: SettingsButtonComponent,
2090
+ decorators: [{
908
2091
  type: Component,
909
- args: [{ selector: 'rxap-settings-button', imports: [
2092
+ args: [{
2093
+ selector: "rxap-settings-button",
2094
+ changeDetection: ChangeDetectionStrategy.OnPush,
2095
+ imports: [
910
2096
  MatIconButton,
911
2097
  MatIcon,
912
2098
  MatMenu,
@@ -914,310 +2100,462 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
914
2100
  MatMenuItem,
915
2101
  CdkPortalOutlet,
916
2102
  IconDirective
917
- ], template: "<button [matMenuTriggerFor]=\"menu\" mat-icon-button>\n <mat-icon svgIcon=\"cog\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\">\n <button (click)=\"theme.toggleDarkTheme()\" mat-menu-item>\n @if (theme.darkMode()) {\n <mat-icon svgIcon=\"brightness-2\"></mat-icon>\n } @else {\n <mat-icon svgIcon=\"brightness-5\"></mat-icon>\n }\n <span i18n>Mode</span>\n </button>\n <button [matMenuTriggerFor]=\"themeMenu\" mat-menu-item>\n <mat-icon svgIcon=\"compare\"></mat-icon>\n <span i18n>Theme</span>\n </button>\n @for (item of customItems(); track item.label) {\n <button (click)=\"clickItem(item)\" mat-menu-item>\n @if (item.icon; as icon) {\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n }\n <span>{{ item.label }}</span>\n </button>\n }\n @for (item of customItemComponents(); track item) {\n <ng-template [cdkPortalOutlet]=\"item\"></ng-template>\n }\n</mat-menu>\n\n<mat-menu #themeMenu=\"matMenu\" xPosition=\"before\">\n <button [matMenuTriggerFor]=\"themeDensityMenu\" mat-menu-item>\n <mat-icon svgIcon=\"move-resize\"></mat-icon>\n <span i18n>Density</span>\n </button>\n @if (availableTypographies?.length) {\n <button [matMenuTriggerFor]=\"themeFontMenu\" mat-menu-item>\n <mat-icon svgIcon=\"format-font\"></mat-icon>\n <span i18n>Font</span>\n </button>\n }\n @if (availableThemes?.length) {\n <button [matMenuTriggerFor]=\"themePresetMenu\" mat-menu-item>\n <mat-icon svgIcon=\"shape-outline\"></mat-icon>\n <span i18n>Preset</span>\n </button>\n }\n</mat-menu>\n\n<mat-menu #themeDensityMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"setDensity(0)\" (mouseenter)=\"previewDensity(0)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-l\"></mat-icon>\n <span i18n>Normal</span>\n </button>\n <button (click)=\"setDensity(-1)\" (mouseenter)=\"previewDensity(-1)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-m\"></mat-icon>\n <span i18n>Dense</span>\n </button>\n <button (click)=\"setDensity(-2)\" (mouseenter)=\"previewDensity(-2)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-s\"></mat-icon>\n <span i18n>Very Dense</span>\n </button>\n <button (click)=\"setDensity(-3)\" (mouseenter)=\"previewDensity(-3)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-xs\"></mat-icon>\n <span i18n>Extreme Dense</span>\n </button>\n</mat-menu>\n<mat-menu #themeFontMenu=\"matMenu\" xPosition=\"before\">\n @for (typographyName of availableTypographies ?? []; track typographyName) {\n <button (click)=\"setTypography(typographyName)\"\n (mouseenter)=\"previewTypography(typographyName)\"\n (mouseleave)=\"restoreTypography()\"\n mat-menu-item>\n {{ typographyName }}\n </button>\n }\n</mat-menu>\n\n<mat-menu #themePresetMenu=\"matMenu\" xPosition=\"before\">\n @for (themeName of availableThemes ?? []; track themeName) {\n <button (click)=\"setTheme(themeName)\"\n (mouseenter)=\"previewTheme(themeName)\"\n (mouseleave)=\"restoreTheme()\"\n mat-menu-item>\n {{ themeName }}\n </button>\n }\n</mat-menu>\n" }]
918
- }] });
919
- class ExternalAppsService {
2103
+ ],
2104
+ template: "<button [matMenuTriggerFor]=\"menu\" mat-icon-button>\n <mat-icon svgIcon=\"cog\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\">\n <button (click)=\"theme.toggleDarkTheme()\" mat-menu-item>\n @if (theme.darkMode()) {\n <mat-icon svgIcon=\"brightness-2\"></mat-icon>\n } @else {\n <mat-icon svgIcon=\"brightness-5\"></mat-icon>\n }\n <span i18n>Mode</span>\n </button>\n <button [matMenuTriggerFor]=\"themeMenu\" mat-menu-item>\n <mat-icon svgIcon=\"compare\"></mat-icon>\n <span i18n>Theme</span>\n </button>\n @for (item of customItems(); track item.label) {\n <button (click)=\"clickItem(item)\" mat-menu-item>\n @if (item.icon; as icon) {\n <mat-icon [rxapIcon]=\"icon\"></mat-icon>\n }\n <span>{{ item.label }}</span>\n </button>\n }\n @for (item of customItemComponents(); track item) {\n <ng-template [cdkPortalOutlet]=\"item\"></ng-template>\n }\n</mat-menu>\n\n<mat-menu #themeMenu=\"matMenu\" xPosition=\"before\">\n <button [matMenuTriggerFor]=\"themeDensityMenu\" mat-menu-item>\n <mat-icon svgIcon=\"move-resize\"></mat-icon>\n <span i18n>Density</span>\n </button>\n @if (availableTypographies?.length) {\n <button [matMenuTriggerFor]=\"themeFontMenu\" mat-menu-item>\n <mat-icon svgIcon=\"format-font\"></mat-icon>\n <span i18n>Font</span>\n </button>\n }\n @if (availableThemes?.length) {\n <button [matMenuTriggerFor]=\"themePresetMenu\" mat-menu-item>\n <mat-icon svgIcon=\"shape-outline\"></mat-icon>\n <span i18n>Preset</span>\n </button>\n }\n</mat-menu>\n\n<mat-menu #themeDensityMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"setDensity(0)\" (mouseenter)=\"previewDensity(0)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-l\"></mat-icon>\n <span i18n>Normal</span>\n </button>\n <button (click)=\"setDensity(-1)\" (mouseenter)=\"previewDensity(-1)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-m\"></mat-icon>\n <span i18n>Dense</span>\n </button>\n <button (click)=\"setDensity(-2)\" (mouseenter)=\"previewDensity(-2)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-s\"></mat-icon>\n <span i18n>Very Dense</span>\n </button>\n <button (click)=\"setDensity(-3)\" (mouseenter)=\"previewDensity(-3)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-xs\"></mat-icon>\n <span i18n>Extreme Dense</span>\n </button>\n</mat-menu>\n<mat-menu #themeFontMenu=\"matMenu\" xPosition=\"before\">\n @for (typographyName of availableTypographies ?? []; track typographyName) {\n <button (click)=\"setTypography(typographyName)\"\n (mouseenter)=\"previewTypography(typographyName)\"\n (mouseleave)=\"restoreTypography()\"\n mat-menu-item>\n {{ typographyName }}\n </button>\n }\n</mat-menu>\n\n<mat-menu #themePresetMenu=\"matMenu\" xPosition=\"before\">\n @for (themeName of availableThemes ?? []; track themeName) {\n <button (click)=\"setTheme(themeName)\"\n (mouseenter)=\"previewTheme(themeName)\"\n (mouseleave)=\"restoreTheme()\"\n mat-menu-item>\n {{ themeName }}\n </button>\n }\n</mat-menu>\n"
2105
+ }]
2106
+ }]
2107
+ });
2108
+ var ExternalAppsService = class ExternalAppsService {
920
2109
  constructor() {
921
2110
  this.appFilterList = coerceArray(inject(RXAP_EXTERNAL_APP_FILTER, { optional: true }));
922
2111
  this.config = inject(ConfigService);
923
2112
  this.localeId = inject(LOCALE_ID);
924
2113
  this.environment = inject(RXAP_ENVIRONMENT);
925
- this.apps = this.config.get('navigation.apps', []);
2114
+ this.apps = this.config.get("navigation.apps", []);
926
2115
  this.externalApps = coerceArray(inject(RXAP_EXTERNAL_APP, { optional: true }));
927
- /**
928
- * The list of active apps that is processed by the getAppList method
929
- */
930
- this.activeAppList = signal([], ...(ngDevMode ? [{ debugName: "activeAppList" }] : /* istanbul ignore next */ []));
2116
+ this.activeAppList = signal([], ...ngDevMode ? [{ debugName: "activeAppList" }] : /* istanbul ignore next */ []);
931
2117
  }
932
2118
  hasApp(appId) {
933
- return this.apps.some(app => app.id === appId);
2119
+ return this.apps.some((app) => app.id === appId);
934
2120
  }
935
2121
  getApp(appId) {
936
- if (!this.hasApp(appId)) {
2122
+ if (!this.hasApp(appId))
937
2123
  return null;
938
- }
939
- const app = this.apps.find(app => app.id === appId);
940
- if (!app) {
2124
+ const app = this.apps.find((app) => app.id === appId);
2125
+ if (!app)
941
2126
  throw new Error(`FATAL: App with id "${appId}" not found!`);
942
- }
943
2127
  return clone(app);
944
2128
  }
945
2129
  getAppUrl(appId, path, infix = this.getPathPrefix()) {
946
2130
  const app = this.getApp(appId);
947
- if (!app || !app.href) {
2131
+ if (!app || !app.href)
948
2132
  return null;
949
- }
950
2133
  return JoinPath(app.href, infix, path);
951
2134
  }
952
2135
  getAppRouterLink(appId, path) {
953
2136
  const app = this.getApp(appId);
954
- if (!app || !app.routerLink) {
2137
+ if (!app || !app.routerLink)
955
2138
  return null;
956
- }
957
2139
  return [...app.routerLink, path];
958
2140
  }
959
2141
  getAppUrlOrThrow(appId, path) {
960
2142
  const url = this.getAppUrl(appId, path);
961
- if (url) {
2143
+ if (url)
962
2144
  return url;
963
- }
964
2145
  throw new Error(`Could not find url for app with id "${appId}"`);
965
2146
  }
966
2147
  getAppRouterLinkOrThrow(appId, path) {
967
2148
  const routerLink = this.getAppRouterLink(appId, path);
968
- if (routerLink) {
2149
+ if (routerLink)
969
2150
  return routerLink;
970
- }
971
2151
  throw new Error(`Could not find router link for app with id "${appId}"`);
972
2152
  }
973
2153
  navigate(appId, path) {
974
2154
  const url = this.getAppUrl(appId, path);
975
- if (url) {
2155
+ if (url)
976
2156
  ClickOnLink(url);
977
- }
978
2157
  }
979
2158
  async getAppList() {
980
- let appList = [
981
- ...this.externalApps,
982
- ...this.apps,
983
- ].filter(app => !app.hidden)
984
- .map(app => clone(app));
985
- appList.forEach(app => {
986
- if (app.href) {
2159
+ let appList = [...this.externalApps, ...this.apps].filter((app) => !app.hidden).map((app) => clone(app));
2160
+ appList.forEach((app) => {
2161
+ if (app.href)
987
2162
  app.href = JoinPath(app.href, this.getPathPrefix());
988
- }
989
2163
  });
990
- for (const appFilter of this.appFilterList) {
2164
+ for (const appFilter of this.appFilterList)
991
2165
  appList = await appFilter.call(clone(appList));
992
- }
993
2166
  appList = clone(appList);
994
2167
  this.activeAppList.set(appList);
995
2168
  return appList;
996
2169
  }
997
2170
  getPathPrefix() {
998
- if (this.environment.production && this.localeId) {
999
- return this.localeId.replace(/-.+$/, '');
1000
- }
1001
- return '';
2171
+ if (this.environment.production && this.localeId)
2172
+ return this.localeId.replace(/-.+$/, "");
2173
+ return "";
1002
2174
  }
1003
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ExternalAppsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1004
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ExternalAppsService }); }
1005
- }
1006
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ExternalAppsService, decorators: [{
1007
- type: Injectable
1008
- }] });
1009
- class AppsButtonComponent {
2175
+ static {
2176
+ this.ɵfac = i0.ɵɵngDeclareFactory({
2177
+ minVersion: "12.0.0",
2178
+ version: "22.3.0",
2179
+ ngImport: i0,
2180
+ type: ExternalAppsService,
2181
+ deps: [],
2182
+ target: i0.ɵɵFactoryTarget.Injectable
2183
+ });
2184
+ }
2185
+ static {
2186
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
2187
+ minVersion: "12.0.0",
2188
+ version: "22.3.0",
2189
+ ngImport: i0,
2190
+ type: ExternalAppsService
2191
+ });
2192
+ }
2193
+ };
2194
+ i0.ɵɵngDeclareClassMetadata({
2195
+ minVersion: "12.0.0",
2196
+ version: "22.3.0",
2197
+ ngImport: i0,
2198
+ type: ExternalAppsService,
2199
+ decorators: [{ type: Injectable }]
2200
+ });
2201
+ let AppsButtonComponent = class AppsButtonComponent {
1010
2202
  toggle() {
1011
- this.isOpen.update(isOpen => !isOpen);
2203
+ this.isOpen.update((isOpen) => !isOpen);
1012
2204
  }
1013
2205
  constructor() {
1014
- /**
1015
- * The signal that indicates if the app list is open
1016
- */
1017
- this.isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
2206
+ this.isOpen = signal(false, ...ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []);
1018
2207
  this.externalAppsService = inject(ExternalAppsService);
1019
- this.appList = computed(() => this.externalAppsService.activeAppList(), ...(ngDevMode ? [{ debugName: "appList" }] : /* istanbul ignore next */ []));
1020
- this.hasApps = computed(() => this.appList().length > 0, ...(ngDevMode ? [{ debugName: "hasApps" }] : /* istanbul ignore next */ []));
2208
+ this.appList = computed(() => this.externalAppsService.activeAppList(), ...ngDevMode ? [{ debugName: "appList" }] : /* istanbul ignore next */ []);
2209
+ this.hasApps = computed(() => this.appList().length > 0, ...ngDevMode ? [{ debugName: "hasApps" }] : /* istanbul ignore next */ []);
1021
2210
  this.externalAppsService.getAppList();
1022
2211
  }
1023
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AppsButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1024
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AppsButtonComponent, isStandalone: true, selector: "rxap-apps-button", ngImport: i0, template: "@if (hasApps()) {\n <div class=\"flex flex-row items-center gap-8\">\n\n @if (isOpen()) {\n <div class=\"flex flex-row items-center gap-6 h-10\">\n\n @for (app of appList(); track app.label) {\n @if (app.href) {\n <a [href]=\"app.href\" [target]=\"app.target ?? '_self'\" mat-stroked-button>\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </a>\n } @else if (app.routerLink) {\n <a mat-stroked-button [routerLink]=\"app.routerLink\">\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </a>\n } @else {\n <button mat-stroked-button [disabled]=\"true\">\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </button>\n }\n }\n\n </div>\n }\n\n <button (click)=\"toggle()\" mat-icon-button>\n <mat-icon svgIcon=\"apps\"></mat-icon>\n </button>\n\n </div>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1025
- }
1026
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AppsButtonComponent, decorators: [{
2212
+ static {
2213
+ this.ɵfac = i0.ɵɵngDeclareFactory({
2214
+ minVersion: "12.0.0",
2215
+ version: "22.3.0",
2216
+ ngImport: i0,
2217
+ type: AppsButtonComponent,
2218
+ deps: [],
2219
+ target: i0.ɵɵFactoryTarget.Component
2220
+ });
2221
+ }
2222
+ static {
2223
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
2224
+ minVersion: "17.0.0",
2225
+ version: "22.3.0",
2226
+ type: AppsButtonComponent,
2227
+ isStandalone: true,
2228
+ selector: "rxap-apps-button",
2229
+ ngImport: i0,
2230
+ template: "@if (hasApps()) {\n <div class=\"flex flex-row items-center gap-8\">\n\n @if (isOpen()) {\n <div class=\"flex flex-row items-center gap-6 h-10\">\n\n @for (app of appList(); track app.label) {\n @if (app.href) {\n <a [href]=\"app.href\" [target]=\"app.target ?? '_self'\" mat-stroked-button>\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </a>\n } @else if (app.routerLink) {\n <a mat-stroked-button [routerLink]=\"app.routerLink\">\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </a>\n } @else {\n <button mat-stroked-button [disabled]=\"true\">\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </button>\n }\n }\n\n </div>\n }\n\n <button (click)=\"toggle()\" mat-icon-button>\n <mat-icon svgIcon=\"apps\"></mat-icon>\n </button>\n\n </div>\n}\n",
2231
+ styles: [""],
2232
+ dependencies: [
2233
+ {
2234
+ kind: "directive",
2235
+ type: NgOptimizedImage,
2236
+ selector: "img[ngSrc]",
2237
+ inputs: [
2238
+ "ngSrc",
2239
+ "ngSrcset",
2240
+ "sizes",
2241
+ "width",
2242
+ "height",
2243
+ "decoding",
2244
+ "loading",
2245
+ "priority",
2246
+ "loaderParams",
2247
+ "disableOptimizedSrcset",
2248
+ "fill",
2249
+ "placeholder",
2250
+ "placeholderConfig",
2251
+ "src",
2252
+ "srcset"
2253
+ ]
2254
+ },
2255
+ {
2256
+ kind: "component",
2257
+ type: MatButton,
2258
+ selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ",
2259
+ inputs: ["matButton"],
2260
+ exportAs: ["matButton", "matAnchor"]
2261
+ },
2262
+ {
2263
+ kind: "directive",
2264
+ type: RouterLink,
2265
+ selector: "[routerLink]",
2266
+ inputs: [
2267
+ "target",
2268
+ "queryParams",
2269
+ "fragment",
2270
+ "queryParamsHandling",
2271
+ "state",
2272
+ "info",
2273
+ "relativeTo",
2274
+ "preserveFragment",
2275
+ "skipLocationChange",
2276
+ "replaceUrl",
2277
+ "browserUrl",
2278
+ "scroll",
2279
+ "routerLink"
2280
+ ]
2281
+ },
2282
+ {
2283
+ kind: "component",
2284
+ type: MatIconButton,
2285
+ selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
2286
+ exportAs: ["matButton", "matAnchor"]
2287
+ },
2288
+ {
2289
+ kind: "component",
2290
+ type: MatIcon,
2291
+ selector: "mat-icon",
2292
+ inputs: [
2293
+ "color",
2294
+ "inline",
2295
+ "svgIcon",
2296
+ "fontSet",
2297
+ "fontIcon"
2298
+ ],
2299
+ exportAs: ["matIcon"]
2300
+ },
2301
+ {
2302
+ kind: "directive",
2303
+ type: IconDirective,
2304
+ selector: "mat-icon[rxapIcon]",
2305
+ inputs: ["rxapIcon"]
2306
+ }
2307
+ ],
2308
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2309
+ });
2310
+ }
2311
+ };
2312
+ AppsButtonComponent = __decorate([
2313
+ __metadata("design:paramtypes", [])], AppsButtonComponent);
2314
+ i0.ɵɵngDeclareClassMetadata({
2315
+ minVersion: "12.0.0",
2316
+ version: "22.3.0",
2317
+ ngImport: i0,
2318
+ type: AppsButtonComponent,
2319
+ decorators: [{
1027
2320
  type: Component,
1028
- args: [{ selector: 'rxap-apps-button', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
2321
+ args: [{
2322
+ selector: "rxap-apps-button",
2323
+ changeDetection: ChangeDetectionStrategy.OnPush,
2324
+ imports: [
1029
2325
  NgOptimizedImage,
1030
2326
  MatButton,
1031
2327
  RouterLink,
1032
2328
  MatAnchor,
1033
2329
  MatIconButton,
1034
2330
  MatIcon,
1035
- IconDirective,
1036
- ], template: "@if (hasApps()) {\n <div class=\"flex flex-row items-center gap-8\">\n\n @if (isOpen()) {\n <div class=\"flex flex-row items-center gap-6 h-10\">\n\n @for (app of appList(); track app.label) {\n @if (app.href) {\n <a [href]=\"app.href\" [target]=\"app.target ?? '_self'\" mat-stroked-button>\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </a>\n } @else if (app.routerLink) {\n <a mat-stroked-button [routerLink]=\"app.routerLink\">\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </a>\n } @else {\n <button mat-stroked-button [disabled]=\"true\">\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </button>\n }\n }\n\n </div>\n }\n\n <button (click)=\"toggle()\" mat-icon-button>\n <mat-icon svgIcon=\"apps\"></mat-icon>\n </button>\n\n </div>\n}\n" }]
1037
- }], ctorParameters: () => [] });
1038
- class DefaultHeaderService {
2331
+ IconDirective
2332
+ ],
2333
+ template: "@if (hasApps()) {\n <div class=\"flex flex-row items-center gap-8\">\n\n @if (isOpen()) {\n <div class=\"flex flex-row items-center gap-6 h-10\">\n\n @for (app of appList(); track app.label) {\n @if (app.href) {\n <a [href]=\"app.href\" [target]=\"app.target ?? '_self'\" mat-stroked-button>\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </a>\n } @else if (app.routerLink) {\n <a mat-stroked-button [routerLink]=\"app.routerLink\">\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </a>\n } @else {\n <button mat-stroked-button [disabled]=\"true\">\n <span class=\"flex flex-row items-center gap-4\">\n @if (app.icon) {\n <mat-icon [rxapIcon]=\"app.icon\"></mat-icon>\n }\n @if (app.image) {\n <img [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n }\n <span class=\"label grow-0\">{{ app.label }}</span>\n </span>\n </button>\n }\n }\n\n </div>\n }\n\n <button (click)=\"toggle()\" mat-icon-button>\n <mat-icon svgIcon=\"apps\"></mat-icon>\n </button>\n\n </div>\n}\n"
2334
+ }]
2335
+ }],
2336
+ ctorParameters: () => []
2337
+ });
2338
+ var DefaultHeaderService = class DefaultHeaderService {
1039
2339
  constructor() {
1040
- this.components = toSignal(from(Promise.all(coerceArray(inject(RXAP_DEFAULT_HEADER_ITEM_COMPONENT, { optional: true }))
1041
- .map(item => IsFunction(item) ? item() : item))), { initialValue: [] });
1042
- this.injectedPortals = computed(() => this.components().map(component => new ComponentPortal(component)), ...(ngDevMode ? [{ debugName: "injectedPortals" }] : /* istanbul ignore next */ []));
1043
- this.methodPortals = signal([], ...(ngDevMode ? [{ debugName: "methodPortals" }] : /* istanbul ignore next */ []));
1044
- /**
1045
- * Represents an array of `Portal` objects with unknown type.
1046
- *
1047
- * @typedef {Array<Portal<unknown>>} SignalPortals
1048
- */
1049
- this.portals = computed(() => [...this.injectedPortals(), ...this.methodPortals()], ...(ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []));
1050
- /**
1051
- * Computes the count of portals.
1052
- *
1053
- * @returns {number} The count of portals.
1054
- */
1055
- this.portalCount = computed(() => this.portals().length, ...(ngDevMode ? [{ debugName: "portalCount" }] : /* istanbul ignore next */ []));
1056
- }
1057
- /**
1058
- * Adds a portal to the list of portals.
1059
- *
1060
- * @param {Portal<unknown>} portal - The portal to be added.
1061
- *
1062
- * @return {void}
1063
- */
2340
+ this.components = toSignal(from(Promise.all(coerceArray(inject(RXAP_DEFAULT_HEADER_ITEM_COMPONENT, { optional: true })).map((item) => IsFunction(item) ? item() : item))), { initialValue: [] });
2341
+ this.injectedPortals = computed(() => this.components().map((component) => new ComponentPortal(component)), ...ngDevMode ? [{ debugName: "injectedPortals" }] : /* istanbul ignore next */ []);
2342
+ this.methodPortals = signal([], ...ngDevMode ? [{ debugName: "methodPortals" }] : /* istanbul ignore next */ []);
2343
+ this.portals = computed(() => [...this.injectedPortals(), ...this.methodPortals()], ...ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []);
2344
+ this.portalCount = computed(() => this.portals().length, ...ngDevMode ? [{ debugName: "portalCount" }] : /* istanbul ignore next */ []);
2345
+ }
1064
2346
  pushPortal(portal) {
1065
- if (!this.methodPortals().includes(portal)) {
1066
- this.methodPortals.update(portals => [...portals, portal]);
1067
- }
1068
- else {
1069
- if (isDevMode()) {
1070
- console.warn('Can not add the same portal multiple times');
1071
- }
1072
- }
2347
+ if (!this.methodPortals().includes(portal))
2348
+ this.methodPortals.update((portals) => [...portals, portal]);
2349
+ else if (isDevMode())
2350
+ console.warn("Can not add the same portal multiple times");
1073
2351
  }
1074
- /**
1075
- * Removes a portal from the list of portals.
1076
- *
1077
- * @param {Portal<unknown>} portal - The portal to be removed.
1078
- * @return {void}
1079
- */
1080
2352
  removePortal(portal) {
1081
2353
  const index = this.methodPortals().indexOf(portal);
1082
- if (index !== -1) {
1083
- this.methodPortals.update(portals => {
2354
+ if (index !== -1)
2355
+ this.methodPortals.update((portals) => {
1084
2356
  portals.splice(index, 1);
1085
2357
  return portals.slice();
1086
2358
  });
1087
- }
1088
2359
  }
1089
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DefaultHeaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1090
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DefaultHeaderService }); }
1091
- }
1092
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DefaultHeaderService, decorators: [{
1093
- type: Injectable
1094
- }] });
1095
- class DefaultHeaderComponent {
2360
+ static {
2361
+ this.ɵfac = i0.ɵɵngDeclareFactory({
2362
+ minVersion: "12.0.0",
2363
+ version: "22.3.0",
2364
+ ngImport: i0,
2365
+ type: DefaultHeaderService,
2366
+ deps: [],
2367
+ target: i0.ɵɵFactoryTarget.Injectable
2368
+ });
2369
+ }
2370
+ static {
2371
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
2372
+ minVersion: "12.0.0",
2373
+ version: "22.3.0",
2374
+ ngImport: i0,
2375
+ type: DefaultHeaderService
2376
+ });
2377
+ }
2378
+ };
2379
+ i0.ɵɵngDeclareClassMetadata({
2380
+ minVersion: "12.0.0",
2381
+ version: "22.3.0",
2382
+ ngImport: i0,
2383
+ type: DefaultHeaderService,
2384
+ decorators: [{ type: Injectable }]
2385
+ });
2386
+ let DefaultHeaderComponent = class DefaultHeaderComponent {
1096
2387
  constructor() {
1097
2388
  this.layoutComponentService = inject(LayoutService);
1098
- this.collapsed = computed(() => this.layoutComponentService.collapsed(), ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
1099
- this.isMobile = computed(() => this.layoutComponentService.isMobile(), ...(ngDevMode ? [{ debugName: "isMobile" }] : /* istanbul ignore next */ []));
1100
- this.opened = computed(() => this.layoutComponentService.opened(), ...(ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []));
1101
- this.profile = toSignal(inject(RXAP_USER_PROFILE_DATA_SOURCE).connect('user-profile'), { initialValue: null });
2389
+ this.collapsed = computed(() => this.layoutComponentService.collapsed(), ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
2390
+ this.isMobile = computed(() => this.layoutComponentService.isMobile(), ...ngDevMode ? [{ debugName: "isMobile" }] : /* istanbul ignore next */ []);
2391
+ this.opened = computed(() => this.layoutComponentService.opened(), ...ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []);
2392
+ this.profile = toSignal(inject(RXAP_USER_PROFILE_DATA_SOURCE).connect("user-profile"), { initialValue: null });
1102
2393
  this.defaultHeaderService = inject(DefaultHeaderService);
1103
- this.portals = computed(() => this.defaultHeaderService.portals(), ...(ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []));
1104
- this.hasPortals = computed(() => this.portals().length > 0, ...(ngDevMode ? [{ debugName: "hasPortals" }] : /* istanbul ignore next */ []));
2394
+ this.portals = computed(() => this.defaultHeaderService.portals(), ...ngDevMode ? [{ debugName: "portals" }] : /* istanbul ignore next */ []);
2395
+ this.hasPortals = computed(() => this.portals().length > 0, ...ngDevMode ? [{ debugName: "hasPortals" }] : /* istanbul ignore next */ []);
1105
2396
  }
1106
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DefaultHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1107
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: DefaultHeaderComponent, isStandalone: true, selector: "rxap-default-header", host: { classAttribute: "grow" }, ngImport: i0, template: "<div class=\"w-full flex flex-row gap-x-4 justify-between items-center\">\n @if (collapsed() || isMobile()) {\n <rxap-sidenav-toggle-button></rxap-sidenav-toggle-button>\n }\n <div class=\"grow flex flex-row gap-x-4 items-center\">\n @for (portal of portals(); track portal) {\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n }\n <ng-content></ng-content>\n </div>\n <rxap-apps-button class=\"grow-0\"></rxap-apps-button>\n <rxap-settings-button class=\"grow-0\"></rxap-settings-button>\n @if (profile(); as profile) {\n <rxap-user-profile-icon [profile]=\"profile\" class=\"grow-0\"></rxap-user-profile-icon>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: AppsButtonComponent, selector: "rxap-apps-button" }, { kind: "component", type: SettingsButtonComponent, selector: "rxap-settings-button" }, { kind: "component", type: SidenavToggleButtonComponent, selector: "rxap-sidenav-toggle-button" }, { kind: "component", type: UserProfileIconComponent, selector: "rxap-user-profile-icon", inputs: ["profile"] }, { kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1108
- }
1109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DefaultHeaderComponent, decorators: [{
2397
+ static {
2398
+ this.ɵfac = i0.ɵɵngDeclareFactory({
2399
+ minVersion: "12.0.0",
2400
+ version: "22.3.0",
2401
+ ngImport: i0,
2402
+ type: DefaultHeaderComponent,
2403
+ deps: [],
2404
+ target: i0.ɵɵFactoryTarget.Component
2405
+ });
2406
+ }
2407
+ static {
2408
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
2409
+ minVersion: "17.0.0",
2410
+ version: "22.3.0",
2411
+ type: DefaultHeaderComponent,
2412
+ isStandalone: true,
2413
+ selector: "rxap-default-header",
2414
+ host: { classAttribute: "grow" },
2415
+ ngImport: i0,
2416
+ template: "<div class=\"w-full flex flex-row gap-x-4 justify-between items-center\">\n @if (collapsed() || isMobile()) {\n <rxap-sidenav-toggle-button></rxap-sidenav-toggle-button>\n }\n <div class=\"grow flex flex-row gap-x-4 items-center\">\n @for (portal of portals(); track portal) {\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n }\n <ng-content></ng-content>\n </div>\n <rxap-apps-button class=\"grow-0\"></rxap-apps-button>\n <rxap-settings-button class=\"grow-0\"></rxap-settings-button>\n @if (profile(); as profile) {\n <rxap-user-profile-icon [profile]=\"profile\" class=\"grow-0\"></rxap-user-profile-icon>\n }\n</div>\n",
2417
+ styles: [""],
2418
+ dependencies: [
2419
+ {
2420
+ kind: "component",
2421
+ type: AppsButtonComponent,
2422
+ selector: "rxap-apps-button"
2423
+ },
2424
+ {
2425
+ kind: "component",
2426
+ type: SettingsButtonComponent,
2427
+ selector: "rxap-settings-button"
2428
+ },
2429
+ {
2430
+ kind: "component",
2431
+ type: SidenavToggleButtonComponent,
2432
+ selector: "rxap-sidenav-toggle-button"
2433
+ },
2434
+ {
2435
+ kind: "component",
2436
+ type: UserProfileIconComponent,
2437
+ selector: "rxap-user-profile-icon",
2438
+ inputs: ["profile"]
2439
+ },
2440
+ {
2441
+ kind: "directive",
2442
+ type: CdkPortalOutlet,
2443
+ selector: "[cdkPortalOutlet]",
2444
+ inputs: ["cdkPortalOutlet"],
2445
+ outputs: ["attached"],
2446
+ exportAs: ["cdkPortalOutlet"]
2447
+ }
2448
+ ],
2449
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2450
+ });
2451
+ }
2452
+ };
2453
+ i0.ɵɵngDeclareClassMetadata({
2454
+ minVersion: "12.0.0",
2455
+ version: "22.3.0",
2456
+ ngImport: i0,
2457
+ type: DefaultHeaderComponent,
2458
+ decorators: [{
1110
2459
  type: Component,
1111
- args: [{ selector: 'rxap-default-header', imports: [
2460
+ args: [{
2461
+ selector: "rxap-default-header",
2462
+ imports: [
1112
2463
  AppsButtonComponent,
1113
2464
  SettingsButtonComponent,
1114
2465
  SidenavToggleButtonComponent,
1115
2466
  UserProfileIconComponent,
1116
2467
  MatToolbarRow,
1117
- CdkPortalOutlet,
1118
- ], host: {
1119
- 'class': 'grow',
1120
- }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"w-full flex flex-row gap-x-4 justify-between items-center\">\n @if (collapsed() || isMobile()) {\n <rxap-sidenav-toggle-button></rxap-sidenav-toggle-button>\n }\n <div class=\"grow flex flex-row gap-x-4 items-center\">\n @for (portal of portals(); track portal) {\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n }\n <ng-content></ng-content>\n </div>\n <rxap-apps-button class=\"grow-0\"></rxap-apps-button>\n <rxap-settings-button class=\"grow-0\"></rxap-settings-button>\n @if (profile(); as profile) {\n <rxap-user-profile-icon [profile]=\"profile\" class=\"grow-0\"></rxap-user-profile-icon>\n }\n</div>\n" }]
1121
- }] });
2468
+ CdkPortalOutlet
2469
+ ],
2470
+ host: { "class": "grow" },
2471
+ changeDetection: ChangeDetectionStrategy.OnPush,
2472
+ template: "<div class=\"w-full flex flex-row gap-x-4 justify-between items-center\">\n @if (collapsed() || isMobile()) {\n <rxap-sidenav-toggle-button></rxap-sidenav-toggle-button>\n }\n <div class=\"grow flex flex-row gap-x-4 items-center\">\n @for (portal of portals(); track portal) {\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n }\n <ng-content></ng-content>\n </div>\n <rxap-apps-button class=\"grow-0\"></rxap-apps-button>\n <rxap-settings-button class=\"grow-0\"></rxap-settings-button>\n @if (profile(); as profile) {\n <rxap-user-profile-icon [profile]=\"profile\" class=\"grow-0\"></rxap-user-profile-icon>\n }\n</div>\n"
2473
+ }]
2474
+ }]
2475
+ });
1122
2476
  function provideLayout(...additionalProviders) {
1123
2477
  return [
1124
2478
  LayoutService,
1125
2479
  HeaderService,
1126
2480
  FooterService,
1127
2481
  DefaultHeaderService,
1128
- ...additionalProviders,
2482
+ ...additionalProviders
1129
2483
  ];
1130
2484
  }
1131
2485
  function provideExternalApps(...apps) {
1132
- return [
1133
- ExternalAppsService,
1134
- ...apps.map(app => ({
2486
+ return [ExternalAppsService, ...apps.map((app) => ({
1135
2487
  provide: RXAP_EXTERNAL_APP,
1136
2488
  useValue: app,
1137
- multi: true,
1138
- }))
1139
- ];
2489
+ multi: true
2490
+ }))];
1140
2491
  }
1141
2492
  function withNavigationConfig(config) {
1142
- return [
1143
- NavigationService,
1144
- {
2493
+ return [NavigationService, {
1145
2494
  provide: RXAP_NAVIGATION_CONFIG,
1146
- useValue: config,
1147
- },
1148
- ];
2495
+ useValue: config
2496
+ }];
1149
2497
  }
1150
2498
  function withNavigationInserts(inserts) {
1151
2499
  return [{
1152
2500
  provide: RXAP_NAVIGATION_CONFIG_INSERTS,
1153
- useValue: inserts,
2501
+ useValue: inserts
1154
2502
  }];
1155
2503
  }
1156
2504
  function withSettingsMenuItems(...items) {
1157
- return [
1158
- ...items.filter((item) => typeof item === 'function').map(component => ({
2505
+ return [...items.filter((item) => typeof item === "function").map((component) => ({
1159
2506
  provide: RXAP_SETTINGS_MENU_ITEM_COMPONENT,
1160
2507
  useValue: component,
1161
- multi: true,
1162
- })),
1163
- ...items.filter((item) => typeof item !== 'function').map(item => ({
2508
+ multi: true
2509
+ })), ...items.filter((item) => typeof item !== "function").map((item) => ({
1164
2510
  provide: RXAP_SETTINGS_MENU_ITEM,
1165
2511
  useValue: item,
1166
- multi: true,
1167
- })),
1168
- ];
2512
+ multi: true
2513
+ }))];
1169
2514
  }
1170
2515
  function withDefaultHeaderItems(...items) {
1171
- return items.map(component => ({
2516
+ return items.map((component) => ({
1172
2517
  provide: RXAP_DEFAULT_HEADER_ITEM_COMPONENT,
1173
2518
  useValue: component,
1174
- multi: true,
2519
+ multi: true
1175
2520
  }));
1176
2521
  }
1177
2522
  function withReleaseInfoModules(...module) {
1178
- return module.map(item => ({
2523
+ return module.map((item) => ({
1179
2524
  provide: RXAP_RELEASE_INFO_MODULE,
1180
2525
  useValue: item,
1181
- multi: true,
2526
+ multi: true
1182
2527
  }));
1183
2528
  }
1184
2529
  function withHeaderComponents(components) {
1185
- return components.map(component => ({
2530
+ return components.map((component) => ({
1186
2531
  provide: RXAP_HEADER_COMPONENT,
1187
2532
  useValue: component,
1188
- multi: true,
2533
+ multi: true
1189
2534
  }));
1190
2535
  }
1191
2536
  function withFooterComponents(components) {
1192
- return components.map(component => ({
2537
+ return components.map((component) => ({
1193
2538
  provide: RXAP_FOOTER_COMPONENT,
1194
- useValue: component,
2539
+ useValue: component
1195
2540
  }));
1196
2541
  }
1197
2542
  function withDefaultHeaderComponent() {
1198
2543
  return {
1199
2544
  provide: RXAP_HEADER_COMPONENT,
1200
2545
  useValue: DefaultHeaderComponent,
1201
- multi: true,
2546
+ multi: true
1202
2547
  };
1203
2548
  }
1204
2549
  function withUserProfileDataSource(dataSource, useClass = false) {
1205
- if (useClass) {
2550
+ if (useClass)
1206
2551
  return {
1207
2552
  provide: RXAP_USER_PROFILE_DATA_SOURCE,
1208
2553
  useClass: dataSource
1209
2554
  };
1210
- }
1211
- else {
2555
+ else
1212
2556
  return {
1213
2557
  provide: RXAP_USER_PROFILE_DATA_SOURCE,
1214
2558
  useExisting: dataSource
1215
2559
  };
1216
- }
1217
2560
  }
1218
- // region sidenav
1219
- // endregion
1220
- /**
1221
- * Generated bundle index. Do not edit.
1222
- */
1223
2561
  export { AppsButtonComponent, BaseLayoutComponent, DefaultHeaderComponent, DefaultHeaderService, EXTRACT_USERNAME_FROM_PROFILE, ExternalAppsService, FooterComponent, FooterDirective, FooterService, HeaderComponent, HeaderDirective, HeaderService, IsNavigationDividerItem, IsNavigationInsertItem, IsNavigationItem, LayoutComponent, LayoutService, LogoService, MinimalLayoutComponent, NavigationComponent, NavigationItemComponent, NavigationProgressBarComponent, NavigationService, RXAP_DEFAULT_HEADER_ITEM_COMPONENT, RXAP_EXTERNAL_APP, RXAP_EXTERNAL_APP_FILTER, RXAP_FOOTER_COMPONENT, RXAP_HEADER_COMPONENT, RXAP_LAYOUT_APPS_GRID, RXAP_LOGO_CONFIG, RXAP_LOGO_CONFIG_DEFAULTS, RXAP_NAVIGATION_CONFIG, RXAP_NAVIGATION_CONFIG_INSERTS, RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS, RXAP_RELEASE_INFO_MODULE, RXAP_SETTINGS_MENU_ITEM, RXAP_SETTINGS_MENU_ITEM_COMPONENT, RXAP_USER_PROFILE_DATA_SOURCE, ReleaseInfoComponent, SettingsButtonComponent, SidenavComponent, SidenavFooterDirective, SidenavHeaderDirective, SidenavToggleButtonComponent, UserProfileIconComponent, provideExternalApps, provideLayout, withDefaultHeaderComponent, withDefaultHeaderItems, withFooterComponents, withHeaderComponents, withNavigationConfig, withNavigationInserts, withReleaseInfoModules, withSettingsMenuItems, withUserProfileDataSource };