@rxap/layout 21.0.1-dev.0 → 21.0.1-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 (229) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/compodoc/changelog.html +27 -0
  3. package/compodoc/components/AppsButtonComponent.html +26 -15
  4. package/compodoc/components/NavigationComponent.html +33 -70
  5. package/compodoc/components/NavigationItemComponent.html +88 -199
  6. package/compodoc/components/SidenavToggleButtonComponent.html +15 -5
  7. package/compodoc/dependencies.html +12 -12
  8. package/compodoc/directives/SidenavFooterDirective.html +4 -74
  9. package/compodoc/directives/SidenavHeaderDirective.html +4 -74
  10. package/compodoc/injectables/LayoutService.html +24 -67
  11. package/compodoc/injectables/NavigationService.html +20 -72
  12. package/compodoc/js/search/search_index.js +2 -2
  13. package/compodoc/properties.html +1 -1
  14. package/docs/documentation.json +2034 -2785
  15. package/docs/html/assets/search.js +1 -1
  16. package/docs/html/classes/AppsButtonComponent.html +4 -10
  17. package/docs/html/classes/BaseLayoutComponent.html +2 -2
  18. package/docs/html/classes/DefaultHeaderComponent.html +2 -2
  19. package/docs/html/classes/DefaultHeaderService.html +5 -5
  20. package/docs/html/classes/ExternalAppsService.html +2 -2
  21. package/docs/html/classes/FooterComponent.html +2 -2
  22. package/docs/html/classes/FooterDirective.html +3 -3
  23. package/docs/html/classes/FooterService.html +5 -5
  24. package/docs/html/classes/HeaderComponent.html +2 -2
  25. package/docs/html/classes/HeaderDirective.html +3 -3
  26. package/docs/html/classes/HeaderService.html +5 -5
  27. package/docs/html/classes/LayoutComponent.html +2 -2
  28. package/docs/html/classes/LayoutService.html +2 -2
  29. package/docs/html/classes/LogoService.html +2 -2
  30. package/docs/html/classes/MinimalLayoutComponent.html +2 -2
  31. package/docs/html/classes/NavigationComponent.html +2 -9
  32. package/docs/html/classes/NavigationItemComponent.html +3 -19
  33. package/docs/html/classes/NavigationProgressBarComponent.html +2 -2
  34. package/docs/html/classes/NavigationService.html +3 -3
  35. package/docs/html/classes/ReleaseInfoComponent.html +2 -2
  36. package/docs/html/classes/SettingsButtonComponent.html +2 -2
  37. package/docs/html/classes/SidenavComponent.html +3 -3
  38. package/docs/html/classes/SidenavFooterDirective.html +2 -2
  39. package/docs/html/classes/SidenavHeaderDirective.html +2 -2
  40. package/docs/html/classes/SidenavToggleButtonComponent.html +2 -2
  41. package/docs/html/classes/UserProfileIconComponent.html +2 -2
  42. package/docs/html/functions/IsNavigationDividerItem.html +1 -1
  43. package/docs/html/functions/IsNavigationInsertItem.html +1 -1
  44. package/docs/html/functions/IsNavigationItem.html +1 -1
  45. package/docs/html/functions/provideExternalApps.html +1 -1
  46. package/docs/html/functions/provideLayout.html +1 -1
  47. package/docs/html/functions/withDefaultHeaderComponent.html +1 -1
  48. package/docs/html/functions/withDefaultHeaderItems.html +1 -1
  49. package/docs/html/functions/withFooterComponents.html +1 -1
  50. package/docs/html/functions/withHeaderComponents.html +1 -1
  51. package/docs/html/functions/withNavigationConfig.html +1 -1
  52. package/docs/html/functions/withNavigationInserts.html +1 -1
  53. package/docs/html/functions/withReleaseInfoModules.html +1 -1
  54. package/docs/html/functions/withSettingsMenuItems.html +1 -1
  55. package/docs/html/functions/withUserProfileDataSource.html +1 -1
  56. package/docs/html/index.html +2 -2
  57. package/docs/html/interfaces/NavigationDividerItem.html +2 -2
  58. package/docs/html/interfaces/NavigationInsertItem.html +2 -2
  59. package/docs/html/interfaces/NavigationItem.html +2 -2
  60. package/docs/html/interfaces/NavigationStatus.html +2 -2
  61. package/docs/html/interfaces/ReleaseInfoModule.html +2 -2
  62. package/docs/html/interfaces/SettingsMenuItem.html +2 -2
  63. package/docs/html/modules.html +1 -1
  64. package/docs/html/types/DefaultHeaderItemComponent.html +1 -1
  65. package/docs/html/types/ExternalApp.html +1 -1
  66. package/docs/html/types/ExtractUsernameFromProfileFn.html +1 -1
  67. package/docs/html/types/Navigation.html +1 -1
  68. package/docs/html/types/NavigationWithInserts.html +1 -1
  69. package/docs/html/types/SettingsMenuItemComponent.html +1 -1
  70. package/docs/html/variables/EXTRACT_USERNAME_FROM_PROFILE.html +1 -1
  71. package/docs/html/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.html +1 -1
  72. package/docs/html/variables/RXAP_EXTERNAL_APP.html +1 -1
  73. package/docs/html/variables/RXAP_EXTERNAL_APP_FILTER.html +1 -1
  74. package/docs/html/variables/RXAP_FOOTER_COMPONENT.html +1 -1
  75. package/docs/html/variables/RXAP_HEADER_COMPONENT.html +1 -1
  76. package/docs/html/variables/RXAP_LAYOUT_APPS_GRID.html +1 -1
  77. package/docs/html/variables/RXAP_LOGO_CONFIG.html +1 -1
  78. package/docs/html/variables/RXAP_LOGO_CONFIG_DEFAULTS.html +1 -1
  79. package/docs/html/variables/RXAP_NAVIGATION_CONFIG.html +1 -1
  80. package/docs/html/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +1 -1
  81. package/docs/html/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.html +1 -1
  82. package/docs/html/variables/RXAP_RELEASE_INFO_MODULE.html +1 -1
  83. package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM.html +1 -1
  84. package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +1 -1
  85. package/docs/html/variables/RXAP_USER_PROFILE_DATA_SOURCE.html +1 -1
  86. package/docs/markdown/README.md +1 -1
  87. package/docs/markdown/classes/AppsButtonComponent.md +9 -33
  88. package/docs/markdown/classes/BaseLayoutComponent.md +2 -2
  89. package/docs/markdown/classes/DefaultHeaderComponent.md +10 -10
  90. package/docs/markdown/classes/DefaultHeaderService.md +6 -6
  91. package/docs/markdown/classes/ExternalAppsService.md +18 -18
  92. package/docs/markdown/classes/FooterComponent.md +5 -5
  93. package/docs/markdown/classes/FooterDirective.md +4 -4
  94. package/docs/markdown/classes/FooterService.md +6 -6
  95. package/docs/markdown/classes/HeaderComponent.md +6 -6
  96. package/docs/markdown/classes/HeaderDirective.md +4 -4
  97. package/docs/markdown/classes/HeaderService.md +6 -6
  98. package/docs/markdown/classes/LayoutComponent.md +6 -6
  99. package/docs/markdown/classes/LayoutService.md +18 -24
  100. package/docs/markdown/classes/LogoService.md +6 -6
  101. package/docs/markdown/classes/MinimalLayoutComponent.md +2 -2
  102. package/docs/markdown/classes/NavigationComponent.md +16 -50
  103. package/docs/markdown/classes/NavigationItemComponent.md +19 -115
  104. package/docs/markdown/classes/NavigationProgressBarComponent.md +4 -4
  105. package/docs/markdown/classes/NavigationService.md +16 -26
  106. package/docs/markdown/classes/ReleaseInfoComponent.md +6 -6
  107. package/docs/markdown/classes/SettingsButtonComponent.md +19 -19
  108. package/docs/markdown/classes/SidenavComponent.md +18 -18
  109. package/docs/markdown/classes/SidenavFooterDirective.md +4 -12
  110. package/docs/markdown/classes/SidenavHeaderDirective.md +4 -12
  111. package/docs/markdown/classes/SidenavToggleButtonComponent.md +5 -5
  112. package/docs/markdown/classes/UserProfileIconComponent.md +7 -7
  113. package/docs/markdown/functions/IsNavigationDividerItem.md +2 -2
  114. package/docs/markdown/functions/IsNavigationInsertItem.md +2 -2
  115. package/docs/markdown/functions/IsNavigationItem.md +2 -2
  116. package/docs/markdown/functions/provideExternalApps.md +2 -2
  117. package/docs/markdown/functions/provideLayout.md +2 -2
  118. package/docs/markdown/functions/withDefaultHeaderComponent.md +2 -2
  119. package/docs/markdown/functions/withDefaultHeaderItems.md +2 -2
  120. package/docs/markdown/functions/withFooterComponents.md +2 -2
  121. package/docs/markdown/functions/withHeaderComponents.md +2 -2
  122. package/docs/markdown/functions/withNavigationConfig.md +2 -2
  123. package/docs/markdown/functions/withNavigationInserts.md +2 -2
  124. package/docs/markdown/functions/withReleaseInfoModules.md +2 -2
  125. package/docs/markdown/functions/withSettingsMenuItems.md +2 -2
  126. package/docs/markdown/functions/withUserProfileDataSource.md +2 -2
  127. package/docs/markdown/globals.md +2 -2
  128. package/docs/markdown/interfaces/NavigationDividerItem.md +4 -4
  129. package/docs/markdown/interfaces/NavigationInsertItem.md +3 -3
  130. package/docs/markdown/interfaces/NavigationItem.md +7 -7
  131. package/docs/markdown/interfaces/NavigationStatus.md +3 -3
  132. package/docs/markdown/interfaces/ReleaseInfoModule.md +5 -5
  133. package/docs/markdown/interfaces/SettingsMenuItem.md +5 -5
  134. package/docs/markdown/type-aliases/DefaultHeaderItemComponent.md +2 -2
  135. package/docs/markdown/type-aliases/ExternalApp.md +2 -2
  136. package/docs/markdown/type-aliases/ExtractUsernameFromProfileFn.md +2 -2
  137. package/docs/markdown/type-aliases/Navigation.md +2 -2
  138. package/docs/markdown/type-aliases/NavigationWithInserts.md +2 -2
  139. package/docs/markdown/type-aliases/SettingsMenuItemComponent.md +2 -2
  140. package/docs/markdown/variables/EXTRACT_USERNAME_FROM_PROFILE.md +2 -2
  141. package/docs/markdown/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +2 -2
  142. package/docs/markdown/variables/RXAP_EXTERNAL_APP.md +2 -2
  143. package/docs/markdown/variables/RXAP_EXTERNAL_APP_FILTER.md +2 -2
  144. package/docs/markdown/variables/RXAP_FOOTER_COMPONENT.md +2 -2
  145. package/docs/markdown/variables/RXAP_HEADER_COMPONENT.md +2 -2
  146. package/docs/markdown/variables/RXAP_LAYOUT_APPS_GRID.md +2 -2
  147. package/docs/markdown/variables/RXAP_LOGO_CONFIG.md +2 -2
  148. package/docs/markdown/variables/RXAP_LOGO_CONFIG_DEFAULTS.md +2 -2
  149. package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG.md +2 -2
  150. package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG_INSERTS.md +2 -2
  151. package/docs/markdown/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +2 -2
  152. package/docs/markdown/variables/RXAP_RELEASE_INFO_MODULE.md +2 -2
  153. package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM.md +2 -2
  154. package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +2 -2
  155. package/docs/markdown/variables/RXAP_USER_PROFILE_DATA_SOURCE.md +2 -2
  156. package/docs/wiki/Class.AppsButtonComponent.md +8 -32
  157. package/docs/wiki/Class.BaseLayoutComponent.md +1 -1
  158. package/docs/wiki/Class.DefaultHeaderComponent.md +9 -9
  159. package/docs/wiki/Class.DefaultHeaderService.md +5 -5
  160. package/docs/wiki/Class.ExternalAppsService.md +17 -17
  161. package/docs/wiki/Class.FooterComponent.md +4 -4
  162. package/docs/wiki/Class.FooterDirective.md +3 -3
  163. package/docs/wiki/Class.FooterService.md +5 -5
  164. package/docs/wiki/Class.HeaderComponent.md +5 -5
  165. package/docs/wiki/Class.HeaderDirective.md +3 -3
  166. package/docs/wiki/Class.HeaderService.md +5 -5
  167. package/docs/wiki/Class.LayoutComponent.md +5 -5
  168. package/docs/wiki/Class.LayoutService.md +17 -23
  169. package/docs/wiki/Class.LogoService.md +5 -5
  170. package/docs/wiki/Class.MinimalLayoutComponent.md +1 -1
  171. package/docs/wiki/Class.NavigationComponent.md +15 -49
  172. package/docs/wiki/Class.NavigationItemComponent.md +18 -114
  173. package/docs/wiki/Class.NavigationProgressBarComponent.md +3 -3
  174. package/docs/wiki/Class.NavigationService.md +15 -25
  175. package/docs/wiki/Class.ReleaseInfoComponent.md +5 -5
  176. package/docs/wiki/Class.SettingsButtonComponent.md +18 -18
  177. package/docs/wiki/Class.SidenavComponent.md +17 -17
  178. package/docs/wiki/Class.SidenavFooterDirective.md +3 -11
  179. package/docs/wiki/Class.SidenavHeaderDirective.md +3 -11
  180. package/docs/wiki/Class.SidenavToggleButtonComponent.md +4 -4
  181. package/docs/wiki/Class.UserProfileIconComponent.md +6 -6
  182. package/docs/wiki/Function.IsNavigationDividerItem.md +1 -1
  183. package/docs/wiki/Function.IsNavigationInsertItem.md +1 -1
  184. package/docs/wiki/Function.IsNavigationItem.md +1 -1
  185. package/docs/wiki/Function.provideExternalApps.md +1 -1
  186. package/docs/wiki/Function.provideLayout.md +1 -1
  187. package/docs/wiki/Function.withDefaultHeaderComponent.md +1 -1
  188. package/docs/wiki/Function.withDefaultHeaderItems.md +1 -1
  189. package/docs/wiki/Function.withFooterComponents.md +1 -1
  190. package/docs/wiki/Function.withHeaderComponents.md +1 -1
  191. package/docs/wiki/Function.withNavigationConfig.md +1 -1
  192. package/docs/wiki/Function.withNavigationInserts.md +1 -1
  193. package/docs/wiki/Function.withReleaseInfoModules.md +1 -1
  194. package/docs/wiki/Function.withSettingsMenuItems.md +1 -1
  195. package/docs/wiki/Function.withUserProfileDataSource.md +1 -1
  196. package/docs/wiki/Interface.NavigationDividerItem.md +3 -3
  197. package/docs/wiki/Interface.NavigationInsertItem.md +2 -2
  198. package/docs/wiki/Interface.NavigationItem.md +6 -6
  199. package/docs/wiki/Interface.NavigationStatus.md +2 -2
  200. package/docs/wiki/Interface.ReleaseInfoModule.md +4 -4
  201. package/docs/wiki/Interface.SettingsMenuItem.md +4 -4
  202. package/docs/wiki/TypeAlias.DefaultHeaderItemComponent.md +1 -1
  203. package/docs/wiki/TypeAlias.ExternalApp.md +1 -1
  204. package/docs/wiki/TypeAlias.ExtractUsernameFromProfileFn.md +1 -1
  205. package/docs/wiki/TypeAlias.Navigation.md +1 -1
  206. package/docs/wiki/TypeAlias.NavigationWithInserts.md +1 -1
  207. package/docs/wiki/TypeAlias.SettingsMenuItemComponent.md +1 -1
  208. package/docs/wiki/Variable.EXTRACT_USERNAME_FROM_PROFILE.md +1 -1
  209. package/docs/wiki/Variable.RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +1 -1
  210. package/docs/wiki/Variable.RXAP_EXTERNAL_APP.md +1 -1
  211. package/docs/wiki/Variable.RXAP_EXTERNAL_APP_FILTER.md +1 -1
  212. package/docs/wiki/Variable.RXAP_FOOTER_COMPONENT.md +1 -1
  213. package/docs/wiki/Variable.RXAP_HEADER_COMPONENT.md +1 -1
  214. package/docs/wiki/Variable.RXAP_LAYOUT_APPS_GRID.md +1 -1
  215. package/docs/wiki/Variable.RXAP_LOGO_CONFIG.md +1 -1
  216. package/docs/wiki/Variable.RXAP_LOGO_CONFIG_DEFAULTS.md +1 -1
  217. package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG.md +1 -1
  218. package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG_INSERTS.md +1 -1
  219. package/docs/wiki/Variable.RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +1 -1
  220. package/docs/wiki/Variable.RXAP_RELEASE_INFO_MODULE.md +1 -1
  221. package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM.md +1 -1
  222. package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +1 -1
  223. package/docs/wiki/Variable.RXAP_USER_PROFILE_DATA_SOURCE.md +1 -1
  224. package/docs/wiki/globals.md +1 -1
  225. package/fesm2022/rxap-layout.mjs +72 -141
  226. package/fesm2022/rxap-layout.mjs.map +1 -1
  227. package/package.json +27 -27
  228. package/src/generators/init/generator.spec.ts +228 -0
  229. package/types/rxap-layout.d.ts +23 -25
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { TemplateRef, Inject, Directive, InjectionToken, inject, signal, computed, isDevMode, Injectable, effect, Optional, INJECTOR, input, ElementRef, Renderer2, ViewEncapsulation, ChangeDetectionStrategy, Component, forwardRef, runInInjectionContext, viewChild, contentChild, ViewContainerRef, Injector, LOCALE_ID } 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
3
  import { NgClass, AsyncPipe, NgStyle, NgTemplateOutlet, NgOptimizedImage } from '@angular/common';
4
4
  import { MatIconButton, MatButton, MatButtonModule, MatAnchor } from '@angular/material/button';
5
5
  import * as i3 from '@angular/material/divider';
@@ -8,15 +8,15 @@ import * as i2 from '@angular/material/icon';
8
8
  import { MatIconModule, MatIcon } from '@angular/material/icon';
9
9
  import { MatSidenav, MatSidenavContainer, MatSidenavContent, MatSidenavModule } from '@angular/material/sidenav';
10
10
  import { MediaMatcher } from '@angular/cdk/layout';
11
- import { toSignal } from '@angular/core/rxjs-interop';
11
+ import { toSignal, toObservable } from '@angular/core/rxjs-interop';
12
12
  import { ConfigService } from '@rxap/config';
13
13
  import { ObserveCurrentThemeDensity, ThemeService } from '@rxap/ngx-theme';
14
- import { Observable, ReplaySubject, of, from, combineLatest, Subscription, debounceTime } from 'rxjs';
14
+ import { Observable, ReplaySubject, of, from, combineLatest, debounceTime, switchMap as switchMap$1, EMPTY } from 'rxjs';
15
15
  import * as i2$1 from '@angular/cdk/portal';
16
16
  import { ComponentPortal, PortalModule, CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal';
17
17
  import { staticDataSource } from '@rxap/data-source';
18
18
  import { coerceArray, IsFunction, clone, JoinPath } from '@rxap/utilities';
19
- import { switchMap, map, catchError, filter, startWith, tap } from 'rxjs/operators';
19
+ import { switchMap, map, catchError, filter, startWith } from 'rxjs/operators';
20
20
  import { trigger, transition, style, animate } from '@angular/animations';
21
21
  import * as i1 from '@angular/material/core';
22
22
  import { MatRippleModule } from '@angular/material/core';
@@ -30,13 +30,13 @@ import { MatToolbarModule, MatToolbar, MatToolbarRow } from '@angular/material/t
30
30
  import * as i1$2 from '@angular/material/menu';
31
31
  import { MatMenuModule, MatMenu, MatMenuTrigger, MatMenuItem } from '@angular/material/menu';
32
32
  import { PubSubService, RXAP_TOPICS } from '@rxap/ngx-pub-sub';
33
+ import { __decorate } from 'tslib';
33
34
  import { ClickOnLink } from '@rxap/browser-utilities';
34
-
35
35
  class SidenavFooterDirective {
36
- constructor(template) {
37
- this.template = template;
36
+ constructor() {
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: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
39
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
40
40
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: SidenavFooterDirective, isStandalone: true, selector: "[rxapSidenavFooter]", ngImport: i0 }); }
41
41
  }
42
42
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavFooterDirective, decorators: [{
@@ -45,16 +45,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
45
45
  selector: '[rxapSidenavFooter]',
46
46
  standalone: true,
47
47
  }]
48
- }], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
49
- type: Inject,
50
- args: [TemplateRef]
51
- }] }] });
52
-
48
+ }] });
53
49
  class SidenavHeaderDirective {
54
- constructor(template) {
55
- this.template = template;
50
+ constructor() {
51
+ this.template = inject(TemplateRef);
56
52
  }
57
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavHeaderDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
53
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
58
54
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: SidenavHeaderDirective, isStandalone: true, selector: "[rxapSidenavHeader]", ngImport: i0 }); }
59
55
  }
60
56
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavHeaderDirective, decorators: [{
@@ -63,11 +59,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
63
59
  selector: '[rxapSidenavHeader]',
64
60
  standalone: true,
65
61
  }]
66
- }], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
67
- type: Inject,
68
- args: [TemplateRef]
69
- }] }] });
70
-
62
+ }] });
71
63
  const RXAP_NAVIGATION_CONFIG = new InjectionToken('rxap/layout/navigation-config');
72
64
  const RXAP_NAVIGATION_CONFIG_INSERTS = new InjectionToken('rxap/layout/navigation-config-inserts');
73
65
  const RXAP_FOOTER_COMPONENT = new InjectionToken('rxap/layout/footer-component');
@@ -90,7 +82,6 @@ const RXAP_DEFAULT_HEADER_ITEM_COMPONENT = new InjectionToken('rxap/layout/defau
90
82
  const RXAP_SETTINGS_MENU_ITEM = new InjectionToken('rxap/layout/settings-menu-item');
91
83
  const RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS = new InjectionToken('rxap/layout/navigation-config/defaults');
92
84
  const RXAP_LOGO_CONFIG_DEFAULTS = new InjectionToken('rxap/layout/logo-config/defaults');
93
-
94
85
  class FooterService {
95
86
  constructor() {
96
87
  this.components = coerceArray(inject(RXAP_FOOTER_COMPONENT, { optional: true }));
@@ -143,7 +134,6 @@ class FooterService {
143
134
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FooterService, decorators: [{
144
135
  type: Injectable
145
136
  }] });
146
-
147
137
  class HeaderService {
148
138
  constructor() {
149
139
  this.components = coerceArray(inject(RXAP_HEADER_COMPONENT, { optional: true }));
@@ -198,14 +188,14 @@ class HeaderService {
198
188
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: HeaderService, decorators: [{
199
189
  type: Injectable
200
190
  }] });
201
-
202
191
  class LayoutService {
203
- constructor(navigationConfigDefaults = null) {
192
+ constructor() {
204
193
  this.currentThemeDensity = toSignal(ObserveCurrentThemeDensity());
205
194
  this.footerService = inject(FooterService);
206
195
  this.headerService = inject(HeaderService);
207
196
  this.config = inject(ConfigService);
208
197
  this.mediaMatcher = inject(MediaMatcher);
198
+ const navigationConfigDefaults = inject(RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS, { optional: true }) ?? null;
209
199
  const mobileQuery = this.mediaMatcher.matchMedia(navigationConfigDefaults?.mobileQuery ?? '(max-width: 959px)');
210
200
  this.isMobile = toSignal(new Observable(subscriber => {
211
201
  mobileQuery.addEventListener('change', (event) => {
@@ -276,18 +266,12 @@ class LayoutService {
276
266
  closeSidenav() {
277
267
  this.opened.set(false);
278
268
  }
279
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LayoutService, deps: [{ token: RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
269
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
280
270
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LayoutService }); }
281
271
  }
282
272
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LayoutService, decorators: [{
283
273
  type: Injectable
284
- }], ctorParameters: () => [{ type: undefined, decorators: [{
285
- type: Inject,
286
- args: [RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS]
287
- }, {
288
- type: Optional
289
- }] }] });
290
-
274
+ }], ctorParameters: () => [] });
291
275
  function IsNavigationDividerItem(item) {
292
276
  return !!item && !!item['divider'];
293
277
  }
@@ -297,12 +281,13 @@ function IsNavigationInsertItem(item) {
297
281
  function IsNavigationItem(item) {
298
282
  return (!!item && !!item['routerLink'] && !!item['label']);
299
283
  }
300
-
301
284
  class NavigationService {
302
- constructor(navigation, inserts = null) {
285
+ constructor() {
303
286
  this.inserts = new Map();
304
287
  this.navigation$ = new ReplaySubject(1);
305
288
  this.injector = inject(INJECTOR);
289
+ const navigation = inject(RXAP_NAVIGATION_CONFIG);
290
+ const inserts = inject(RXAP_NAVIGATION_CONFIG_INSERTS, { optional: true }) ?? null;
306
291
  if (typeof navigation === 'function') {
307
292
  this.navigation = navigation();
308
293
  }
@@ -427,27 +412,20 @@ class NavigationService {
427
412
  }
428
413
  return navigation;
429
414
  }
430
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationService, deps: [{ token: RXAP_NAVIGATION_CONFIG }, { token: RXAP_NAVIGATION_CONFIG_INSERTS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
415
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
431
416
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationService }); }
432
417
  }
433
418
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationService, decorators: [{
434
419
  type: Injectable
435
- }], ctorParameters: () => [{ type: undefined, decorators: [{
436
- type: Inject,
437
- args: [RXAP_NAVIGATION_CONFIG]
438
- }] }, { type: undefined, decorators: [{
439
- type: Optional
440
- }, {
441
- type: Inject,
442
- args: [RXAP_NAVIGATION_CONFIG_INSERTS]
443
- }] }] });
444
-
420
+ }], ctorParameters: () => [] });
445
421
  class NavigationItemComponent {
446
422
  constructor() {
447
423
  this.level = input(0, ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
448
- this.children = null;
424
+ this.children = computed(() => {
425
+ const item = this.item();
426
+ return item.children && item.children.length ? item.children : null;
427
+ }, ...(ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []));
449
428
  this.item = input.required(...(ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []));
450
- this.active = signal(false, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
451
429
  this.itemClasses = computed(() => {
452
430
  let classes = `level-${this.level() * 4}`;
453
431
  if (this.collapsed()) {
@@ -457,28 +435,13 @@ class NavigationItemComponent {
457
435
  }, ...(ngDevMode ? [{ debugName: "itemClasses" }] : /* istanbul ignore next */ []));
458
436
  this.layoutService = inject(LayoutService);
459
437
  this.collapsed = computed(() => this.layoutService.collapsed(), ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
460
- this._subscription = new Subscription();
461
438
  this.router = inject(Router);
462
- this.elementRef = inject(ElementRef);
463
- this.renderer = inject(Renderer2);
464
- }
465
- onClick() {
466
- if (this.layoutService.isMobile() || this.layoutService.collapsed()) {
467
- this.layoutService.opened.set(false);
468
- }
469
- }
470
- ngOnChanges(changes) {
471
- if (changes['item']) {
472
- const item = changes['item'].currentValue;
473
- this.children =
474
- item.children && item.children.length ? item.children : null;
475
- }
476
- }
477
- ngAfterViewInit() {
478
- this._subscription.add(this.router.events
479
- .pipe(filter((event) => event instanceof NavigationEnd), debounceTime(100), startWith(true), tap(() => {
480
- let isActive = true;
481
- const urlParts = this.router.url.split('/');
439
+ /**
440
+ * The current router url. Updated (debounced) after each navigation.
441
+ */
442
+ 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
+ this.active = computed(() => {
444
+ const urlParts = this.currentUrl().split('/');
482
445
  if (urlParts[0] === '') {
483
446
  urlParts[0] = '/';
484
447
  }
@@ -488,22 +451,16 @@ class NavigationItemComponent {
488
451
  }
489
452
  for (let i = 0; i < routerLink.length; i++) {
490
453
  if (urlParts[i] !== routerLink[i]) {
491
- isActive = false;
492
- break;
454
+ return false;
493
455
  }
494
456
  }
495
- this.active.set(isActive);
496
- if (isActive) {
497
- this.renderer.addClass(this.elementRef.nativeElement, 'active');
498
- }
499
- else {
500
- this.renderer.removeClass(this.elementRef.nativeElement, 'active');
501
- }
502
- }))
503
- .subscribe());
457
+ return true;
458
+ }, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
504
459
  }
505
- ngOnDestroy() {
506
- this._subscription?.unsubscribe();
460
+ onClick() {
461
+ if (this.layoutService.isMobile() || this.layoutService.collapsed()) {
462
+ this.layoutService.opened.set(false);
463
+ }
507
464
  }
508
465
  // region type save item property
509
466
  // required to check the type of the item property in the ngFor loop
@@ -520,23 +477,25 @@ class NavigationItemComponent {
520
477
  return item;
521
478
  }
522
479
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
523
- static { 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 } }, usesOnChanges: true, 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: [
524
- trigger('sub-nav', [
525
- transition(':enter', [
526
- style({
527
- display: 'block',
528
- height: '0',
529
- overflow: 'hidden',
530
- }),
531
- animate(150, style({ height: '*' })),
480
+ 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
+ ]),
532
496
  ]),
533
- transition(':leave', [
534
- style({ overflow: 'hidden' }),
535
- animate(300, style({ height: '0' })),
536
- style({ display: 'none' }),
537
- ]),
538
- ]),
539
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
497
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
498
+ }
540
499
  }
541
500
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NavigationItemComponent, decorators: [{
542
501
  type: Component,
@@ -556,7 +515,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
556
515
  style({ display: 'none' }),
557
516
  ]),
558
517
  ]),
559
- ], imports: [
518
+ ], host: {
519
+ '[class.active]': 'active()',
520
+ }, imports: [
560
521
  RouterLinkActive,
561
522
  RouterLink,
562
523
  MatRippleModule,
@@ -565,9 +526,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
565
526
  MatDividerModule,
566
527
  forwardRef(() => NavigationComponent),
567
528
  NgClass
568
- ], 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" }]
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" }]
569
530
  }], propDecorators: { level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: true }] }] } });
570
-
571
531
  class NavigationComponent {
572
532
  constructor() {
573
533
  this.items = input(...(ngDevMode ? [undefined, { debugName: "items" }] : /* istanbul ignore next */ []));
@@ -575,16 +535,12 @@ class NavigationComponent {
575
535
  this.navigationService = inject(NavigationService);
576
536
  this.layoutService = inject(LayoutService);
577
537
  this.collapsed = computed(() => this.layoutService.collapsed(), ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
578
- this.navigationItems = computed(() => this.items() ?? [], ...(ngDevMode ? [{ debugName: "navigationItems" }] : /* istanbul ignore next */ []));
579
538
  this.root = input(false, ...(ngDevMode ? [{ debugName: "root" }] : /* istanbul ignore next */ []));
580
- this.injector = inject(INJECTOR);
581
- }
582
- ngOnInit() {
583
- if (this.root()) {
584
- runInInjectionContext(this.injector, () => {
585
- this.navigationItems = toSignal(this.navigationService.config$, { initialValue: [] });
586
- });
587
- }
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 */ []));
588
544
  }
589
545
  // region type save item property
590
546
  // required to check the type of the item property in the ngFor loop
@@ -613,7 +569,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
613
569
  AsyncPipe
614
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" }]
615
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 }] }] } });
616
-
617
572
  class SidenavComponent {
618
573
  constructor() {
619
574
  this.layoutService = inject(LayoutService);
@@ -668,7 +623,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
668
623
  NgTemplateOutlet
669
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"] }]
670
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 }] }] } });
671
-
672
626
  class ReleaseInfoComponent {
673
627
  constructor() {
674
628
  this.modules = coerceArray(inject(RXAP_RELEASE_INFO_MODULE, { optional: true }));
@@ -689,7 +643,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
689
643
  MatButton,
690
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" }]
691
645
  }] });
692
-
693
646
  class NavigationProgressBarComponent {
694
647
  constructor() {
695
648
  this.router = inject(Router);
@@ -706,7 +659,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
706
659
  MatProgressBar,
707
660
  ], template: "@if (navigating()) {\n<mat-progress-bar color=\"accent\" mode=\"indeterminate\"></mat-progress-bar>\n}\n" }]
708
661
  }] });
709
-
710
662
  class FooterComponent {
711
663
  constructor() {
712
664
  this.footerService = inject(FooterService);
@@ -720,7 +672,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
720
672
  type: Component,
721
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" }]
722
674
  }] });
723
-
724
675
  class HeaderComponent {
725
676
  constructor() {
726
677
  this.color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : /* istanbul ignore next */ []));
@@ -739,7 +690,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
739
690
  CdkPortalOutlet,
740
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" }]
741
692
  }], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
742
-
743
693
  class BaseLayoutComponent {
744
694
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BaseLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
745
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 }); }
@@ -751,7 +701,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
751
701
  FooterComponent,
752
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" }]
753
703
  }] });
754
-
755
704
  class MinimalLayoutComponent {
756
705
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MinimalLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
757
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 }); }
@@ -760,7 +709,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
760
709
  type: Component,
761
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" }]
762
711
  }] });
763
-
764
712
  class LogoService {
765
713
  constructor() {
766
714
  this.config = inject(ConfigService);
@@ -780,7 +728,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
780
728
  type: Injectable,
781
729
  args: [{ providedIn: 'root' }]
782
730
  }] });
783
-
784
731
  class LayoutComponent {
785
732
  constructor() {
786
733
  this.logoService = inject(LogoService);
@@ -813,7 +760,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
813
760
  NavigationProgressBarComponent
814
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" }]
815
762
  }] });
816
-
817
763
  class HeaderDirective {
818
764
  constructor() {
819
765
  this.headerService = inject(HeaderService);
@@ -839,7 +785,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
839
785
  standalone: true,
840
786
  }]
841
787
  }] });
842
-
843
788
  class FooterDirective {
844
789
  constructor() {
845
790
  this.footerService = inject(FooterService);
@@ -865,7 +810,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
865
810
  standalone: true,
866
811
  }]
867
812
  }] });
868
-
869
813
  class UserProfileIconComponent {
870
814
  constructor() {
871
815
  this.extractUsernameFromProfile = inject(EXTRACT_USERNAME_FROM_PROFILE);
@@ -892,8 +836,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
892
836
  MatIconModule,
893
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" }]
894
838
  }], propDecorators: { profile: [{ type: i0.Input, args: [{ isSignal: true, alias: "profile", required: true }] }] } });
895
-
896
- class SidenavToggleButtonComponent {
839
+ let SidenavToggleButtonComponent = class SidenavToggleButtonComponent {
897
840
  constructor() {
898
841
  this.layoutComponentService = inject(LayoutService);
899
842
  this.opened = computed(() => this.layoutComponentService.opened(), ...(ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []));
@@ -903,7 +846,7 @@ class SidenavToggleButtonComponent {
903
846
  }
904
847
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
905
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 }); }
906
- }
849
+ };
907
850
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SidenavToggleButtonComponent, decorators: [{
908
851
  type: Component,
909
852
  args: [{ selector: 'rxap-sidenav-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
@@ -911,7 +854,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
911
854
  MatIconButton,
912
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" }]
913
856
  }] });
914
-
915
857
  class SettingsButtonComponent {
916
858
  constructor() {
917
859
  this.isDevMode = isDevMode();
@@ -974,7 +916,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
974
916
  IconDirective
975
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" }]
976
918
  }] });
977
-
978
919
  class ExternalAppsService {
979
920
  constructor() {
980
921
  this.appFilterList = coerceArray(inject(RXAP_EXTERNAL_APP_FILTER, { optional: true }));
@@ -1065,8 +1006,10 @@ class ExternalAppsService {
1065
1006
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ExternalAppsService, decorators: [{
1066
1007
  type: Injectable
1067
1008
  }] });
1068
-
1069
1009
  class AppsButtonComponent {
1010
+ toggle() {
1011
+ this.isOpen.update(isOpen => !isOpen);
1012
+ }
1070
1013
  constructor() {
1071
1014
  /**
1072
1015
  * The signal that indicates if the app list is open
@@ -1075,11 +1018,6 @@ class AppsButtonComponent {
1075
1018
  this.externalAppsService = inject(ExternalAppsService);
1076
1019
  this.appList = computed(() => this.externalAppsService.activeAppList(), ...(ngDevMode ? [{ debugName: "appList" }] : /* istanbul ignore next */ []));
1077
1020
  this.hasApps = computed(() => this.appList().length > 0, ...(ngDevMode ? [{ debugName: "hasApps" }] : /* istanbul ignore next */ []));
1078
- }
1079
- toggle() {
1080
- this.isOpen.update(isOpen => !isOpen);
1081
- }
1082
- ngOnInit() {
1083
1021
  this.externalAppsService.getAppList();
1084
1022
  }
1085
1023
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AppsButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -1096,8 +1034,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
1096
1034
  MatIcon,
1097
1035
  IconDirective,
1098
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" }]
1099
- }] });
1100
-
1037
+ }], ctorParameters: () => [] });
1101
1038
  class DefaultHeaderService {
1102
1039
  constructor() {
1103
1040
  this.components = toSignal(from(Promise.all(coerceArray(inject(RXAP_DEFAULT_HEADER_ITEM_COMPONENT, { optional: true }))
@@ -1155,7 +1092,6 @@ class DefaultHeaderService {
1155
1092
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DefaultHeaderService, decorators: [{
1156
1093
  type: Injectable
1157
1094
  }] });
1158
-
1159
1095
  class DefaultHeaderComponent {
1160
1096
  constructor() {
1161
1097
  this.layoutComponentService = inject(LayoutService);
@@ -1183,7 +1119,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
1183
1119
  'class': 'grow',
1184
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" }]
1185
1121
  }] });
1186
-
1187
1122
  function provideLayout(...additionalProviders) {
1188
1123
  return [
1189
1124
  LayoutService,
@@ -1280,13 +1215,9 @@ function withUserProfileDataSource(dataSource, useClass = false) {
1280
1215
  };
1281
1216
  }
1282
1217
  }
1283
-
1284
1218
  // region sidenav
1285
1219
  // endregion
1286
-
1287
1220
  /**
1288
1221
  * Generated bundle index. Do not edit.
1289
1222
  */
1290
-
1291
1223
  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 };
1292
- //# sourceMappingURL=rxap-layout.mjs.map