@rxap/layout 19.0.2-dev.1 → 19.0.2-dev.2

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 (224) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +1 -1
  3. package/compodoc/changelog.html +2 -0
  4. package/compodoc/dependencies.html +11 -11
  5. package/compodoc/index.html +1 -1
  6. package/compodoc/js/search/search_index.js +2 -2
  7. package/compodoc/miscellaneous/functions.html +12 -12
  8. package/compodoc/properties.html +1 -1
  9. package/package.json +27 -27
  10. package/docs/documentation.json +0 -13155
  11. package/docs/html/.nojekyll +0 -1
  12. package/docs/html/assets/hierarchy.js +0 -1
  13. package/docs/html/assets/highlight.css +0 -85
  14. package/docs/html/assets/icons.js +0 -18
  15. package/docs/html/assets/icons.svg +0 -1
  16. package/docs/html/assets/main.js +0 -60
  17. package/docs/html/assets/navigation.js +0 -1
  18. package/docs/html/assets/search.js +0 -1
  19. package/docs/html/assets/style.css +0 -1611
  20. package/docs/html/classes/AppsButtonComponent.html +0 -13
  21. package/docs/html/classes/BaseLayoutComponent.html +0 -2
  22. package/docs/html/classes/DefaultHeaderComponent.html +0 -7
  23. package/docs/html/classes/DefaultHeaderService.html +0 -13
  24. package/docs/html/classes/ExternalAppsService.html +0 -19
  25. package/docs/html/classes/FooterComponent.html +0 -4
  26. package/docs/html/classes/FooterDirective.html +0 -11
  27. package/docs/html/classes/FooterService.html +0 -13
  28. package/docs/html/classes/HeaderComponent.html +0 -5
  29. package/docs/html/classes/HeaderDirective.html +0 -11
  30. package/docs/html/classes/HeaderService.html +0 -13
  31. package/docs/html/classes/LayoutComponent.html +0 -5
  32. package/docs/html/classes/LayoutService.html +0 -16
  33. package/docs/html/classes/LogoService.html +0 -6
  34. package/docs/html/classes/MinimalLayoutComponent.html +0 -2
  35. package/docs/html/classes/NavigationComponent.html +0 -16
  36. package/docs/html/classes/NavigationItemComponent.html +0 -24
  37. package/docs/html/classes/NavigationProgressBarComponent.html +0 -4
  38. package/docs/html/classes/NavigationService.html +0 -12
  39. package/docs/html/classes/ReleaseInfoComponent.html +0 -5
  40. package/docs/html/classes/SettingsButtonComponent.html +0 -18
  41. package/docs/html/classes/SidenavComponent.html +0 -15
  42. package/docs/html/classes/SidenavFooterDirective.html +0 -3
  43. package/docs/html/classes/SidenavHeaderDirective.html +0 -3
  44. package/docs/html/classes/SidenavToggleButtonComponent.html +0 -4
  45. package/docs/html/classes/UserProfileIconComponent.html +0 -5
  46. package/docs/html/functions/IsNavigationDividerItem.html +0 -1
  47. package/docs/html/functions/IsNavigationInsertItem.html +0 -1
  48. package/docs/html/functions/IsNavigationItem.html +0 -1
  49. package/docs/html/functions/provideExternalApps.html +0 -1
  50. package/docs/html/functions/provideLayout.html +0 -1
  51. package/docs/html/functions/withDefaultHeaderComponent.html +0 -1
  52. package/docs/html/functions/withDefaultHeaderItems.html +0 -1
  53. package/docs/html/functions/withFooterComponents.html +0 -1
  54. package/docs/html/functions/withHeaderComponents.html +0 -1
  55. package/docs/html/functions/withNavigationConfig.html +0 -1
  56. package/docs/html/functions/withNavigationInserts.html +0 -1
  57. package/docs/html/functions/withReleaseInfoModules.html +0 -1
  58. package/docs/html/functions/withSettingsMenuItems.html +0 -1
  59. package/docs/html/functions/withUserProfileDataSource.html +0 -1
  60. package/docs/html/index.html +0 -111
  61. package/docs/html/interfaces/NavigationDividerItem.html +0 -3
  62. package/docs/html/interfaces/NavigationInsertItem.html +0 -2
  63. package/docs/html/interfaces/NavigationItem.html +0 -6
  64. package/docs/html/interfaces/NavigationStatus.html +0 -2
  65. package/docs/html/interfaces/ReleaseInfoModule.html +0 -4
  66. package/docs/html/interfaces/SettingsMenuItem.html +0 -4
  67. package/docs/html/modules.html +0 -1
  68. package/docs/html/types/DefaultHeaderItemComponent.html +0 -1
  69. package/docs/html/types/ExternalApp.html +0 -1
  70. package/docs/html/types/ExtractUsernameFromProfileFn.html +0 -1
  71. package/docs/html/types/Navigation.html +0 -1
  72. package/docs/html/types/NavigationWithInserts.html +0 -1
  73. package/docs/html/types/SettingsMenuItemComponent.html +0 -1
  74. package/docs/html/variables/EXTRACT_USERNAME_FROM_PROFILE.html +0 -1
  75. package/docs/html/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.html +0 -1
  76. package/docs/html/variables/RXAP_EXTERNAL_APP.html +0 -1
  77. package/docs/html/variables/RXAP_EXTERNAL_APP_FILTER.html +0 -1
  78. package/docs/html/variables/RXAP_FOOTER_COMPONENT.html +0 -1
  79. package/docs/html/variables/RXAP_HEADER_COMPONENT.html +0 -1
  80. package/docs/html/variables/RXAP_LAYOUT_APPS_GRID.html +0 -1
  81. package/docs/html/variables/RXAP_LOGO_CONFIG.html +0 -1
  82. package/docs/html/variables/RXAP_NAVIGATION_CONFIG.html +0 -1
  83. package/docs/html/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +0 -1
  84. package/docs/html/variables/RXAP_RELEASE_INFO_MODULE.html +0 -1
  85. package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM.html +0 -1
  86. package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +0 -1
  87. package/docs/html/variables/RXAP_USER_PROFILE_DATA_SOURCE.html +0 -1
  88. package/docs/markdown/README.md +0 -305
  89. package/docs/markdown/classes/AppsButtonComponent.md +0 -83
  90. package/docs/markdown/classes/BaseLayoutComponent.md +0 -19
  91. package/docs/markdown/classes/DefaultHeaderComponent.md +0 -59
  92. package/docs/markdown/classes/DefaultHeaderService.md +0 -87
  93. package/docs/markdown/classes/ExternalAppsService.md +0 -251
  94. package/docs/markdown/classes/FooterComponent.md +0 -35
  95. package/docs/markdown/classes/FooterDirective.md +0 -65
  96. package/docs/markdown/classes/FooterService.md +0 -87
  97. package/docs/markdown/classes/HeaderComponent.md +0 -43
  98. package/docs/markdown/classes/HeaderDirective.md +0 -65
  99. package/docs/markdown/classes/HeaderService.md +0 -87
  100. package/docs/markdown/classes/LayoutComponent.md +0 -43
  101. package/docs/markdown/classes/LayoutService.md +0 -149
  102. package/docs/markdown/classes/LogoService.md +0 -51
  103. package/docs/markdown/classes/MinimalLayoutComponent.md +0 -19
  104. package/docs/markdown/classes/NavigationComponent.md +0 -139
  105. package/docs/markdown/classes/NavigationItemComponent.md +0 -195
  106. package/docs/markdown/classes/NavigationProgressBarComponent.md +0 -35
  107. package/docs/markdown/classes/NavigationService.md +0 -205
  108. package/docs/markdown/classes/ReleaseInfoComponent.md +0 -47
  109. package/docs/markdown/classes/SettingsButtonComponent.md +0 -229
  110. package/docs/markdown/classes/SidenavComponent.md +0 -135
  111. package/docs/markdown/classes/SidenavFooterDirective.md +0 -35
  112. package/docs/markdown/classes/SidenavHeaderDirective.md +0 -35
  113. package/docs/markdown/classes/SidenavToggleButtonComponent.md +0 -39
  114. package/docs/markdown/classes/UserProfileIconComponent.md +0 -47
  115. package/docs/markdown/functions/IsNavigationDividerItem.md +0 -21
  116. package/docs/markdown/functions/IsNavigationInsertItem.md +0 -21
  117. package/docs/markdown/functions/IsNavigationItem.md +0 -21
  118. package/docs/markdown/functions/provideExternalApps.md +0 -21
  119. package/docs/markdown/functions/provideLayout.md +0 -21
  120. package/docs/markdown/functions/withDefaultHeaderComponent.md +0 -15
  121. package/docs/markdown/functions/withDefaultHeaderItems.md +0 -21
  122. package/docs/markdown/functions/withFooterComponents.md +0 -21
  123. package/docs/markdown/functions/withHeaderComponents.md +0 -21
  124. package/docs/markdown/functions/withNavigationConfig.md +0 -21
  125. package/docs/markdown/functions/withNavigationInserts.md +0 -21
  126. package/docs/markdown/functions/withReleaseInfoModules.md +0 -21
  127. package/docs/markdown/functions/withSettingsMenuItems.md +0 -21
  128. package/docs/markdown/functions/withUserProfileDataSource.md +0 -25
  129. package/docs/markdown/globals.md +0 -86
  130. package/docs/markdown/interfaces/NavigationDividerItem.md +0 -25
  131. package/docs/markdown/interfaces/NavigationInsertItem.md +0 -17
  132. package/docs/markdown/interfaces/NavigationItem.md +0 -61
  133. package/docs/markdown/interfaces/NavigationStatus.md +0 -27
  134. package/docs/markdown/interfaces/ReleaseInfoModule.md +0 -33
  135. package/docs/markdown/interfaces/SettingsMenuItem.md +0 -37
  136. package/docs/markdown/type-aliases/DefaultHeaderItemComponent.md +0 -11
  137. package/docs/markdown/type-aliases/ExternalApp.md +0 -11
  138. package/docs/markdown/type-aliases/ExtractUsernameFromProfileFn.md +0 -25
  139. package/docs/markdown/type-aliases/Navigation.md +0 -11
  140. package/docs/markdown/type-aliases/NavigationWithInserts.md +0 -11
  141. package/docs/markdown/type-aliases/SettingsMenuItemComponent.md +0 -11
  142. package/docs/markdown/variables/EXTRACT_USERNAME_FROM_PROFILE.md +0 -11
  143. package/docs/markdown/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +0 -11
  144. package/docs/markdown/variables/RXAP_EXTERNAL_APP.md +0 -11
  145. package/docs/markdown/variables/RXAP_EXTERNAL_APP_FILTER.md +0 -11
  146. package/docs/markdown/variables/RXAP_FOOTER_COMPONENT.md +0 -11
  147. package/docs/markdown/variables/RXAP_HEADER_COMPONENT.md +0 -11
  148. package/docs/markdown/variables/RXAP_LAYOUT_APPS_GRID.md +0 -11
  149. package/docs/markdown/variables/RXAP_LOGO_CONFIG.md +0 -11
  150. package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG.md +0 -11
  151. package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG_INSERTS.md +0 -11
  152. package/docs/markdown/variables/RXAP_RELEASE_INFO_MODULE.md +0 -11
  153. package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM.md +0 -11
  154. package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +0 -11
  155. package/docs/markdown/variables/RXAP_USER_PROFILE_DATA_SOURCE.md +0 -11
  156. package/docs/wiki/Class.AppsButtonComponent.md +0 -79
  157. package/docs/wiki/Class.BaseLayoutComponent.md +0 -15
  158. package/docs/wiki/Class.DefaultHeaderComponent.md +0 -55
  159. package/docs/wiki/Class.DefaultHeaderService.md +0 -83
  160. package/docs/wiki/Class.ExternalAppsService.md +0 -247
  161. package/docs/wiki/Class.FooterComponent.md +0 -31
  162. package/docs/wiki/Class.FooterDirective.md +0 -61
  163. package/docs/wiki/Class.FooterService.md +0 -83
  164. package/docs/wiki/Class.HeaderComponent.md +0 -39
  165. package/docs/wiki/Class.HeaderDirective.md +0 -61
  166. package/docs/wiki/Class.HeaderService.md +0 -83
  167. package/docs/wiki/Class.LayoutComponent.md +0 -39
  168. package/docs/wiki/Class.LayoutService.md +0 -145
  169. package/docs/wiki/Class.LogoService.md +0 -47
  170. package/docs/wiki/Class.MinimalLayoutComponent.md +0 -15
  171. package/docs/wiki/Class.NavigationComponent.md +0 -135
  172. package/docs/wiki/Class.NavigationItemComponent.md +0 -191
  173. package/docs/wiki/Class.NavigationProgressBarComponent.md +0 -31
  174. package/docs/wiki/Class.NavigationService.md +0 -201
  175. package/docs/wiki/Class.ReleaseInfoComponent.md +0 -43
  176. package/docs/wiki/Class.SettingsButtonComponent.md +0 -225
  177. package/docs/wiki/Class.SidenavComponent.md +0 -131
  178. package/docs/wiki/Class.SidenavFooterDirective.md +0 -31
  179. package/docs/wiki/Class.SidenavHeaderDirective.md +0 -31
  180. package/docs/wiki/Class.SidenavToggleButtonComponent.md +0 -35
  181. package/docs/wiki/Class.UserProfileIconComponent.md +0 -43
  182. package/docs/wiki/Function.IsNavigationDividerItem.md +0 -17
  183. package/docs/wiki/Function.IsNavigationInsertItem.md +0 -17
  184. package/docs/wiki/Function.IsNavigationItem.md +0 -17
  185. package/docs/wiki/Function.provideExternalApps.md +0 -17
  186. package/docs/wiki/Function.provideLayout.md +0 -17
  187. package/docs/wiki/Function.withDefaultHeaderComponent.md +0 -11
  188. package/docs/wiki/Function.withDefaultHeaderItems.md +0 -17
  189. package/docs/wiki/Function.withFooterComponents.md +0 -17
  190. package/docs/wiki/Function.withHeaderComponents.md +0 -17
  191. package/docs/wiki/Function.withNavigationConfig.md +0 -17
  192. package/docs/wiki/Function.withNavigationInserts.md +0 -17
  193. package/docs/wiki/Function.withReleaseInfoModules.md +0 -17
  194. package/docs/wiki/Function.withSettingsMenuItems.md +0 -17
  195. package/docs/wiki/Function.withUserProfileDataSource.md +0 -21
  196. package/docs/wiki/Home.md +0 -301
  197. package/docs/wiki/Interface.NavigationDividerItem.md +0 -21
  198. package/docs/wiki/Interface.NavigationInsertItem.md +0 -13
  199. package/docs/wiki/Interface.NavigationItem.md +0 -57
  200. package/docs/wiki/Interface.NavigationStatus.md +0 -23
  201. package/docs/wiki/Interface.ReleaseInfoModule.md +0 -29
  202. package/docs/wiki/Interface.SettingsMenuItem.md +0 -33
  203. package/docs/wiki/TypeAlias.DefaultHeaderItemComponent.md +0 -7
  204. package/docs/wiki/TypeAlias.ExternalApp.md +0 -7
  205. package/docs/wiki/TypeAlias.ExtractUsernameFromProfileFn.md +0 -21
  206. package/docs/wiki/TypeAlias.Navigation.md +0 -7
  207. package/docs/wiki/TypeAlias.NavigationWithInserts.md +0 -7
  208. package/docs/wiki/TypeAlias.SettingsMenuItemComponent.md +0 -7
  209. package/docs/wiki/Variable.EXTRACT_USERNAME_FROM_PROFILE.md +0 -7
  210. package/docs/wiki/Variable.RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +0 -7
  211. package/docs/wiki/Variable.RXAP_EXTERNAL_APP.md +0 -7
  212. package/docs/wiki/Variable.RXAP_EXTERNAL_APP_FILTER.md +0 -7
  213. package/docs/wiki/Variable.RXAP_FOOTER_COMPONENT.md +0 -7
  214. package/docs/wiki/Variable.RXAP_HEADER_COMPONENT.md +0 -7
  215. package/docs/wiki/Variable.RXAP_LAYOUT_APPS_GRID.md +0 -7
  216. package/docs/wiki/Variable.RXAP_LOGO_CONFIG.md +0 -7
  217. package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG.md +0 -7
  218. package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG_INSERTS.md +0 -7
  219. package/docs/wiki/Variable.RXAP_RELEASE_INFO_MODULE.md +0 -7
  220. package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM.md +0 -7
  221. package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +0 -7
  222. package/docs/wiki/Variable.RXAP_USER_PROFILE_DATA_SOURCE.md +0 -7
  223. package/docs/wiki/_Sidebar.md +0 -82
  224. package/docs/wiki/globals.md +0 -82
@@ -1,305 +0,0 @@
1
- **@rxap/layout**
2
-
3
- ***
4
-
5
- This library provides a set of Angular components and services for creating consistent and configurable application layouts, including headers, footers, side navigation, and content areas. It offers features such as dynamic navigation, external application integration, and customizable themes. The library also includes directives for extending header and footer areas with custom content.
6
-
7
- [![npm version](https://img.shields.io/npm/v/@rxap/layout?style=flat-square)](https://www.npmjs.com/package/@rxap/layout)
8
- [![commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](https://commitizen.github.io/cz-cli/)
9
- [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
10
- ![Libraries.io dependency status for latest release, scoped npm package](https://img.shields.io/librariesio/release/npm/@rxap/layout)
11
- ![npm](https://img.shields.io/npm/dm/@rxap/layout)
12
- ![NPM](https://img.shields.io/npm/l/@rxap/layout)
13
-
14
- - [Installation](#installation)
15
- - [Get started](#get-started)
16
- - [Generators](#generators)
17
- - [init](#init)
18
-
19
- # Installation
20
-
21
- **Add the package to your workspace:**
22
- ```bash
23
- yarn add @rxap/layout
24
- ```
25
- **Install peer dependencies:**
26
- ```bash
27
- yarn add @angular/animations@^19.1.3 @angular/cdk@^19.1.1 @angular/common@^19.1.3 @angular/core@^19.1.3 @angular/material@^19.1.1 @angular/router@^19.1.3 @rxap/browser-utilities@^1.1.10 @rxap/config@^19.0.1 @rxap/data-source@^19.0.1 @rxap/environment@^19.0.1 @rxap/material-directives@^19.0.1 @rxap/ngx-pub-sub@^19.0.1 @rxap/ngx-theme@^19.0.1 @rxap/pattern@^1.1.11 @rxap/utilities@^16.4.2 rxjs@^7.8.1
28
- ```
29
- **Execute the init generator:**
30
- ```bash
31
- yarn nx g @rxap/layout:init
32
- ```
33
- # Get started
34
-
35
- ## Layout
36
-
37
- Create a new file `layout.routes.ts` in the `app` folder. This file will contain all child routes that should be loaded within the layout component.
38
-
39
- ```typescript
40
- import { LayoutComponent, provideLayout } from '@rxap/layout';
41
-
42
- const ROUTES: Route[] = [
43
- {
44
- path: '',
45
- component: LayoutComponent,
46
- children: [ ],
47
- providers: [ provideLayout() ],
48
- },
49
- ];
50
- ```
51
-
52
- Import the layout routes into the `app.routes.ts` file.
53
-
54
- ```typescript
55
- export const appRoutes: Route[] = [
56
- {
57
- path: '',
58
- loadChildren: () => import('./layout.routes'),
59
- },
60
- {
61
- path: '**',
62
- redirectTo: '',
63
- },
64
- ];
65
- ```
66
-
67
- ## Navigation
68
-
69
- Create a new file `app.navigation.ts` in the `app` folder. This file will contain the navigation items that should be displayed in the layout component.
70
-
71
- ```typescript
72
- export const APP_NAVIGATION: () => NavigationWithInserts = () => [];
73
- ```
74
-
75
- Provide the app navigation in the layout routes:
76
-
77
- ```typescript
78
- import {
79
- LayoutComponent,
80
- ProvideNavigationConfig,
81
- withNavigationService,
82
- } from '@rxap/layout';
83
- import { APP_NAVIGATION } from './app.navigation';
84
-
85
- const ROUTES: Route[] = [
86
- {
87
- path: '',
88
- component: LayoutComponent,
89
- children: [ ],
90
- providers: [
91
- provideLayout(
92
- withNavigationConfig(APP_NAVIGATION),
93
- ),
94
- ],
95
- },
96
- ];
97
- ```
98
-
99
- ### Navigation Item
100
-
101
- A navigation item represents a single item in the navigation sidebar. Each item has the required properties `label` and `routerLink`. The `label` property is the text that should be displayed in the sidebar. The `routerLink` property is the path that should be navigated to when the item is clicked.
102
-
103
- ```typescript
104
- const item: NavigationItem = {
105
- label: 'Home',
106
- routerLink: '/',
107
- };
108
- ```
109
-
110
- With the `children` property, a navigation item can have child items. The child items are displayed in a dropdown menu when the parent item is clicked.
111
-
112
- ```typescript
113
- const item: NavigationItem = {
114
- label: 'Home',
115
- routerLink: '/',
116
- children: [
117
- {
118
- label: 'Child',
119
- routerLink: '/child',
120
- },
121
- ],
122
- };
123
- ```
124
-
125
- #### Icon Property
126
-
127
- With the `icon` property, the item can be assigned an icon. The icon is displayed to the left of the label. If the navigation sidebar is collapsed, only the icon is displayed.
128
-
129
- ```typescript
130
- const item: NavigationItem = {
131
- label: 'Home',
132
- routerLink: '/',
133
- icon: { icon: 'home' },
134
- };
135
- ```
136
-
137
- #### Status Property
138
-
139
- With the `status` property, a injectable token, class or function can be assigned to the item. The object must have the method `isVisible` which returns a boolean. If the method returns `false`, the item is not displayed in the navigation sidebar.
140
-
141
- ```typescript
142
- @Injectable()
143
- class SetNavStatus {
144
- isVisible(item: NavigationItem): boolean {
145
- return false;
146
- }
147
- }
148
-
149
- const item: NavigationItem = {
150
- label: 'Home',
151
- routerLink: '/',
152
- status: SetNavStatus,
153
- };
154
- ```
155
-
156
- ### Navigation Divider Item
157
-
158
- A navigation divider item is a horizontal line that separates navigation items. It is used to group items in the navigation sidebar. It is required to set the property `divider` to `true`. With the optional property `title`, a title can be defined that is displayed below the divider.
159
-
160
- ```typescript
161
- const item: NavigationDividerItem = {
162
- divider: true,
163
- title: 'Group',
164
- };
165
- ```
166
-
167
- ### Navigation Insert Item (WIP)
168
-
169
- A navigation insert item is a placeholder for a navigation item that should be inserted into the navigation sidebar.
170
- The item is used to define where a dynamic navigation should be inserted. The `insert` property is the key that is used
171
- identify the insert item. The `insert` property is required.
172
-
173
- ```typescript
174
- const item: NavigationInsertItem = {
175
- insert: 'insert-key',
176
- };
177
- ```
178
-
179
- ## Header
180
-
181
- The header is composed of the components from left to right: AppsButtonComponent, SettingsButtonComponent and UserProfileIconComponent.
182
-
183
- ### Apps Button
184
-
185
- The apps buttons allow for a navigation between different applications. To configure the apps button, the config path
186
- `navigation.apps` must be set with an array of object with the property `title` and ether `routerLink` or `href`. If the
187
- property `href` is set, the link is opened in a new tab. If the property `routerLink` the router is used to navigate.
188
-
189
- ```json
190
- {
191
- "navigation": {
192
- "apps": [
193
- {
194
- "title": "App 1",
195
- "routerLink": ["/", "app1"]
196
- },
197
- {
198
- "title": "App 2",
199
- "href": "https://app2.com"
200
- }
201
- ]
202
- }
203
- }
204
- ```
205
-
206
- > If the application is in production mode, the current `localId` is appended to the url defined in the `href` property.
207
-
208
- ### Settings Button Customization (WIP)
209
-
210
- It is possible to add custom items to the settings menu. This custom item can be a component or a configuration object.
211
-
212
- >
213
-
214
- #### Configuration Object
215
-
216
- The action function is called when the item is clicked. It is possible to use the `inject` function to inject services.
217
-
218
- ```typescript
219
- import {
220
- LayoutComponent,
221
- ProvideNavigationConfig,
222
- withNavigationService,
223
- } from '@rxap/layout';
224
- import { APP_NAVIGATION } from './app.navigation';
225
-
226
- const ROUTES: Route[] = [
227
- {
228
- path: '',
229
- component: LayoutComponent,
230
- children: [ ],
231
- providers: [
232
- provideLayout(
233
- withNavigationConfig(APP_NAVIGATION),
234
- withSettingsMenuItems(
235
- {
236
- label: 'Custom Item',
237
- icon: { icon: 'home' },
238
- action: () => inject(MatDialog).open(MyCustomDialogComponent),
239
- }
240
- )
241
- ),
242
- ],
243
- },
244
- ];
245
- ```
246
-
247
- #### Component
248
-
249
- If a component is provided ensure the component template uses the `mat-menu-item` component:
250
-
251
- ```angular17html
252
- <button mat-menu-item>My Custom Item</button>
253
- ```
254
-
255
- ```typescript
256
- import {
257
- LayoutComponent,
258
- ProvideNavigationConfig,
259
- withNavigationService,
260
- } from '@rxap/layout';
261
- import { APP_NAVIGATION } from './app.navigation';
262
-
263
- const ROUTES: Route[] = [
264
- {
265
- path: '',
266
- component: LayoutComponent,
267
- children: [ ],
268
- providers: [
269
- provideLayout(
270
- withNavigationConfig(APP_NAVIGATION),
271
- withSettingsMenuItems(
272
- MyCustomMenuItemComponent
273
- )
274
- ),
275
- ],
276
- },
277
- ];
278
- ```
279
-
280
- ### User Profile (WIP)
281
-
282
- ...
283
-
284
- ## Dynamic Footer
285
-
286
- With the directive `rxapFooter` it is possible to define a dynamic footer. When the directive is used on a `<ng-template>` in a component,
287
- that is rendered in the layout component, the template is rendered in the footer of the layout component.
288
-
289
- ```angular17html
290
- <mat-card>
291
- ...
292
- </mat-card>
293
- <ng-template rxapFooter>
294
- <button mat-button>A button in the layout footer</button>
295
- </ng-template>
296
- ```
297
-
298
- # Generators
299
-
300
- ## init
301
- > Initialize the package in the workspace
302
-
303
- ```bash
304
- nx g @rxap/layout:init
305
- ```
@@ -1,83 +0,0 @@
1
- [**@rxap/layout**](../README.md)
2
-
3
- ***
4
-
5
- [@rxap/layout](../globals.md) / AppsButtonComponent
6
-
7
- # Class: AppsButtonComponent
8
-
9
- Defined in: [default-header/apps-button/apps-button.component.ts:35](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/apps-button/apps-button.component.ts#L35)
10
-
11
- ## Implements
12
-
13
- - `OnInit`
14
-
15
- ## Constructors
16
-
17
- ### new AppsButtonComponent()
18
-
19
- > **new AppsButtonComponent**(): [`AppsButtonComponent`](AppsButtonComponent.md)
20
-
21
- #### Returns
22
-
23
- [`AppsButtonComponent`](AppsButtonComponent.md)
24
-
25
- ## Properties
26
-
27
- ### appList
28
-
29
- > `readonly` **appList**: `Signal`\<`AppsNavigationConfig`[]\>
30
-
31
- Defined in: [default-header/apps-button/apps-button.component.ts:42](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/apps-button/apps-button.component.ts#L42)
32
-
33
- ***
34
-
35
- ### hasApps
36
-
37
- > `readonly` **hasApps**: `Signal`\<`boolean`\>
38
-
39
- Defined in: [default-header/apps-button/apps-button.component.ts:43](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/apps-button/apps-button.component.ts#L43)
40
-
41
- ***
42
-
43
- ### isOpen
44
-
45
- > `readonly` **isOpen**: `WritableSignal`\<`boolean`\>
46
-
47
- Defined in: [default-header/apps-button/apps-button.component.ts:39](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/apps-button/apps-button.component.ts#L39)
48
-
49
- The signal that indicates if the app list is open
50
-
51
- ## Methods
52
-
53
- ### ngOnInit()
54
-
55
- > **ngOnInit**(): `void`
56
-
57
- Defined in: [default-header/apps-button/apps-button.component.ts:49](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/apps-button/apps-button.component.ts#L49)
58
-
59
- A callback method that is invoked immediately after the
60
- default change detector has checked the directive's
61
- data-bound properties for the first time,
62
- and before any of the view or content children have been checked.
63
- It is invoked only once when the directive is instantiated.
64
-
65
- #### Returns
66
-
67
- `void`
68
-
69
- #### Implementation of
70
-
71
- `OnInit.ngOnInit`
72
-
73
- ***
74
-
75
- ### toggle()
76
-
77
- > **toggle**(): `void`
78
-
79
- Defined in: [default-header/apps-button/apps-button.component.ts:45](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/apps-button/apps-button.component.ts#L45)
80
-
81
- #### Returns
82
-
83
- `void`
@@ -1,19 +0,0 @@
1
- [**@rxap/layout**](../README.md)
2
-
3
- ***
4
-
5
- [@rxap/layout](../globals.md) / BaseLayoutComponent
6
-
7
- # Class: BaseLayoutComponent
8
-
9
- Defined in: [base-layout/base-layout.component.ts:18](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/base-layout/base-layout.component.ts#L18)
10
-
11
- ## Constructors
12
-
13
- ### new BaseLayoutComponent()
14
-
15
- > **new BaseLayoutComponent**(): [`BaseLayoutComponent`](BaseLayoutComponent.md)
16
-
17
- #### Returns
18
-
19
- [`BaseLayoutComponent`](BaseLayoutComponent.md)
@@ -1,59 +0,0 @@
1
- [**@rxap/layout**](../README.md)
2
-
3
- ***
4
-
5
- [@rxap/layout](../globals.md) / DefaultHeaderComponent
6
-
7
- # Class: DefaultHeaderComponent
8
-
9
- Defined in: [default-header/default-header.component.ts:36](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.component.ts#L36)
10
-
11
- ## Constructors
12
-
13
- ### new DefaultHeaderComponent()
14
-
15
- > **new DefaultHeaderComponent**(): [`DefaultHeaderComponent`](DefaultHeaderComponent.md)
16
-
17
- #### Returns
18
-
19
- [`DefaultHeaderComponent`](DefaultHeaderComponent.md)
20
-
21
- ## Properties
22
-
23
- ### collapsable
24
-
25
- > `readonly` **collapsable**: `Signal`\<`boolean`\>
26
-
27
- Defined in: [default-header/default-header.component.ts:40](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.component.ts#L40)
28
-
29
- ***
30
-
31
- ### hasPortals
32
-
33
- > `readonly` **hasPortals**: `Signal`\<`boolean`\>
34
-
35
- Defined in: [default-header/default-header.component.ts:47](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.component.ts#L47)
36
-
37
- ***
38
-
39
- ### opened
40
-
41
- > `readonly` **opened**: `Signal`\<`boolean`\>
42
-
43
- Defined in: [default-header/default-header.component.ts:41](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.component.ts#L41)
44
-
45
- ***
46
-
47
- ### portals
48
-
49
- > `readonly` **portals**: `Signal`\<`Portal`\<`unknown`\>[]\>
50
-
51
- Defined in: [default-header/default-header.component.ts:46](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.component.ts#L46)
52
-
53
- ***
54
-
55
- ### profile
56
-
57
- > `readonly` **profile**: `Signal`\<`unknown`\>
58
-
59
- Defined in: [default-header/default-header.component.ts:42](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.component.ts#L42)
@@ -1,87 +0,0 @@
1
- [**@rxap/layout**](../README.md)
2
-
3
- ***
4
-
5
- [@rxap/layout](../globals.md) / DefaultHeaderService
6
-
7
- # Class: DefaultHeaderService
8
-
9
- Defined in: [default-header/default-header.service.ts:21](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.service.ts#L21)
10
-
11
- ## Constructors
12
-
13
- ### new DefaultHeaderService()
14
-
15
- > **new DefaultHeaderService**(): [`DefaultHeaderService`](DefaultHeaderService.md)
16
-
17
- #### Returns
18
-
19
- [`DefaultHeaderService`](DefaultHeaderService.md)
20
-
21
- ## Properties
22
-
23
- ### portalCount
24
-
25
- > `readonly` **portalCount**: `Signal`\<`number`\>
26
-
27
- Defined in: [default-header/default-header.service.ts:42](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.service.ts#L42)
28
-
29
- Computes the count of portals.
30
-
31
- #### Returns
32
-
33
- The count of portals.
34
-
35
- ***
36
-
37
- ### portals
38
-
39
- > `readonly` **portals**: `Signal`\<`Portal`\<`unknown`\>[]\>
40
-
41
- Defined in: [default-header/default-header.service.ts:34](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.service.ts#L34)
42
-
43
- Represents an array of `Portal` objects with unknown type.
44
-
45
- ## Methods
46
-
47
- ### pushPortal()
48
-
49
- > **pushPortal**(`portal`): `void`
50
-
51
- Defined in: [default-header/default-header.service.ts:52](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.service.ts#L52)
52
-
53
- Adds a portal to the list of portals.
54
-
55
- #### Parameters
56
-
57
- ##### portal
58
-
59
- `Portal`\<`unknown`\>
60
-
61
- The portal to be added.
62
-
63
- #### Returns
64
-
65
- `void`
66
-
67
- ***
68
-
69
- ### removePortal()
70
-
71
- > **removePortal**(`portal`): `void`
72
-
73
- Defined in: [default-header/default-header.service.ts:68](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/layout/src/lib/default-header/default-header.service.ts#L68)
74
-
75
- Removes a portal from the list of portals.
76
-
77
- #### Parameters
78
-
79
- ##### portal
80
-
81
- `Portal`\<`unknown`\>
82
-
83
- The portal to be removed.
84
-
85
- #### Returns
86
-
87
- `void`