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