@rxap/layout 19.0.1-dev.11 → 19.0.1-dev.12
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.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/compodoc/changelog.html +2 -0
- package/compodoc/dependencies.html +11 -11
- package/compodoc/index.html +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +1724 -3421
- package/docs/html/assets/hierarchy.js +1 -0
- package/docs/html/assets/icons.js +18 -0
- package/docs/html/assets/icons.svg +1 -0
- package/docs/{assets → html/assets}/main.js +5 -4
- package/docs/html/assets/navigation.js +1 -0
- package/docs/html/assets/search.js +1 -0
- package/docs/html/assets/style.css +1611 -0
- package/docs/html/classes/AppsButtonComponent.html +13 -0
- package/docs/html/classes/BaseLayoutComponent.html +2 -0
- package/docs/html/classes/DefaultHeaderComponent.html +7 -0
- package/docs/html/classes/DefaultHeaderService.html +13 -0
- package/docs/html/classes/ExternalAppsService.html +19 -0
- package/docs/html/classes/FooterComponent.html +4 -0
- package/docs/html/classes/FooterDirective.html +11 -0
- package/docs/html/classes/FooterService.html +13 -0
- package/docs/html/classes/HeaderComponent.html +5 -0
- package/docs/html/classes/HeaderDirective.html +11 -0
- package/docs/html/classes/HeaderService.html +13 -0
- package/docs/html/classes/LayoutComponent.html +5 -0
- package/docs/html/classes/LayoutService.html +16 -0
- package/docs/html/classes/LogoService.html +6 -0
- package/docs/html/classes/MinimalLayoutComponent.html +2 -0
- package/docs/html/classes/NavigationComponent.html +16 -0
- package/docs/html/classes/NavigationItemComponent.html +24 -0
- package/docs/html/classes/NavigationProgressBarComponent.html +4 -0
- package/docs/html/classes/NavigationService.html +12 -0
- package/docs/html/classes/ReleaseInfoComponent.html +5 -0
- package/docs/html/classes/SettingsButtonComponent.html +18 -0
- package/docs/html/classes/SidenavComponent.html +15 -0
- package/docs/html/classes/SidenavFooterDirective.html +3 -0
- package/docs/html/classes/SidenavHeaderDirective.html +3 -0
- package/docs/html/classes/SidenavToggleButtonComponent.html +4 -0
- package/docs/html/classes/UserProfileIconComponent.html +5 -0
- package/docs/html/functions/IsNavigationDividerItem.html +1 -0
- package/docs/html/functions/IsNavigationInsertItem.html +1 -0
- package/docs/html/functions/IsNavigationItem.html +1 -0
- package/docs/html/functions/provideExternalApps.html +1 -0
- package/docs/html/functions/provideLayout.html +1 -0
- package/docs/html/functions/withDefaultHeaderComponent.html +1 -0
- package/docs/html/functions/withDefaultHeaderItems.html +1 -0
- package/docs/html/functions/withFooterComponents.html +1 -0
- package/docs/html/functions/withHeaderComponents.html +1 -0
- package/docs/html/functions/withNavigationConfig.html +1 -0
- package/docs/html/functions/withNavigationInserts.html +1 -0
- package/docs/html/functions/withReleaseInfoModules.html +1 -0
- package/docs/html/functions/withSettingsMenuItems.html +1 -0
- package/docs/html/functions/withUserProfileDataSource.html +1 -0
- package/docs/html/index.html +106 -0
- package/docs/html/interfaces/NavigationDividerItem.html +3 -0
- package/docs/html/interfaces/NavigationInsertItem.html +2 -0
- package/docs/html/interfaces/NavigationItem.html +6 -0
- package/docs/html/interfaces/NavigationStatus.html +2 -0
- package/docs/html/interfaces/ReleaseInfoModule.html +4 -0
- package/docs/html/interfaces/SettingsMenuItem.html +4 -0
- package/docs/html/modules.html +1 -0
- package/docs/html/types/DefaultHeaderItemComponent.html +1 -0
- package/docs/html/types/ExternalApp.html +1 -0
- package/docs/html/types/ExtractUsernameFromProfileFn.html +1 -0
- package/docs/html/types/Navigation.html +1 -0
- package/docs/html/types/NavigationWithInserts.html +1 -0
- package/docs/html/types/SettingsMenuItemComponent.html +1 -0
- package/docs/html/variables/EXTRACT_USERNAME_FROM_PROFILE.html +1 -0
- package/docs/html/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.html +1 -0
- package/docs/html/variables/RXAP_EXTERNAL_APP.html +1 -0
- package/docs/html/variables/RXAP_EXTERNAL_APP_FILTER.html +1 -0
- package/docs/html/variables/RXAP_FOOTER_COMPONENT.html +1 -0
- package/docs/html/variables/RXAP_HEADER_COMPONENT.html +1 -0
- package/docs/html/variables/RXAP_LAYOUT_APPS_GRID.html +1 -0
- package/docs/html/variables/RXAP_LOGO_CONFIG.html +1 -0
- package/docs/html/variables/RXAP_NAVIGATION_CONFIG.html +1 -0
- package/docs/html/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +1 -0
- package/docs/html/variables/RXAP_RELEASE_INFO_MODULE.html +1 -0
- package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM.html +1 -0
- package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +1 -0
- package/docs/html/variables/RXAP_USER_PROFILE_DATA_SOURCE.html +1 -0
- package/docs/markdown/README.md +304 -0
- package/docs/markdown/classes/AppsButtonComponent.md +83 -0
- package/docs/markdown/classes/BaseLayoutComponent.md +19 -0
- package/docs/markdown/classes/DefaultHeaderComponent.md +59 -0
- package/docs/markdown/classes/DefaultHeaderService.md +87 -0
- package/docs/markdown/classes/ExternalAppsService.md +251 -0
- package/docs/markdown/classes/FooterComponent.md +35 -0
- package/docs/markdown/classes/FooterDirective.md +65 -0
- package/docs/markdown/classes/FooterService.md +87 -0
- package/docs/markdown/classes/HeaderComponent.md +43 -0
- package/docs/markdown/classes/HeaderDirective.md +65 -0
- package/docs/markdown/classes/HeaderService.md +87 -0
- package/docs/markdown/classes/LayoutComponent.md +43 -0
- package/docs/markdown/classes/LayoutService.md +149 -0
- package/docs/markdown/classes/LogoService.md +51 -0
- package/docs/markdown/classes/MinimalLayoutComponent.md +19 -0
- package/docs/markdown/classes/NavigationComponent.md +139 -0
- package/docs/markdown/classes/NavigationItemComponent.md +195 -0
- package/docs/markdown/classes/NavigationProgressBarComponent.md +35 -0
- package/docs/markdown/classes/NavigationService.md +205 -0
- package/docs/markdown/classes/ReleaseInfoComponent.md +47 -0
- package/docs/markdown/classes/SettingsButtonComponent.md +229 -0
- package/docs/markdown/classes/SidenavComponent.md +135 -0
- package/docs/markdown/classes/SidenavFooterDirective.md +35 -0
- package/docs/markdown/classes/SidenavHeaderDirective.md +35 -0
- package/docs/markdown/classes/SidenavToggleButtonComponent.md +39 -0
- package/docs/markdown/classes/UserProfileIconComponent.md +47 -0
- package/docs/markdown/functions/IsNavigationDividerItem.md +21 -0
- package/docs/markdown/functions/IsNavigationInsertItem.md +21 -0
- package/docs/markdown/functions/IsNavigationItem.md +21 -0
- package/docs/markdown/functions/provideExternalApps.md +21 -0
- package/docs/markdown/functions/provideLayout.md +21 -0
- package/docs/markdown/functions/withDefaultHeaderComponent.md +15 -0
- package/docs/markdown/functions/withDefaultHeaderItems.md +21 -0
- package/docs/markdown/functions/withFooterComponents.md +21 -0
- package/docs/markdown/functions/withHeaderComponents.md +21 -0
- package/docs/markdown/functions/withNavigationConfig.md +21 -0
- package/docs/markdown/functions/withNavigationInserts.md +21 -0
- package/docs/markdown/functions/withReleaseInfoModules.md +21 -0
- package/docs/markdown/functions/withSettingsMenuItems.md +21 -0
- package/docs/markdown/functions/withUserProfileDataSource.md +25 -0
- package/docs/markdown/globals.md +86 -0
- package/docs/markdown/interfaces/NavigationDividerItem.md +25 -0
- package/docs/markdown/interfaces/NavigationInsertItem.md +17 -0
- package/docs/markdown/interfaces/NavigationItem.md +61 -0
- package/docs/markdown/interfaces/NavigationStatus.md +27 -0
- package/docs/markdown/interfaces/ReleaseInfoModule.md +33 -0
- package/docs/markdown/interfaces/SettingsMenuItem.md +37 -0
- package/docs/markdown/type-aliases/DefaultHeaderItemComponent.md +11 -0
- package/docs/markdown/type-aliases/ExternalApp.md +11 -0
- package/docs/markdown/type-aliases/ExtractUsernameFromProfileFn.md +25 -0
- package/docs/markdown/type-aliases/Navigation.md +11 -0
- package/docs/markdown/type-aliases/NavigationWithInserts.md +11 -0
- package/docs/markdown/type-aliases/SettingsMenuItemComponent.md +11 -0
- package/docs/markdown/variables/EXTRACT_USERNAME_FROM_PROFILE.md +11 -0
- package/docs/markdown/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +11 -0
- package/docs/markdown/variables/RXAP_EXTERNAL_APP.md +11 -0
- package/docs/markdown/variables/RXAP_EXTERNAL_APP_FILTER.md +11 -0
- package/docs/markdown/variables/RXAP_FOOTER_COMPONENT.md +11 -0
- package/docs/markdown/variables/RXAP_HEADER_COMPONENT.md +11 -0
- package/docs/markdown/variables/RXAP_LAYOUT_APPS_GRID.md +11 -0
- package/docs/markdown/variables/RXAP_LOGO_CONFIG.md +11 -0
- package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG.md +11 -0
- package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG_INSERTS.md +11 -0
- package/docs/markdown/variables/RXAP_RELEASE_INFO_MODULE.md +11 -0
- package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM.md +11 -0
- package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +11 -0
- package/docs/markdown/variables/RXAP_USER_PROFILE_DATA_SOURCE.md +11 -0
- package/docs/wiki/Class.AppsButtonComponent.md +79 -0
- package/docs/wiki/Class.BaseLayoutComponent.md +15 -0
- package/docs/wiki/Class.DefaultHeaderComponent.md +55 -0
- package/docs/wiki/Class.DefaultHeaderService.md +83 -0
- package/docs/wiki/Class.ExternalAppsService.md +247 -0
- package/docs/wiki/Class.FooterComponent.md +31 -0
- package/docs/wiki/Class.FooterDirective.md +61 -0
- package/docs/wiki/Class.FooterService.md +83 -0
- package/docs/wiki/Class.HeaderComponent.md +39 -0
- package/docs/wiki/Class.HeaderDirective.md +61 -0
- package/docs/wiki/Class.HeaderService.md +83 -0
- package/docs/wiki/Class.LayoutComponent.md +39 -0
- package/docs/wiki/Class.LayoutService.md +145 -0
- package/docs/wiki/Class.LogoService.md +47 -0
- package/docs/wiki/Class.MinimalLayoutComponent.md +15 -0
- package/docs/wiki/Class.NavigationComponent.md +135 -0
- package/docs/wiki/Class.NavigationItemComponent.md +191 -0
- package/docs/wiki/Class.NavigationProgressBarComponent.md +31 -0
- package/docs/wiki/Class.NavigationService.md +201 -0
- package/docs/wiki/Class.ReleaseInfoComponent.md +43 -0
- package/docs/wiki/Class.SettingsButtonComponent.md +225 -0
- package/docs/wiki/Class.SidenavComponent.md +131 -0
- package/docs/wiki/Class.SidenavFooterDirective.md +31 -0
- package/docs/wiki/Class.SidenavHeaderDirective.md +31 -0
- package/docs/wiki/Class.SidenavToggleButtonComponent.md +35 -0
- package/docs/wiki/Class.UserProfileIconComponent.md +43 -0
- package/docs/wiki/Function.IsNavigationDividerItem.md +17 -0
- package/docs/wiki/Function.IsNavigationInsertItem.md +17 -0
- package/docs/wiki/Function.IsNavigationItem.md +17 -0
- package/docs/wiki/Function.provideExternalApps.md +17 -0
- package/docs/wiki/Function.provideLayout.md +17 -0
- package/docs/wiki/Function.withDefaultHeaderComponent.md +11 -0
- package/docs/wiki/Function.withDefaultHeaderItems.md +17 -0
- package/docs/wiki/Function.withFooterComponents.md +17 -0
- package/docs/wiki/Function.withHeaderComponents.md +17 -0
- package/docs/wiki/Function.withNavigationConfig.md +17 -0
- package/docs/wiki/Function.withNavigationInserts.md +17 -0
- package/docs/wiki/Function.withReleaseInfoModules.md +17 -0
- package/docs/wiki/Function.withSettingsMenuItems.md +17 -0
- package/docs/wiki/Function.withUserProfileDataSource.md +21 -0
- package/docs/wiki/Home.md +300 -0
- package/docs/wiki/Interface.NavigationDividerItem.md +21 -0
- package/docs/wiki/Interface.NavigationInsertItem.md +13 -0
- package/docs/wiki/Interface.NavigationItem.md +57 -0
- package/docs/wiki/Interface.NavigationStatus.md +23 -0
- package/docs/wiki/Interface.ReleaseInfoModule.md +29 -0
- package/docs/wiki/Interface.SettingsMenuItem.md +33 -0
- package/docs/wiki/TypeAlias.DefaultHeaderItemComponent.md +7 -0
- package/docs/wiki/TypeAlias.ExternalApp.md +7 -0
- package/docs/wiki/TypeAlias.ExtractUsernameFromProfileFn.md +21 -0
- package/docs/wiki/TypeAlias.Navigation.md +7 -0
- package/docs/wiki/TypeAlias.NavigationWithInserts.md +7 -0
- package/docs/wiki/TypeAlias.SettingsMenuItemComponent.md +7 -0
- package/docs/wiki/Variable.EXTRACT_USERNAME_FROM_PROFILE.md +7 -0
- package/docs/wiki/Variable.RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +7 -0
- package/docs/wiki/Variable.RXAP_EXTERNAL_APP.md +7 -0
- package/docs/wiki/Variable.RXAP_EXTERNAL_APP_FILTER.md +7 -0
- package/docs/wiki/Variable.RXAP_FOOTER_COMPONENT.md +7 -0
- package/docs/wiki/Variable.RXAP_HEADER_COMPONENT.md +7 -0
- package/docs/wiki/Variable.RXAP_LAYOUT_APPS_GRID.md +7 -0
- package/docs/wiki/Variable.RXAP_LOGO_CONFIG.md +7 -0
- package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG.md +7 -0
- package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG_INSERTS.md +7 -0
- package/docs/wiki/Variable.RXAP_RELEASE_INFO_MODULE.md +7 -0
- package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM.md +7 -0
- package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +7 -0
- package/docs/wiki/Variable.RXAP_USER_PROFILE_DATA_SOURCE.md +7 -0
- package/docs/wiki/_Sidebar.md +82 -0
- package/docs/wiki/globals.md +82 -0
- package/package.json +27 -27
- package/docs/assets/icons.js +0 -15
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1412
- package/docs/classes/AppsButtonComponent.html +0 -9
- package/docs/classes/BaseLayoutComponent.html +0 -2
- package/docs/classes/DefaultHeaderComponent.html +0 -9
- package/docs/classes/DefaultHeaderService.html +0 -16
- package/docs/classes/ExternalAppsService.html +0 -19
- package/docs/classes/FooterComponent.html +0 -5
- package/docs/classes/FooterDirective.html +0 -8
- package/docs/classes/FooterService.html +0 -14
- package/docs/classes/HeaderComponent.html +0 -6
- package/docs/classes/HeaderDirective.html +0 -8
- package/docs/classes/HeaderService.html +0 -14
- package/docs/classes/LayoutComponent.html +0 -6
- package/docs/classes/LayoutService.html +0 -20
- package/docs/classes/LogoService.html +0 -7
- package/docs/classes/MinimalLayoutComponent.html +0 -2
- package/docs/classes/NavigationComponent.html +0 -14
- package/docs/classes/NavigationItemComponent.html +0 -19
- package/docs/classes/NavigationProgressBarComponent.html +0 -4
- package/docs/classes/NavigationService.html +0 -17
- package/docs/classes/ReleaseInfoComponent.html +0 -6
- package/docs/classes/SettingsButtonComponent.html +0 -25
- package/docs/classes/SidenavComponent.html +0 -17
- package/docs/classes/SidenavFooterDirective.html +0 -3
- package/docs/classes/SidenavHeaderDirective.html +0 -3
- package/docs/classes/SidenavToggleButtonComponent.html +0 -5
- package/docs/classes/UserProfileIconComponent.html +0 -7
- package/docs/functions/IsNavigationDividerItem.html +0 -1
- package/docs/functions/IsNavigationInsertItem.html +0 -1
- package/docs/functions/IsNavigationItem.html +0 -1
- package/docs/functions/provideExternalApps.html +0 -1
- package/docs/functions/provideLayout.html +0 -1
- package/docs/functions/withDefaultHeaderComponent.html +0 -1
- package/docs/functions/withDefaultHeaderItems.html +0 -1
- package/docs/functions/withFooterComponents.html +0 -1
- package/docs/functions/withHeaderComponents.html +0 -1
- package/docs/functions/withNavigationConfig.html +0 -1
- package/docs/functions/withNavigationInserts.html +0 -1
- package/docs/functions/withReleaseInfoModules.html +0 -1
- package/docs/functions/withSettingsMenuItems.html +0 -1
- package/docs/functions/withUserProfileDataSource.html +0 -1
- package/docs/index.html +0 -88
- package/docs/interfaces/NavigationDividerItem.html +0 -3
- package/docs/interfaces/NavigationInsertItem.html +0 -2
- package/docs/interfaces/NavigationItem.html +0 -6
- package/docs/interfaces/NavigationStatus.html +0 -2
- package/docs/interfaces/ReleaseInfoModule.html +0 -4
- package/docs/interfaces/SettingsMenuItem.html +0 -4
- package/docs/modules.html +0 -67
- package/docs/types/DefaultHeaderItemComponent.html +0 -1
- package/docs/types/ExternalApp.html +0 -1
- package/docs/types/ExtractUsernameFromProfileFn.html +0 -1
- package/docs/types/Navigation.html +0 -1
- package/docs/types/NavigationWithInserts.html +0 -1
- package/docs/types/SettingsMenuItemComponent.html +0 -1
- package/docs/variables/EXTRACT_USERNAME_FROM_PROFILE.html +0 -1
- package/docs/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.html +0 -1
- package/docs/variables/RXAP_EXTERNAL_APP.html +0 -1
- package/docs/variables/RXAP_EXTERNAL_APP_FILTER.html +0 -1
- package/docs/variables/RXAP_FOOTER_COMPONENT.html +0 -1
- package/docs/variables/RXAP_HEADER_COMPONENT.html +0 -1
- package/docs/variables/RXAP_LAYOUT_APPS_GRID.html +0 -1
- package/docs/variables/RXAP_LOGO_CONFIG.html +0 -1
- package/docs/variables/RXAP_NAVIGATION_CONFIG.html +0 -1
- package/docs/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +0 -1
- package/docs/variables/RXAP_RELEASE_INFO_MODULE.html +0 -1
- package/docs/variables/RXAP_SETTINGS_MENU_ITEM.html +0 -1
- package/docs/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +0 -1
- package/docs/variables/RXAP_USER_PROFILE_DATA_SOURCE.html +0 -1
- /package/docs/{.nojekyll → html/.nojekyll} +0 -0
- /package/docs/{assets → html/assets}/highlight.css +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / SidenavToggleButtonComponent
|
|
2
|
+
|
|
3
|
+
# Class: SidenavToggleButtonComponent
|
|
4
|
+
|
|
5
|
+
Defined in: [default-header/sidenav-toggle-button/sidenav-toggle-button.component.ts:21](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/default-header/sidenav-toggle-button/sidenav-toggle-button.component.ts#L21)
|
|
6
|
+
|
|
7
|
+
## Constructors
|
|
8
|
+
|
|
9
|
+
### new SidenavToggleButtonComponent()
|
|
10
|
+
|
|
11
|
+
> **new SidenavToggleButtonComponent**(): [`SidenavToggleButtonComponent`](../wiki/Class.SidenavToggleButtonComponent)
|
|
12
|
+
|
|
13
|
+
#### Returns
|
|
14
|
+
|
|
15
|
+
[`SidenavToggleButtonComponent`](../wiki/Class.SidenavToggleButtonComponent)
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### opened
|
|
20
|
+
|
|
21
|
+
> `readonly` **opened**: `Signal`\<`boolean`\>
|
|
22
|
+
|
|
23
|
+
Defined in: [default-header/sidenav-toggle-button/sidenav-toggle-button.component.ts:25](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/default-header/sidenav-toggle-button/sidenav-toggle-button.component.ts#L25)
|
|
24
|
+
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
### toggle()
|
|
28
|
+
|
|
29
|
+
> **toggle**(): `void`
|
|
30
|
+
|
|
31
|
+
Defined in: [default-header/sidenav-toggle-button/sidenav-toggle-button.component.ts:27](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/default-header/sidenav-toggle-button/sidenav-toggle-button.component.ts#L27)
|
|
32
|
+
|
|
33
|
+
#### Returns
|
|
34
|
+
|
|
35
|
+
`void`
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / UserProfileIconComponent
|
|
2
|
+
|
|
3
|
+
# Class: UserProfileIconComponent
|
|
4
|
+
|
|
5
|
+
Defined in: [default-header/user-profile-icon/user-profile-icon.component.ts:27](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/default-header/user-profile-icon/user-profile-icon.component.ts#L27)
|
|
6
|
+
|
|
7
|
+
## Constructors
|
|
8
|
+
|
|
9
|
+
### new UserProfileIconComponent()
|
|
10
|
+
|
|
11
|
+
> **new UserProfileIconComponent**(): [`UserProfileIconComponent`](../wiki/Class.UserProfileIconComponent)
|
|
12
|
+
|
|
13
|
+
#### Returns
|
|
14
|
+
|
|
15
|
+
[`UserProfileIconComponent`](../wiki/Class.UserProfileIconComponent)
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### profile
|
|
20
|
+
|
|
21
|
+
> `readonly` **profile**: `InputSignal`\<`unknown`\>
|
|
22
|
+
|
|
23
|
+
Defined in: [default-header/user-profile-icon/user-profile-icon.component.ts:32](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/default-header/user-profile-icon/user-profile-icon.component.ts#L32)
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### username
|
|
28
|
+
|
|
29
|
+
> `readonly` **username**: `Signal`\<`null` \| `string`\>
|
|
30
|
+
|
|
31
|
+
Defined in: [default-header/user-profile-icon/user-profile-icon.component.ts:34](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/default-header/user-profile-icon/user-profile-icon.component.ts#L34)
|
|
32
|
+
|
|
33
|
+
## Methods
|
|
34
|
+
|
|
35
|
+
### logout()
|
|
36
|
+
|
|
37
|
+
> **logout**(): `void`
|
|
38
|
+
|
|
39
|
+
Defined in: [default-header/user-profile-icon/user-profile-icon.component.ts:42](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/default-header/user-profile-icon/user-profile-icon.component.ts#L42)
|
|
40
|
+
|
|
41
|
+
#### Returns
|
|
42
|
+
|
|
43
|
+
`void`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / IsNavigationDividerItem
|
|
2
|
+
|
|
3
|
+
# Function: IsNavigationDividerItem()
|
|
4
|
+
|
|
5
|
+
> **IsNavigationDividerItem**(`item`): `item is NavigationDividerItem`
|
|
6
|
+
|
|
7
|
+
Defined in: [navigation/navigation-item.ts:22](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/navigation/navigation-item.ts#L22)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### item
|
|
12
|
+
|
|
13
|
+
`any`
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`item is NavigationDividerItem`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / IsNavigationInsertItem
|
|
2
|
+
|
|
3
|
+
# Function: IsNavigationInsertItem()
|
|
4
|
+
|
|
5
|
+
> **IsNavigationInsertItem**(`item`): `item is NavigationInsertItem`
|
|
6
|
+
|
|
7
|
+
Defined in: [navigation/navigation-item.ts:32](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/navigation/navigation-item.ts#L32)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### item
|
|
12
|
+
|
|
13
|
+
`any`
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`item is NavigationInsertItem`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / IsNavigationItem
|
|
2
|
+
|
|
3
|
+
# Function: IsNavigationItem()
|
|
4
|
+
|
|
5
|
+
> **IsNavigationItem**(`item`): `item is NavigationItem<Navigation>`
|
|
6
|
+
|
|
7
|
+
Defined in: [navigation/navigation-item.ts:56](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/navigation/navigation-item.ts#L56)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### item
|
|
12
|
+
|
|
13
|
+
`any`
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`item is NavigationItem<Navigation>`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / provideExternalApps
|
|
2
|
+
|
|
3
|
+
# Function: provideExternalApps()
|
|
4
|
+
|
|
5
|
+
> **provideExternalApps**(...`apps`): `Provider`[]
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:45](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L45)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### apps
|
|
12
|
+
|
|
13
|
+
...`AppsNavigationConfig`[]
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Provider`[]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / provideLayout
|
|
2
|
+
|
|
3
|
+
# Function: provideLayout()
|
|
4
|
+
|
|
5
|
+
> **provideLayout**(...`additionalProviders`): `Provider`[]
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:34](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L34)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### additionalProviders
|
|
12
|
+
|
|
13
|
+
...`Provider`[]
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Provider`[]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / withDefaultHeaderComponent
|
|
2
|
+
|
|
3
|
+
# Function: withDefaultHeaderComponent()
|
|
4
|
+
|
|
5
|
+
> **withDefaultHeaderComponent**(): `Provider`
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:132](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L132)
|
|
8
|
+
|
|
9
|
+
## Returns
|
|
10
|
+
|
|
11
|
+
`Provider`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / withDefaultHeaderItems
|
|
2
|
+
|
|
3
|
+
# Function: withDefaultHeaderItems()
|
|
4
|
+
|
|
5
|
+
> **withDefaultHeaderItems**(...`items`): `Provider`[]
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:96](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L96)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### items
|
|
12
|
+
|
|
13
|
+
...([`DefaultHeaderItemComponent`](../wiki/TypeAlias.DefaultHeaderItemComponent) \| () => [`DefaultHeaderItemComponent`](../wiki/TypeAlias.DefaultHeaderItemComponent) \| `Promise`\<[`DefaultHeaderItemComponent`](../wiki/TypeAlias.DefaultHeaderItemComponent)\>)[]
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Provider`[]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / withFooterComponents
|
|
2
|
+
|
|
3
|
+
# Function: withFooterComponents()
|
|
4
|
+
|
|
5
|
+
> **withFooterComponents**(`components`): `Provider`[]
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:123](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L123)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### components
|
|
12
|
+
|
|
13
|
+
`ComponentType`\<`unknown`\>[]
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Provider`[]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / withHeaderComponents
|
|
2
|
+
|
|
3
|
+
# Function: withHeaderComponents()
|
|
4
|
+
|
|
5
|
+
> **withHeaderComponents**(`components`): `Provider`[]
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:114](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L114)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### components
|
|
12
|
+
|
|
13
|
+
`ComponentType`\<`unknown`\>[]
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Provider`[]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / withNavigationConfig
|
|
2
|
+
|
|
3
|
+
# Function: withNavigationConfig()
|
|
4
|
+
|
|
5
|
+
> **withNavigationConfig**(`config`): `Provider`[]
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:58](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L58)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### config
|
|
12
|
+
|
|
13
|
+
[`NavigationWithInserts`](../wiki/TypeAlias.NavigationWithInserts) | () => [`NavigationWithInserts`](../wiki/TypeAlias.NavigationWithInserts)
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Provider`[]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / withNavigationInserts
|
|
2
|
+
|
|
3
|
+
# Function: withNavigationInserts()
|
|
4
|
+
|
|
5
|
+
> **withNavigationInserts**(`inserts`): `Provider`[]
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:70](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L70)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### inserts
|
|
12
|
+
|
|
13
|
+
`Record`\<`string`, [`NavigationWithInserts`](../wiki/TypeAlias.NavigationWithInserts)\>
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Provider`[]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / withReleaseInfoModules
|
|
2
|
+
|
|
3
|
+
# Function: withReleaseInfoModules()
|
|
4
|
+
|
|
5
|
+
> **withReleaseInfoModules**(...`module`): `Provider`[]
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:104](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L104)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### module
|
|
12
|
+
|
|
13
|
+
...[`ReleaseInfoModule`](../wiki/Interface.ReleaseInfoModule)[]
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Provider`[]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / withSettingsMenuItems
|
|
2
|
+
|
|
3
|
+
# Function: withSettingsMenuItems()
|
|
4
|
+
|
|
5
|
+
> **withSettingsMenuItems**(...`items`): `Provider`[]
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:77](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L77)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### items
|
|
12
|
+
|
|
13
|
+
...([`SettingsMenuItem`](../wiki/Interface.SettingsMenuItem) \| [`SettingsMenuItemComponent`](../wiki/TypeAlias.SettingsMenuItemComponent) \| () => [`SettingsMenuItemComponent`](../wiki/TypeAlias.SettingsMenuItemComponent) \| `Promise`\<[`SettingsMenuItemComponent`](../wiki/TypeAlias.SettingsMenuItemComponent)\>)[]
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Provider`[]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / withUserProfileDataSource
|
|
2
|
+
|
|
3
|
+
# Function: withUserProfileDataSource()
|
|
4
|
+
|
|
5
|
+
> **withUserProfileDataSource**(`dataSource`, `useClass`): `Provider`
|
|
6
|
+
|
|
7
|
+
Defined in: [provide.ts:139](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/provide.ts#L139)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### dataSource
|
|
12
|
+
|
|
13
|
+
`Constructor`\<`DataSource`\<`unknown`, `DataSourceViewer`\>\>
|
|
14
|
+
|
|
15
|
+
### useClass
|
|
16
|
+
|
|
17
|
+
`boolean` = `false`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`Provider`
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
# @rxap/layout
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@rxap/layout)
|
|
4
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
5
|
+
[](https://github.com/prettier/prettier)
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
- [Installation](../wiki/#installation)
|
|
11
|
+
- [Get started](../wiki/#get-started)
|
|
12
|
+
- [Generators](../wiki/#generators)
|
|
13
|
+
|
|
14
|
+
# Installation
|
|
15
|
+
|
|
16
|
+
**Add the package to your workspace:**
|
|
17
|
+
```bash
|
|
18
|
+
yarn add @rxap/layout
|
|
19
|
+
```
|
|
20
|
+
**Install peer dependencies:**
|
|
21
|
+
```bash
|
|
22
|
+
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-dev.4 @rxap/config@^19.0.1-dev.4 @rxap/data-source@^19.0.1-dev.4 @rxap/environment@^19.0.1-dev.4 @rxap/material-directives@^19.0.1-dev.4 @rxap/ngx-pub-sub@^19.0.1-dev.4 @rxap/ngx-theme@^19.0.1-dev.4 @rxap/pattern@^1.1.11-dev.4 @rxap/utilities@^16.4.2-dev.4 rxjs@^7.8.1
|
|
23
|
+
```
|
|
24
|
+
**Execute the init generator:**
|
|
25
|
+
```bash
|
|
26
|
+
yarn nx g @rxap/layout:init
|
|
27
|
+
```
|
|
28
|
+
# Get started
|
|
29
|
+
|
|
30
|
+
## Layout
|
|
31
|
+
|
|
32
|
+
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.
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import { LayoutComponent, provideLayout } from '@rxap/layout';
|
|
36
|
+
|
|
37
|
+
const ROUTES: Route[] = [
|
|
38
|
+
{
|
|
39
|
+
path: '',
|
|
40
|
+
component: LayoutComponent,
|
|
41
|
+
children: [ ],
|
|
42
|
+
providers: [ provideLayout() ],
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Import the layout routes into the `app.routes.ts` file.
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
export const appRoutes: Route[] = [
|
|
51
|
+
{
|
|
52
|
+
path: '',
|
|
53
|
+
loadChildren: () => import('./layout.routes'),
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
path: '**',
|
|
57
|
+
redirectTo: '',
|
|
58
|
+
},
|
|
59
|
+
];
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Navigation
|
|
63
|
+
|
|
64
|
+
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.
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
export const APP_NAVIGATION: () => NavigationWithInserts = () => [];
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Provide the app navigation in the layout routes:
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
LayoutComponent,
|
|
75
|
+
ProvideNavigationConfig,
|
|
76
|
+
withNavigationService,
|
|
77
|
+
} from '@rxap/layout';
|
|
78
|
+
import { APP_NAVIGATION } from './app.navigation';
|
|
79
|
+
|
|
80
|
+
const ROUTES: Route[] = [
|
|
81
|
+
{
|
|
82
|
+
path: '',
|
|
83
|
+
component: LayoutComponent,
|
|
84
|
+
children: [ ],
|
|
85
|
+
providers: [
|
|
86
|
+
provideLayout(
|
|
87
|
+
withNavigationConfig(APP_NAVIGATION),
|
|
88
|
+
),
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Navigation Item
|
|
95
|
+
|
|
96
|
+
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.
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
const item: NavigationItem = {
|
|
100
|
+
label: 'Home',
|
|
101
|
+
routerLink: '/',
|
|
102
|
+
};
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
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.
|
|
106
|
+
|
|
107
|
+
```typescript
|
|
108
|
+
const item: NavigationItem = {
|
|
109
|
+
label: 'Home',
|
|
110
|
+
routerLink: '/',
|
|
111
|
+
children: [
|
|
112
|
+
{
|
|
113
|
+
label: 'Child',
|
|
114
|
+
routerLink: '/child',
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
};
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### Icon Property
|
|
121
|
+
|
|
122
|
+
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.
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
const item: NavigationItem = {
|
|
126
|
+
label: 'Home',
|
|
127
|
+
routerLink: '/',
|
|
128
|
+
icon: { icon: 'home' },
|
|
129
|
+
};
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
#### Status Property
|
|
133
|
+
|
|
134
|
+
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.
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
@Injectable()
|
|
138
|
+
class SetNavStatus {
|
|
139
|
+
isVisible(item: NavigationItem): boolean {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const item: NavigationItem = {
|
|
145
|
+
label: 'Home',
|
|
146
|
+
routerLink: '/',
|
|
147
|
+
status: SetNavStatus,
|
|
148
|
+
};
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Navigation Divider Item
|
|
152
|
+
|
|
153
|
+
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.
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
const item: NavigationDividerItem = {
|
|
157
|
+
divider: true,
|
|
158
|
+
title: 'Group',
|
|
159
|
+
};
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Navigation Insert Item (WIP)
|
|
163
|
+
|
|
164
|
+
A navigation insert item is a placeholder for a navigation item that should be inserted into the navigation sidebar.
|
|
165
|
+
The item is used to define where a dynamic navigation should be inserted. The `insert` property is the key that is used
|
|
166
|
+
identify the insert item. The `insert` property is required.
|
|
167
|
+
|
|
168
|
+
```typescript
|
|
169
|
+
const item: NavigationInsertItem = {
|
|
170
|
+
insert: 'insert-key',
|
|
171
|
+
};
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Header
|
|
175
|
+
|
|
176
|
+
The header is composed of the components from left to right: AppsButtonComponent, SettingsButtonComponent and UserProfileIconComponent.
|
|
177
|
+
|
|
178
|
+
### Apps Button
|
|
179
|
+
|
|
180
|
+
The apps buttons allow for a navigation between different applications. To configure the apps button, the config path
|
|
181
|
+
`navigation.apps` must be set with an array of object with the property `title` and ether `routerLink` or `href`. If the
|
|
182
|
+
property `href` is set, the link is opened in a new tab. If the property `routerLink` the router is used to navigate.
|
|
183
|
+
|
|
184
|
+
```json
|
|
185
|
+
{
|
|
186
|
+
"navigation": {
|
|
187
|
+
"apps": [
|
|
188
|
+
{
|
|
189
|
+
"title": "App 1",
|
|
190
|
+
"routerLink": ["/", "app1"]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"title": "App 2",
|
|
194
|
+
"href": "https://app2.com"
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
> If the application is in production mode, the current `localId` is appended to the url defined in the `href` property.
|
|
202
|
+
|
|
203
|
+
### Settings Button Customization (WIP)
|
|
204
|
+
|
|
205
|
+
It is possible to add custom items to the settings menu. This custom item can be a component or a configuration object.
|
|
206
|
+
|
|
207
|
+
>
|
|
208
|
+
|
|
209
|
+
#### Configuration Object
|
|
210
|
+
|
|
211
|
+
The action function is called when the item is clicked. It is possible to use the `inject` function to inject services.
|
|
212
|
+
|
|
213
|
+
```typescript
|
|
214
|
+
import {
|
|
215
|
+
LayoutComponent,
|
|
216
|
+
ProvideNavigationConfig,
|
|
217
|
+
withNavigationService,
|
|
218
|
+
} from '@rxap/layout';
|
|
219
|
+
import { APP_NAVIGATION } from './app.navigation';
|
|
220
|
+
|
|
221
|
+
const ROUTES: Route[] = [
|
|
222
|
+
{
|
|
223
|
+
path: '',
|
|
224
|
+
component: LayoutComponent,
|
|
225
|
+
children: [ ],
|
|
226
|
+
providers: [
|
|
227
|
+
provideLayout(
|
|
228
|
+
withNavigationConfig(APP_NAVIGATION),
|
|
229
|
+
withSettingsMenuItems(
|
|
230
|
+
{
|
|
231
|
+
label: 'Custom Item',
|
|
232
|
+
icon: { icon: 'home' },
|
|
233
|
+
action: () => inject(MatDialog).open(MyCustomDialogComponent),
|
|
234
|
+
}
|
|
235
|
+
)
|
|
236
|
+
),
|
|
237
|
+
],
|
|
238
|
+
},
|
|
239
|
+
];
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
#### Component
|
|
243
|
+
|
|
244
|
+
If a component is provided ensure the component template uses the `mat-menu-item` component:
|
|
245
|
+
|
|
246
|
+
```angular17html
|
|
247
|
+
<button mat-menu-item>My Custom Item</button>
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
```typescript
|
|
251
|
+
import {
|
|
252
|
+
LayoutComponent,
|
|
253
|
+
ProvideNavigationConfig,
|
|
254
|
+
withNavigationService,
|
|
255
|
+
} from '@rxap/layout';
|
|
256
|
+
import { APP_NAVIGATION } from './app.navigation';
|
|
257
|
+
|
|
258
|
+
const ROUTES: Route[] = [
|
|
259
|
+
{
|
|
260
|
+
path: '',
|
|
261
|
+
component: LayoutComponent,
|
|
262
|
+
children: [ ],
|
|
263
|
+
providers: [
|
|
264
|
+
provideLayout(
|
|
265
|
+
withNavigationConfig(APP_NAVIGATION),
|
|
266
|
+
withSettingsMenuItems(
|
|
267
|
+
MyCustomMenuItemComponent
|
|
268
|
+
)
|
|
269
|
+
),
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
];
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### User Profile (WIP)
|
|
276
|
+
|
|
277
|
+
...
|
|
278
|
+
|
|
279
|
+
## Dynamic Footer
|
|
280
|
+
|
|
281
|
+
With the directive `rxapFooter` it is possible to define a dynamic footer. When the directive is used on a `<ng-template>` in a component,
|
|
282
|
+
that is rendered in the layout component, the template is rendered in the footer of the layout component.
|
|
283
|
+
|
|
284
|
+
```angular17html
|
|
285
|
+
<mat-card>
|
|
286
|
+
...
|
|
287
|
+
</mat-card>
|
|
288
|
+
<ng-template rxapFooter>
|
|
289
|
+
<button mat-button>A button in the layout footer</button>
|
|
290
|
+
</ng-template>
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
# Generators
|
|
294
|
+
|
|
295
|
+
## init
|
|
296
|
+
> Initialize the package in the workspace
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
yarn nx g @rxap/layout:init
|
|
300
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / NavigationDividerItem
|
|
2
|
+
|
|
3
|
+
# Interface: NavigationDividerItem
|
|
4
|
+
|
|
5
|
+
Defined in: [navigation/navigation-item.ts:17](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/navigation/navigation-item.ts#L17)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### divider
|
|
10
|
+
|
|
11
|
+
> **divider**: `boolean`
|
|
12
|
+
|
|
13
|
+
Defined in: [navigation/navigation-item.ts:18](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/navigation/navigation-item.ts#L18)
|
|
14
|
+
|
|
15
|
+
***
|
|
16
|
+
|
|
17
|
+
### title?
|
|
18
|
+
|
|
19
|
+
> `optional` **title**: `string`
|
|
20
|
+
|
|
21
|
+
Defined in: [navigation/navigation-item.ts:19](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/navigation/navigation-item.ts#L19)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[@rxap/layout](../wiki/globals) / NavigationInsertItem
|
|
2
|
+
|
|
3
|
+
# Interface: NavigationInsertItem
|
|
4
|
+
|
|
5
|
+
Defined in: [navigation/navigation-item.ts:28](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/navigation/navigation-item.ts#L28)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### insert
|
|
10
|
+
|
|
11
|
+
> **insert**: `string`
|
|
12
|
+
|
|
13
|
+
Defined in: [navigation/navigation-item.ts:29](https://gitlab.com/rxap/packages/-/blob/d154f059843da9547b2cf8a851a1fa67ef976968/packages/angular/layout/src/lib/navigation/navigation-item.ts#L29)
|